menu
GpuSurfaceDescriptor
import { GpuSurfaceDescriptor } from "destack:gpu/binding";
Surface configuration descriptor.
1export struct GpuSurfaceDescriptor {2 usage: GpuTextureUsage;3 viewFormats: [GpuTextureFormat];4 width: uint32;5 height: uint32;6 format: GpuTextureFormat;7 presentMode: GpuPresentMode;8 alphaMode: GpuCompositeAlphaMode;9 colorSpace: DisplayColorSpace;10 hdrMode: DisplayHdrMode;11 hdrMetadata: GpuSurfaceHdrMetadata;12 frameLatency: uint32;13}Members
usage: GpuTextureUsageTexture usage flags.
viewFormats: [GpuTextureFormat]Additional compatible view formats.
width: uint32Surface width in pixels.
height: uint32Surface height in pixels.
format: GpuTextureFormatSurface texture format.
presentMode: GpuPresentModePresent mode.
alphaMode: GpuCompositeAlphaModeComposite alpha mode.
colorSpace: DisplayColorSpaceOutput color space.
hdrMode: DisplayHdrModeOutput HDR mode.
hdrMetadata: GpuSurfaceHdrMetadataHDR metadata.
frameLatency: uint32Requested maximum frame latency in refresh intervals.