ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
Loading...
Searching...
No Matches
SwapchainTexture Struct Reference

The swapchain texture acquired for a single frame. More...

#include <CommandBuffer.h>

Data Fields

SDL_GPUTexture * texture
 The swapchain render target for this frame.
 
SDL_GPUTextureFormat format
 The swapchain texture format.
 
SDL_Size size
 The swapchain dimensions in pixels.
 

Detailed Description

The swapchain texture acquired for a single frame.

Valid only between a successful acquireSwapchainTexture call and the submit of the same CommandBuffer. SDL3 reclaims the texture on submit.

Field Documentation

◆ format

SDL_GPUTextureFormat SwapchainTexture::format

The swapchain texture format.

◆ size

SDL_Size SwapchainTexture::size

The swapchain dimensions in pixels.

◆ texture

SDL_GPUTexture* SwapchainTexture::texture

The swapchain render target for this frame.


The documentation for this struct was generated from the following file: