TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
sdlgpu_device.h File Reference
#include <gui_core/graphics/gui_image.h>
#include <gui_core/graphics/gui_image_batcher.h>
#include <gui_core/graphics/gui_primitive_renderer.h>
#include <gui_core/graphics/gui_rhi.h>
#include <gui_core/graphics/sdlgpu/sdlgpu_graphics_context.h>
#include <SDL3/SDL_gpu.h>
#include <SDL3/SDL_log.h>
#include <array>
#include <functional>
#include <memory>
#include <mutex>
#include <optional>
#include <span>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>

Go to the source code of this file.

Classes

class  tachyon::sdlgpu::SDLGPUImage
 An image (GraphicsContext::CreateImage): a texture sampled by the shaders. More...
class  tachyon::sdlgpu::SDLGPUImageSet
 The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less). More...
struct  tachyon::sdlgpu::DrawUniforms
 The uniforms both stages of every draw get, as all_common.slang declares them. More...
struct  tachyon::sdlgpu::SDLGPUGraphicsContext::Impl
struct  tachyon::sdlgpu::SDLGPUGraphicsContext::Impl::TextureCopy
 A whole image's pixels, or rows rows from firstRow written into one already up (UpdateImageRows); 0 rows is the whole image. More...
struct  tachyon::sdlgpu::SDLGPUGraphicsContext::Impl::BufferCopy
struct  tachyon::sdlgpu::SDLGPUGraphicsContext::Impl::CopyScratch
 RecordCopies' working lists, kept between frames for their storage. More...
struct  tachyon::sdlgpu::SDLGPUGraphicsContext::Impl::Resident
struct  tachyon::sdlgpu::SDLGPUGraphicsContext::Impl::Scene
 What RenderScene keeps for a key: its color texture (in the image set) and depth, both in liveImages. More...
struct  tachyon::sdlgpu::SDLGPUGraphicsContext::Impl::SceneRequest
struct  tachyon::sdlgpu::SDLGPUGraphicsContext::Impl::ImageTarget

Namespaces

namespace  tachyon
namespace  tachyon::sdlgpu

Functions

DeviceAddress tachyon::sdlgpu::MakeAddress (uint32_t entry, uint32_t offset)
 What a DeviceAddress holds: the buffer table's entry, and the byte offset into it.
uint32_t tachyon::sdlgpu::AddressEntry (DeviceAddress address)
uint32_t tachyon::sdlgpu::AddressOffset (DeviceAddress address)

Variables

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