Skip to main content

interface.AsyncProgramParams

API > AsyncProgramParams

Interface: AsyncProgramParams

Parameters for asynchronous shader compilation and linking.

Properties

attributes

attributes?: readonly string[]

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

Source

@novorender/core3d/context.ts:1162


fragmentShader

fragmentShader?: string

The fragment shader (optional with transform feedback shaders).

Source

@novorender/core3d/context.ts:1160


header?: Partial\< ShaderHeaderParams >

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

Source

@novorender/core3d/context.ts:1156


name

name?: string

For debugging/diagnostics purposes.

Source

@novorender/core3d/context.ts:1154


textureUniforms

textureUniforms?: readonly string[]

Texture uniforms to be bound post-linking.

Source

@novorender/core3d/context.ts:1166


transformFeedback

transformFeedback?: object

Transform feedback buffers to be bound post-linking.

Type declaration

transformFeedback.bufferMode

readonly bufferMode: "INTERLEAVED_ATTRIBS" | "SEPARATE_ATTRIBS"

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

transformFeedback.varyings

readonly varyings: readonly string[]

Name of output attribute names (varyings).

Source

@novorender/core3d/context.ts:1168


uniformBufferBlocks

uniformBufferBlocks?: readonly string[]

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

Source

@novorender/core3d/context.ts:1164


vertexShader

readonly vertexShader: string

The vertex shader.

Source

@novorender/core3d/context.ts:1158