Aller au contenu

GPUTexelCopyTextureInfo

"GPUTexelCopyTextureInfo" describes the "info" (GPUTexture, etc.) about a "texture" source or destination of a "texel copy" operation. Together with the copySize, it describes a sub-region of a texture (spanning one or more contiguous texture subresources at the same mip-map level).

Properties

aspect

abstract val aspect: GPUTextureAspect
Defines which aspects of the texture to copy to/from.

mipLevel

Mip-map level of the texture to copy to/from. See [GPUTexelCopyTextureInfo.mipLevel in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gputexelcopytextureinfo-miplevel).

origin

abstract val origin: GPUOrigin3D
Defines the origin of the copy - the minimum corner of the texture sub-region to copy to/from. Together with copySize, defines the full copy sub-region.

texture

abstract val texture: GPUTexture
Texture to copy to/from. See [GPUTexelCopyTextureInfo.texture in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gputexelcopytextureinfo-texture).