TSdlGpuSwapchainComposition
Specifies the texture format and colorspace of the swapchain textures.
Sdr will always be supported. Other compositions may not be supported on certain systems.
It is recommended to query TSdlGpuDevice.WindowSupportsSwapchainComposition after claiming the window if you wish to change the swapchain composition from Sdr.
- Sdr: B8G8R8A8 or R8G8B8A8 swapchain. Pixel values are in sRGB encoding.
- SdrLinear: B8G8R8A8Srgb or R8G8B8A8Srgb swapchain. Pixel values are stored in memory in sRGB encoding but accessed in shaders in "linear sRGB" encoding which is sRGB but with a linear transfer function.
- HdrExtendedLinear: R16G16B16A16Float swapchain. Pixel values are in extended linear sRGB encoding and permits values outside of the [0, 1] range.
- Hdr10ST2084: A2R10G10B10 or A2B10G10R10 swapchain. Pixel values are in BT.2020 ST2084 (PQ) encoding.
Definition
Unit: Neslib.Sdl3.Gpu
See Also
- TSdlGpuDevice.SetSwapchainParameters
- TSdlGpuDevice.WindowSupportsSwapchainComposition
- TSdlGpuCommandBuffer.WaitAndAcquireSwapchainTexture