Interface SPDPrepareFormatDescriptor

interface SPDPrepareFormatDescriptor {
    filters?: Set<string>;
    format: GPUTextureFormat;
    halfPrecision?: boolean;
}

Properties

filters?: Set<string>

The names of downsampling filters that to prepare downsampling pipelines for the given format for. Defaults to SPDFilters.Average.

format: GPUTextureFormat

The texture format to prepare downsampling pipelines for.

halfPrecision?: boolean

If set to true, will try to use half-precision floats (f16) for this combination of texture format and filters. Falls back to full precision, if half precision is requested but not supported by the device (feature 'shader-f16' not enabled). Falls back to full precision, if the texture format is not a float format. Defaults to false.