Type alias SamplerOptions

SamplerOptions: {
    binding: number;
    label?: string;
    options?: GPUSamplerDescriptor;
    visibility: GPUShaderStageFlags;
}

Sampler constructor parameters

Type declaration

  • binding: number
  • Optional label?: string
  • Optional options?: GPUSamplerDescriptor
  • 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