Type alias TextureOptions

TextureOptions: {
    binding: number;
    label?: string;
    visibility: GPUShaderStageFlags;
}

Texture constructor parameters

Type declaration

  • binding: number

    The binding number of the texture object in the BindGroup.

  • Optional label?: string
  • visibility: GPUShaderStageFlags

    The shader stages that this uniform is visible to. e.g. GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT would make the uniform visible to both the vertex and fragment shaders.

Generated using TypeDoc