What GraphicsContext::RenderScene's record gets on SDL GPU (ScenePayload::As): the window frame's command buffer, outside any pass, and the scene's color and depth textures, cleared already (color to the scene's clear color, depth to 1).
More...
#include <gui_core/graphics/sdlgpu/sdlgpu_graphics_context.h>
What GraphicsContext::RenderScene's record gets on SDL GPU (ScenePayload::As): the window frame's command buffer, outside any pass, and the scene's color and depth textures, cleared already (color to the scene's clear color, depth to 1).
Record copy passes and render passes into it; colorTarget and depthTarget begin a render pass on the textures that keeps what's there (SDL_BeginGPURenderPass(commandBuffer, &colorTarget,
1, &depthTarget)). End every pass you begin; the UI's passes follow in the same buffer.
◆ kAPI
◆ device
| SDL_GPUDevice* tachyon::sdlgpu::SDLGPUSceneRender::device = nullptr |
◆ commandBuffer
| SDL_GPUCommandBuffer* tachyon::sdlgpu::SDLGPUSceneRender::commandBuffer = nullptr |
◆ colorTexture
| SDL_GPUTexture* tachyon::sdlgpu::SDLGPUSceneRender::colorTexture = nullptr |
◆ depthTexture
| SDL_GPUTexture* tachyon::sdlgpu::SDLGPUSceneRender::depthTexture = nullptr |
◆ colorFormat
| SDL_GPUTextureFormat tachyon::sdlgpu::SDLGPUSceneRender::colorFormat = SDL_GPU_TEXTUREFORMAT_INVALID |
◆ depthFormat
| SDL_GPUTextureFormat tachyon::sdlgpu::SDLGPUSceneRender::depthFormat = SDL_GPU_TEXTUREFORMAT_INVALID |
◆ extent
| uint2 tachyon::sdlgpu::SDLGPUSceneRender::extent {} |
◆ colorTarget
| SDL_GPUColorTargetInfo tachyon::sdlgpu::SDLGPUSceneRender::colorTarget {} |
◆ depthTarget
| SDL_GPUDepthStencilTargetInfo tachyon::sdlgpu::SDLGPUSceneRender::depthTarget {} |
The documentation for this struct was generated from the following file: