WebGPUNodeUniformsGroup constructor

WebGPUNodeUniformsGroup(
  1. dynamic shaderStage
)

Implementation

WebGPUNodeUniformsGroup(shaderStage) : super('nodeUniforms') {
  var shaderStageVisibility;

  if (shaderStage == 'vertex')
    shaderStageVisibility = GPUShaderStage.Vertex;
  else if (shaderStage == 'fragment')
    shaderStageVisibility = GPUShaderStage.Fragment;

  this.setVisibility(shaderStageVisibility);
}