Skip to content

API Reference / @gtkx/gl / specializeShader

Function: specializeShader() ​

specializeShader(shader, pEntryPoint, numSpecializationConstants, pConstantIndex, pConstantValue): void

Defined in: packages/gl/src/generated/commands.ts:6724

void glSpecializeShader(GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue)

Provided by GL_VERSION_4_6. Registry note: Reuse GL_ARB_gl_spirv Also known as glSpecializeShaderARB.

Parameters ​

shader ​

number

GLuint, object class shader

pEntryPoint ​

string

string

numSpecializationConstants ​

number

GLuint

pConstantIndex ​

Uint32Array<ArrayBufferLike> | number[]

GLuint[] | Uint32Array, length numSpecializationConstants

pConstantValue ​

Uint32Array<ArrayBufferLike> | number[]

GLuint[] | Uint32Array, length numSpecializationConstants

Returns ​

void