mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Deleted ObjC::CAMetalLayer_Set_framebufferOnly
Use the metal-cpp implementation instead of the helper version
This commit is contained in:
committed by
Baldur Karlsson
parent
8a0af20c1e
commit
9e8be2400f
@@ -34,7 +34,6 @@ CA::MetalLayer *Get_Layer(MTL::Drawable *drawable);
|
||||
void CALayer_GetSize(void *layerHandle, int &width, int &height);
|
||||
void CAMetalLayer_Set_drawableSize(void *layerHandle, int w, int h);
|
||||
void CAMetalLayer_Set_device(void *layerHandle, MTL::Device *device);
|
||||
void CAMetalLayer_Set_framebufferOnly(void *layerHandle, bool enable);
|
||||
void CAMetalLayer_Set_pixelFormat(void *layerHandle, MTL::PixelFormat format);
|
||||
CA::MetalDrawable *CAMetalLayer_nextDrawable(void *layerHandle);
|
||||
};
|
||||
|
||||
@@ -80,14 +80,6 @@ void ObjC::CAMetalLayer_Set_device(void *layerHandle, MTL::Device *device)
|
||||
metalLayer.device = id<MTLDevice>(device);
|
||||
}
|
||||
|
||||
void ObjC::CAMetalLayer_Set_framebufferOnly(void *layerHandle, bool enable)
|
||||
{
|
||||
CAMetalLayer *metalLayer = (CAMetalLayer *)layerHandle;
|
||||
RDCASSERT([metalLayer isKindOfClass:[CAMetalLayer class]]);
|
||||
|
||||
metalLayer.framebufferOnly = enable ? YES : NO;
|
||||
}
|
||||
|
||||
void ObjC::CAMetalLayer_Set_pixelFormat(void *layerHandle, MTL::PixelFormat format)
|
||||
{
|
||||
CAMetalLayer *metalLayer = (CAMetalLayer *)layerHandle;
|
||||
|
||||
Reference in New Issue
Block a user