* 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.
| 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 {} = {}, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…