menu

GpuTextureState

import { GpuTextureState } from "destack:gpu/binding";

GPU texture state.

language/library/src/gpu/binding/resource.ds:719:736
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: uint32

Texture width in texels.

height: uint32

Texture height in texels.

depthOrLayers: uint32

Texture depth or layer count.

mipLevels: uint32

Texture mip-level count.

samples: uint32

Texture sample count.

format: GpuTextureFormat

Texture format identifier.

usage: GpuTextureUsage

Texture usage bitset.

dimension: GpuTextureDimension

Texture dimension selector.