|
TachyonUI 1.1.0
High-performance UI for building tools.
|
Namespaces | |
| namespace | binding |
| Where the shaders find their resources (all_common.slang, sdf_color.slang): buffer, texture and sampler indices, the same in the vertex and the fragment stage. | |
Classes | |
| struct | Buffer |
| A buffer the CPU writes and the GPU reads (shared storage), and its handle for addresses. 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 buffer, written from the start each time the slot comes round, grown when a frame needs more. More... | |
| class | MetalCommandList |
| class | MetalGraphicsContext |
| class | MetalImage |
| An image (GraphicsContext::CreateImage): a texture sampled by the shaders. More... | |
| class | MetalImageSet |
| The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less). More... | |
| struct | MetalSceneRender |
| What GraphicsContext::RenderScene's record gets on Metal (ScenePayload::As): the window frame's command buffer and a render command encoder on the scene's color and depth textures (color cleared to the scene's clear color, depth to 1), with the viewport set to all of it. More... | |
| class | MetalWindowContext |
| struct | RootConstants |
| The constants each draw sets (setVertexBytes): the world matrix's four columns, the time, and the draw's first vertex (each draw's vertices start at 0). More... | |
Functions | |
| uint32_t | SamplerSlot (Sampler sampler) |
| The sampler (0, 1, 2) the shaders sample an image with: its entry in the per-image table. | |
| bool | CreatePipelines (MetalGraphicsContext::Impl &device) |
| A pipeline per primitive kind from the built-in shaders (Metal Shading Language source, compiled now), the depth states and the samplers. | |
Variables | |
| constexpr MTLPixelFormat | kDrawFormat = MTLPixelFormatBGRA8Unorm |
| What a window frame draws into, as on the other APIs: 8-bit BGRA, and 32-bit float depth. | |
| constexpr MTLPixelFormat | kDepthFormat = MTLPixelFormatDepth32Float |
| constexpr uint32_t | kMaxImageSlots = 500000 |
| The most images the shaders' image table holds (all_common.slang's kMetalMaxImages). | |
| uint32_t tachyon::metal::SamplerSlot | ( | Sampler | sampler | ) |
The sampler (0, 1, 2) the shaders sample an image with: its entry in the per-image table.
| bool tachyon::metal::CreatePipelines | ( | MetalGraphicsContext::Impl & | device | ) |
A pipeline per primitive kind from the built-in shaders (Metal Shading Language source, compiled now), the depth states and the samplers.
False, with the reason logged, on failure.
|
inlineconstexpr |
What a window frame draws into, as on the other APIs: 8-bit BGRA, and 32-bit float depth.
|
inlineconstexpr |
|
inlineconstexpr |
The most images the shaders' image table holds (all_common.slang's kMetalMaxImages).