Class SwapChain
A handle to a swap chain.
A SwapChain
represents the image or series of images that will be presented to a Surface
.
A SwapChain
may be created with Device.createSwapChain
.
Fields
Name | Type | Description |
descriptor
|
const(__C.WGPUSwapChainDescriptor) | Describes this SwapChain.
|
label
|
const(string) | Optional, human-readable debug label for this swap chain.
|
surface
|
const(Surface) | Surface this swap chain renders to.
|
Methods
Name | Description |
getNextTexture
()
|
Returns the next texture to be presented by the swapchain for drawing.
|
present
()
|
|