Interface ShaderSamplerDecl
interface ShaderSamplerDecl {
comparison?: boolean;
name: string;
sampleType?: "depth" | "float" | "unfilterable-float";
viewDimension?: "2d" | "2d-array";
}
comparison?: boolean;
name: string;
sampleType?: "depth" | "float" | "unfilterable-float";
viewDimension?: "2d" | "2d-array";
}
Properties
Optional Readonlycomparison
comparison?: boolean
Bind a hardware comparison sampler (sampler_comparison) for depth compare / PCF
filtering. Implies a depth texture. Default false.
Readonlyname
name: string
Optional Readonlysample Type
sampleType?: "depth" | "float" | "unfilterable-float"
Optional Readonlyview Dimension
viewDimension?: "2d" | "2d-array"
Texture view dimension. Default "2d". Use "2d-array" for layered maps such as cascaded-shadow (CSM) depth arrays.
A sampler declaration: WGSL identifier and the bound texture's sample type.