MetalLayerBridge.h file
Namespaces
- namespace nCine
- Root namespace of nCine game engine.
- namespace nCine::RHI
- Render Hardware Interface — compile-time-selectable graphics backend abstraction.
- namespace nCine::RHI::Metal
- Metal backend for macOS and iOS, selected by
WITH_RHI_METAL.
Functions
- void MtlLayerSetup(void* layer, MTL::Device* device, bool vsync)
- Points the layer at
device, sets its pixel format to BGRA8Unorm and its vertical-sync mode. -
void MtlLayerSetDrawableSize(void* layer,
std::
int32_t width, std:: int32_t height) - Sets the size in pixels of the drawables the layer hands out.
- auto MtlLayerNextDrawable(void* layer) -> CA::MetalDrawable*
- Acquires the next drawable (blocks while all are in flight;
nullptrwhen none becomes available). The caller owns one reference. -
auto MtlLayerPixelFormat(void* layer) -> std::
uint32_t MTL::PixelFormatof the layer's drawables (as an integer, matching the present pipeline's attachment)