API Reference

Class List

ShaderProcessorOptions

Summary

Properties

bindGroupFormats
uniformFormats

Methods

hasTexture

Get the bind group texture slot for the texture uniform name.

hasUniform

Get the bind group index for the uniform name.

Details

Constructor

ShaderProcessorOptions(viewUniformFormat, viewBindGroupFormat)

Constructs shader processing options, used to process the shader for uniform buffer support.

Parameters

viewUniformFormatUniformBufferFormat

Format of the uniform buffer.

viewBindGroupFormatBindGroupFormat

Format of the bind group.

Properties

BindGroupFormat[]bindGroupFormats

UniformBufferFormat[]uniformFormats

Methods

hasTexture(name)

Get the bind group texture slot for the texture uniform name.

Parameters

namestring

The name of the texture uniform.

Returns

boolean
  • Returns true if the texture uniform exists, false otherwise.

hasUniform(name)

Get the bind group index for the uniform name.

Parameters

namestring

The name of the uniform.

Returns

boolean
  • Returns true if the uniform exists, false otherwise.