menu
GpuTextureState
import { GpuTextureState } from "destack:gpu/binding";
GPU texture state.
1export struct GpuTextureState {2 width: uint32;3 height: uint32;4 depthOrLayers: uint32;5 mipLevels: uint32;6 samples: uint32;7 format: GpuTextureFormat;8 usage: GpuTextureUsage;9 dimension: GpuTextureDimension;10}Members
width: uint32Texture width in texels.
height: uint32Texture height in texels.
depthOrLayers: uint32Texture depth or layer count.
mipLevels: uint32Texture mip-level count.
samples: uint32Texture sample count.
format: GpuTextureFormatTexture format identifier.
usage: GpuTextureUsageTexture usage bitset.
dimension: GpuTextureDimensionTexture dimension selector.