MCPcopy Create free account
hub / github.com/gre/gl-react / Example

Class Example

packages/tests/__tests__/all.js:574–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572 },
573 });
574 class Example extends React.Component<*> {
575 busRef = React.createRef();
576 render() {
577 return (
578 <Surface
579 width={20}
580 height={20}
581 webglContextAttributes={{ preserveDrawingBuffer: true }}
582 >
583 <Bus ref={this.busRef}>
584 <Node shader={shaders.red} />
585 </Bus>
586 <LinearCopy>{() => this.busRef.current}</LinearCopy>
587 </Surface>
588 );
589 }
590 }
591 const inst = create(<Example />);
592 expectToBeCloseToColorArray(
593 inst.getInstance().busRef.current.capture(10, 10, 1, 1).data,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…