Skip to main content

@novorender/web_app / AsyncProgramParams

Interface: AsyncProgramParams

Parameters for asynchronous shader compilation and linking.

Properties

attributes?

readonly optional attributes: readonly string[];

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

Defined in

@novorender/core3d/context.ts:1287


fragmentShader?

readonly optional fragmentShader: string;

The fragment shader (optional with transform feedback shaders).

Defined in

@novorender/core3d/context.ts:1285


readonly optional header: Partial<ShaderHeaderParams>;

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

Defined in

@novorender/core3d/context.ts:1281


name?

readonly optional name: string;

For debugging/diagnostics purposes.

Defined in

@novorender/core3d/context.ts:1279


textureUniforms?

readonly optional textureUniforms: readonly string[];

Texture uniforms to be bound post-linking.

Defined in

@novorender/core3d/context.ts:1291


transformFeedback?

readonly optional transformFeedback: object;

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).

Defined in

@novorender/core3d/context.ts:1293


uniformBufferBlocks?

readonly optional 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

Defined in

@novorender/core3d/context.ts:1289


vertexShader

readonly vertexShader: string;

The vertex shader.

Defined in

@novorender/core3d/context.ts:1283