Interface SPDPrepareDeviceDescriptor

interface SPDPrepareDeviceDescriptor {
    device: GPUDevice;
    formats?: SPDPrepareFormatDescriptor[];
    maxArrayLayersPerPass?: number;
    maxMipsPerPass?: number;
}

Properties

device: GPUDevice

The device to prepare downsampling pipelines for.

The formats to prepare downsampling pipelines for.

maxArrayLayersPerPass?: number

The maximum number of array layers will be downsampled on the device within a single pass. If a texture has more, downsampling will be split up into multiple passes handling up to this limit of array layers each. Defaults to device.limits.maxTextureArrayLayers.

maxMipsPerPass?: number

The maximum number of mip levels that can be generated on the device within a single pass. Note that generating more than 6 mip levels per pass is currently not supported on all platforms. Defaults to Math.min(device.limits.maxStorageTexturesPerShaderStage, 12).