Skip to content

TexelCopyTextureInfo

data class TexelCopyTextureInfo(
    val texture: GPUTexture, 
    val mipLevel: GPUIntegerCoordinate, 
    val origin: GPUOrigin3D = Origin3D(), 
    val aspect: GPUTextureAspect = GPUTextureAspect.All
) : 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).

Constructors

TexelCopyTextureInfo

constructor(
    texture: GPUTexture, 
    mipLevel: GPUIntegerCoordinate, 
    origin: GPUOrigin3D = Origin3D(), 
    aspect: GPUTextureAspect = GPUTextureAspect.All
)

Properties

aspect

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

mipLevel

open override val mipLevel: GPUIntegerCoordinate
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

open override 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

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