Skip to main content

@novorender/api / AsyncProgramParams

Interface: AsyncProgramParams

Defined in: @novorender/src/core3d/context.ts:1727

Parameters for asynchronous shader compilation and linking.

Properties​

attributes?​

readonly optional attributes: readonly string[];

Defined in: @novorender/src/core3d/context.ts:1737

The names of the vertex attributes to be bound prior to linking using gl.bindAttribLocation().


fragmentShader?​

readonly optional fragmentShader: string;

Defined in: @novorender/src/core3d/context.ts:1735

The fragment shader (optional with transform feedback shaders).


readonly optional header: Partial<ShaderHeaderParams>;

Defined in: @novorender/src/core3d/context.ts:1731

Common GLSL header information to be inserted before the body code.


name?​

readonly optional name: string;

Defined in: @novorender/src/core3d/context.ts:1729

For debugging/diagnostics purposes.


textureUniforms?​

readonly optional textureUniforms: readonly string[];

Defined in: @novorender/src/core3d/context.ts:1741

Texture uniforms to be bound post-linking.


transformFeedback?​

readonly optional transformFeedback: object;

Defined in: @novorender/src/core3d/context.ts:1743

Transform feedback buffers to be bound post-linking.

bufferMode​

readonly bufferMode: "INTERLEAVED_ATTRIBS" | "SEPARATE_ATTRIBS";

Should output attributes be written into a single interleaved buffer or separate buffers?

varyings​

readonly varyings: readonly string[];

Name of output attribute names (varyings).


uniformBufferBlocks?​

readonly optional uniformBufferBlocks: readonly string[];

Defined in: @novorender/src/core3d/context.ts:1739

The names of the shader uniform blocks to be bound prior to linking using gl.uniformBlockBinding(), in the order which they appear


vertexShader​

readonly vertexShader: string;

Defined in: @novorender/src/core3d/context.ts:1733

The vertex shader.