Skip to content

API Reference / @gtkx/gl / specializeShader

Function: specializeShader()

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

Defined in: generated/commands.d.ts:5326

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

number[] | Uint32Array<ArrayBufferLike>

GLuint[] | Uint32Array, length numSpecializationConstants

pConstantValue

number[] | Uint32Array<ArrayBufferLike>

GLuint[] | Uint32Array, length numSpecializationConstants

Returns

void

Released under the MPL-2.0 License.