Skip to main content

Function: getShaderModuleUniformLayoutValidationResult()

getShaderModuleUniformLayoutValidationResult(module, stage): ShaderModuleUniformLayoutValidationResult | null

Defined in: lib/shader-module/shader-module-uniform-layout.ts:108

Computes the validation result for a shader module's declared and parsed uniform-block field lists.

Parameters​

module​

ShaderModule

stage​

ShaderModuleUniformLayoutStage

Returns​

ShaderModuleUniformLayoutValidationResult | null

null when the module has no declared uniform types or no matching block.