mirror of
https://github.com/expo/gl-react.git
synced 2026-11-15 17:34:34 -10:00
29 lines
391 B
JavaScript
29 lines
391 B
JavaScript
|
|
function Content (id) {
|
|
return { type: "content", id };
|
|
}
|
|
|
|
function NDArray (ndarray) {
|
|
return { type: "ndarray", ndarray };
|
|
}
|
|
|
|
function URI (obj) {
|
|
return { type: "uri", ...obj };
|
|
}
|
|
|
|
function Framebuffer (id) {
|
|
return { type: "fbo", id };
|
|
}
|
|
|
|
function withOpts (obj, opts) {
|
|
return { ...obj, opts };
|
|
}
|
|
|
|
module.exports = {
|
|
Content,
|
|
NDArray,
|
|
URI,
|
|
Framebuffer,
|
|
withOpts
|
|
};
|