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

Classes

struct  Buffer
 A buffer in one of D3D12MA's heaps. An upload-heap buffer stays mapped (mapped). More...
class  D3D12CommandList
class  D3D12GraphicsContext
class  D3D12Image
 An image (GraphicsContext::CreateImage): a texture sampled by the shaders. More...
class  D3D12ImageSet
 The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less). More...
struct  D3D12SceneRender
 What GraphicsContext::RenderScene's record gets on Direct3D 12 (ScenePayload::As): the window frame's command list with the scene's color and depth textures set as its render targets (color cleared to the scene's clear color, depth to 1), and the viewport and scissor set to all of it. More...
class  D3D12WindowContext
struct  DebugConfig
 Where the debug layer's messages go. More...
struct  ExternalDevice
 A host's device and queue, for the GUI to render on (SetExternalDevice) instead of making its own. More...
struct  FrameArena
 A frame slot's transient data: one upload buffer, written from the start each time the slot comes round, grown when a frame needs more. More...

Enumerations

enum class  DebugSeverity : uint8_t { DebugSeverity::Info , DebugSeverity::Warning , DebugSeverity::Error }
 How serious a debug-layer message is. More...

Functions

std::string HResultText (HRESULT hr)
 A failed call's HRESULT as text, for errors and logs ("0x887A0005").
std::string FromWide (const wchar_t *text)
 UTF-16 from Windows (an adapter's name) as UTF-8.
uint32_t SamplerSlot (Sampler sampler)
 The static sampler (s0, s1, s2) the shaders sample an image with: its row in the per-image table at t7.
bool CreatePipelines (D3D12GraphicsContext::Impl &device)
 The root signature, as the shaders' TACHYON_D3D12 path declares it (all_common.slang, sdf_color.slang), and a pipeline per primitive kind from the built-in DXIL.

Variables

constexpr DXGI_FORMAT kDrawFormat = DXGI_FORMAT_B8G8R8A8_UNORM
 What a window frame draws into, as on Vulkan: 8-bit BGRA, and 32-bit float depth.
constexpr DXGI_FORMAT kDepthFormat = DXGI_FORMAT_D32_FLOAT

Function Documentation

◆ HResultText()

std::string tachyon::d3d12::HResultText ( HRESULT hr)

A failed call's HRESULT as text, for errors and logs ("0x887A0005").

◆ FromWide()

std::string tachyon::d3d12::FromWide ( const wchar_t * text)

UTF-16 from Windows (an adapter's name) as UTF-8.

◆ SamplerSlot()

uint32_t tachyon::d3d12::SamplerSlot ( Sampler sampler)

The static sampler (s0, s1, s2) the shaders sample an image with: its row in the per-image table at t7.

◆ CreatePipelines()

bool tachyon::d3d12::CreatePipelines ( D3D12GraphicsContext::Impl & device)

The root signature, as the shaders' TACHYON_D3D12 path declares it (all_common.slang, sdf_color.slang), and a pipeline per primitive kind from the built-in DXIL.

Variable Documentation

◆ kDrawFormat

DXGI_FORMAT tachyon::d3d12::kDrawFormat = DXGI_FORMAT_B8G8R8A8_UNORM
inlineconstexpr

What a window frame draws into, as on Vulkan: 8-bit BGRA, and 32-bit float depth.

◆ kDepthFormat

DXGI_FORMAT tachyon::d3d12::kDepthFormat = DXGI_FORMAT_D32_FLOAT
inlineconstexpr