MCPcopy
hub / github.com/regl-project/regl / DrawCommand

Interface DrawCommand

regl.d.ts:418–432  ·  view source on GitHub ↗

* Draw commands are the fundamental abstraction in regl. A draw command wraps up all of the WebGL * state associated with a draw call (either drawArrays or drawElements) and packages it into a * single reusable function.

Source from the content-addressed store, hash-verified

416 * single reusable function.
417 */
418 interface DrawCommand<
419 Context extends REGL.DefaultContext = REGL.DefaultContext,
420 Props extends {} = {}
421 > {
422 readonly stats: REGL.CommandStats;
423
424 /** Run a command once. */
425 (body?: REGL.CommandBodyFn<Context, Props>): void;
426 /** Run a command `count` times. */
427 (count: number, body?: REGL.CommandBodyFn<Context, Props>): void;
428 /** Run a command with props. */
429 (props: Partial<Props>, body?: REGL.CommandBodyFn<Context, Props>): void;
430 /** Run a command batch. */
431 (props: Array<Partial<Props>>, body?: REGL.CommandBodyFn<Context, Props>): void;
432 }
433
434 interface DrawConfig<
435 Uniforms extends {} = {},

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…