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

Classes

struct  DebugConfig
 Where SDL GPU's messages go. More...
struct  DrawUniforms
 The uniforms both stages of every draw get, as all_common.slang declares them. More...
class  SDLGPUCommandList
class  SDLGPUGraphicsContext
class  SDLGPUImage
 An image (GraphicsContext::CreateImage): a texture sampled by the shaders. More...
class  SDLGPUImageSet
 The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less). More...
struct  SDLGPUSceneRender
 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...
class  SDLGPUWindowContext

Enumerations

enum class  DebugSeverity : uint8_t { DebugSeverity::Info , DebugSeverity::Warning , DebugSeverity::Error }
 How serious a message from SDL GPU's debug mode is. More...

Functions

DeviceAddress MakeAddress (uint32_t entry, uint32_t offset)
 What a DeviceAddress holds: the buffer table's entry, and the byte offset into it.
uint32_t AddressEntry (DeviceAddress address)
uint32_t AddressOffset (DeviceAddress address)
bool CreatePipelines (SDLGPUGraphicsContext::Impl &device)
 A pipeline per primitive kind from the built-in SDL GPU shaders, in the format the device takes.
void ReleasePipelines (SDLGPUGraphicsContext::Impl &device)

Variables

constexpr SDL_GPUTextureFormat kDrawFormat = SDL_GPU_TEXTUREFORMAT_B8G8R8A8_UNORM
 The format windows draw in, whatever their swapchain's: the blit to it converts.
constexpr SDL_GPUTextureFormat kDepthFormat = SDL_GPU_TEXTUREFORMAT_D32_FLOAT

Function Documentation

◆ MakeAddress()

DeviceAddress tachyon::sdlgpu::MakeAddress ( uint32_t entry,
uint32_t offset )
inline

What a DeviceAddress holds: the buffer table's entry, and the byte offset into it.

◆ AddressEntry()

uint32_t tachyon::sdlgpu::AddressEntry ( DeviceAddress address)
inline

◆ AddressOffset()

uint32_t tachyon::sdlgpu::AddressOffset ( DeviceAddress address)
inline

◆ CreatePipelines()

bool tachyon::sdlgpu::CreatePipelines ( SDLGPUGraphicsContext::Impl & device)

A pipeline per primitive kind from the built-in SDL GPU shaders, in the format the device takes.

False, logged, when one can't be made.

◆ ReleasePipelines()

void tachyon::sdlgpu::ReleasePipelines ( SDLGPUGraphicsContext::Impl & device)

Variable Documentation

◆ kDrawFormat

SDL_GPUTextureFormat tachyon::sdlgpu::kDrawFormat = SDL_GPU_TEXTUREFORMAT_B8G8R8A8_UNORM
inlineconstexpr

The format windows draw in, whatever their swapchain's: the blit to it converts.

◆ kDepthFormat

SDL_GPUTextureFormat tachyon::sdlgpu::kDepthFormat = SDL_GPU_TEXTUREFORMAT_D32_FLOAT
inlineconstexpr