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