|
TachyonUI 1.1.0
High-performance UI for building tools.
|
import <Metal/Metal.h>#include <gui_core/graphics/gui_image.h>#include <gui_core/graphics/gui_render_primitives.h>#include <gui_core/graphics/gui_rhi.h>#include <gui_core/graphics/metal/metal_graphics_context.h>#include <array>#include <atomic>#include <deque>#include <functional>#include <memory>#include <mutex>#include <optional>#include <span>#include <string>#include <unordered_map>#include <unordered_set>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | tachyon::metal::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... | |
| struct | tachyon::metal::Buffer |
| A buffer the CPU writes and the GPU reads (shared storage), and its handle for addresses. More... | |
| class | tachyon::metal::MetalImage |
| An image (GraphicsContext::CreateImage): a texture sampled by the shaders. More... | |
| class | tachyon::metal::MetalImageSet |
| The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less). More... | |
| struct | tachyon::metal::MetalGraphicsContext::Impl |
| struct | tachyon::metal::MetalGraphicsContext::Impl::Garbage |
| struct | tachyon::metal::MetalGraphicsContext::Impl::ImageUpload |
| A whole image's pixels, or with partial a band of rows from firstRow written into an image already up (UpdateImageRows): its other rows are kept. More... | |
| struct | tachyon::metal::MetalGraphicsContext::Impl::Scene |
| What RenderScene keeps for a key: its color texture (in the image set) and depth, both in liveImages. More... | |
| struct | tachyon::metal::MetalGraphicsContext::Impl::SceneRequest |
Namespaces | |
| namespace | tachyon |
| namespace | tachyon::metal |
| namespace | tachyon::metal::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. | |
Functions | |
| 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. | |
Variables | |
| constexpr MTLPixelFormat | tachyon::metal::kDrawFormat = MTLPixelFormatBGRA8Unorm |
| What a window frame draws into, as on the other APIs: 8-bit BGRA, and 32-bit float depth. | |
| constexpr MTLPixelFormat | tachyon::metal::kDepthFormat = MTLPixelFormatDepth32Float |
| constexpr uint32_t | tachyon::metal::kMaxImageSlots = 500000 |
| The most images the shaders' image table holds (all_common.slang's kMetalMaxImages). | |
| constexpr NSUInteger | tachyon::metal::binding::kConstants = 0 |
| RootConstants. | |
| constexpr NSUInteger | tachyon::metal::binding::kPrimitives = 1 |
| constexpr NSUInteger | tachyon::metal::binding::kBoxStyles = 6 |
| constexpr NSUInteger | tachyon::metal::binding::kColorStyles = 7 |
| constexpr NSUInteger | tachyon::metal::binding::kImageSamplers = 8 |
| each image slot's sampler, a uint each | |
| constexpr NSUInteger | tachyon::metal::binding::kImages = 9 |
| each image slot's MTLResourceID | |
| constexpr NSUInteger | tachyon::metal::binding::kSamplers = 0 |
| nearest repeat, linear repeat, linear clamp | |