Texture¶
class Texture : GPUTexture
Types¶
Companion¶
object Companion
Properties¶
depthOrArrayLayers¶
open override val depthOrArrayLayers: GPUIntegerCoordinateOut
dimension¶
open override val dimension: GPUTextureDimension
format¶
open override val format: GPUTextureFormat
handler¶
val handler: WGPUTexture
Interop escape hatch: the raw WebGPU handle. Calling operations on it directly can invalidate the wrapper's contract (ownership and close-once semantics).
height¶
open override val height: GPUIntegerCoordinateOut
label¶
mipLevelCount¶
open override val mipLevelCount: GPUIntegerCoordinateOut
sampleCount¶
open override val sampleCount: GPUSize32Out
usage¶
open override val usage: GPUTextureUsage
width¶
open override val width: GPUIntegerCoordinateOut
Functions¶
close¶
open override fun close()
createView¶
open override fun createView(descriptor: GPUTextureViewDescriptor?): GPUTextureView