TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::sdlgpu::SDLGPUSceneRender Struct Reference

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>

Public Attributes

SDL_GPUDevice * device = nullptr
SDL_GPUCommandBuffer * commandBuffer = nullptr
SDL_GPUTexture * colorTexture = nullptr
SDL_GPUTexture * depthTexture = nullptr
SDL_GPUTextureFormat colorFormat = SDL_GPU_TEXTUREFORMAT_INVALID
SDL_GPUTextureFormat depthFormat = SDL_GPU_TEXTUREFORMAT_INVALID
uint2 extent {}
SDL_GPUColorTargetInfo colorTarget {}
SDL_GPUDepthStencilTargetInfo depthTarget {}

Static Public Attributes

static constexpr GraphicsAPI kAPI = GraphicsAPI::SDLGPU

Detailed Description

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.

Member Data Documentation

◆ kAPI

GraphicsAPI tachyon::sdlgpu::SDLGPUSceneRender::kAPI = GraphicsAPI::SDLGPU
staticconstexpr

◆ 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: