|
TachyonUI 1.1.0
High-performance UI for building tools.
|
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...
#include <gui_core/graphics/metal/metal_graphics_context.h>
Public Attributes | |
| void * | commandBuffer = nullptr |
| id<MTLCommandBuffer> | |
| void * | encoder = nullptr |
| id<MTLRenderCommandEncoder> | |
| void * | colorTexture = nullptr |
| id<MTLTexture> | |
| void * | depthTexture = nullptr |
| id<MTLTexture> | |
| uint32_t | colorFormat = 0 |
| MTLPixelFormat: MTLPixelFormatRGBA8Unorm. | |
| uint32_t | depthFormat = 0 |
| MTLPixelFormat: MTLPixelFormatDepth32Float. | |
| uint2 | extent {} |
Static Public Attributes | |
| static constexpr GraphicsAPI | kAPI = GraphicsAPI::Metal |
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.
Draw with your own pipeline and depth state, and don't end the encoder: the backend ends it, and the UI samples the color texture after.
|
staticconstexpr |
| void* tachyon::metal::MetalSceneRender::commandBuffer = nullptr |
id<MTLCommandBuffer>
| void* tachyon::metal::MetalSceneRender::encoder = nullptr |
id<MTLRenderCommandEncoder>
| void* tachyon::metal::MetalSceneRender::colorTexture = nullptr |
id<MTLTexture>
| void* tachyon::metal::MetalSceneRender::depthTexture = nullptr |
id<MTLTexture>
| uint32_t tachyon::metal::MetalSceneRender::colorFormat = 0 |
MTLPixelFormat: MTLPixelFormatRGBA8Unorm.
| uint32_t tachyon::metal::MetalSceneRender::depthFormat = 0 |
MTLPixelFormat: MTLPixelFormatDepth32Float.
| uint2 tachyon::metal::MetalSceneRender::extent {} |