Function validate_texture_copy_src_format

Source
pub(crate) fn validate_texture_copy_src_format(
    format: TextureFormat,
    aspect: TextureAspect,
) -> Result<(), TransferError>
Expand description

Validate the source format of a texture copy.

This performs the check from WebGPU’s validating texture buffer copy algorithm that ensures that the format and aspect form a valid texel copy source as defined in the depth-stencil formats.