Function validate_copy_within_same_texture

Source
pub(crate) fn validate_copy_within_same_texture<T>(
    src: &TexelCopyTextureInfo<T>,
    dst: &TexelCopyTextureInfo<T>,
    format: TextureFormat,
    array_layer_count: u32,
) -> Result<(), TransferError>
Expand description

Validate a copy within the same texture.

This implements the WebGPU requirement that the sets of subresources for texture copy of the source and destination be disjoint, i.e. that the source and destination do not overlap.

This function assumes that the copy ranges have already been validated with validate_texture_copy_range.