menu

GpuSurfaceDescriptor

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

Surface configuration descriptor.

language/library/src/gpu/binding/present.ds:100:123
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: GpuTextureUsage

Texture usage flags.

viewFormats: [GpuTextureFormat]

Additional compatible view formats.

width: uint32

Surface width in pixels.

height: uint32

Surface height in pixels.

format: GpuTextureFormat

Surface texture format.

presentMode: GpuPresentMode

Present mode.

alphaMode: GpuCompositeAlphaMode

Composite alpha mode.

colorSpace: DisplayColorSpace

Output color space.

hdrMode: DisplayHdrMode

Output HDR mode.

hdrMetadata: GpuSurfaceHdrMetadata

HDR metadata.

frameLatency: uint32

Requested maximum frame latency in refresh intervals.