mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-15 06:20:41 +00:00
WrappedMTLObject::AddEven() & AddAction()
Trampoline calls to m_Device->AddEvent() & AddAction() WrappedMTLDevice::AddAction() & AddAction() are currently empty stubs
This commit is contained in:
committed by
Baldur Karlsson
parent
e63f41ff1f
commit
424f910bfc
@@ -57,6 +57,16 @@ WriteSerialiser &WrappedMTLDevice::GetThreadSerialiser()
|
||||
return *ser;
|
||||
}
|
||||
|
||||
void WrappedMTLDevice::AddAction(const ActionDescription &a)
|
||||
{
|
||||
METAL_NOT_IMPLEMENTED();
|
||||
}
|
||||
|
||||
void WrappedMTLDevice::AddEvent()
|
||||
{
|
||||
METAL_NOT_IMPLEMENTED();
|
||||
}
|
||||
|
||||
void WrappedMTLDevice::WaitForGPU()
|
||||
{
|
||||
MTL::CommandBuffer *mtlCommandBuffer = m_mtlCommandQueue->commandBuffer();
|
||||
|
||||
@@ -130,6 +130,9 @@ public:
|
||||
void RegisterMetalLayer(CA::MetalLayer *mtlLayer);
|
||||
void UnregisterMetalLayer(CA::MetalLayer *mtlLayer);
|
||||
|
||||
void AddEvent();
|
||||
void AddAction(const ActionDescription &a);
|
||||
|
||||
enum
|
||||
{
|
||||
TypeEnum = eResDevice
|
||||
|
||||
@@ -57,3 +57,13 @@ MetalResourceRecord::~MetalResourceRecord()
|
||||
if(m_Type == eResCommandBuffer)
|
||||
SAFE_DELETE(cmdInfo);
|
||||
}
|
||||
|
||||
void WrappedMTLObject::AddEvent()
|
||||
{
|
||||
m_Device->AddEvent();
|
||||
}
|
||||
|
||||
void WrappedMTLObject::AddAction(const ActionDescription &a)
|
||||
{
|
||||
m_Device->AddAction(a);
|
||||
}
|
||||
|
||||
@@ -66,6 +66,8 @@ struct WrappedMTLObject
|
||||
|
||||
MTL::Device *GetDevice() { return (MTL::Device *)m_Device; }
|
||||
MetalResourceManager *GetResourceManager();
|
||||
void AddEvent();
|
||||
void AddAction(const ActionDescription &a);
|
||||
|
||||
void *m_ObjcBridge = NULL;
|
||||
void *m_Real;
|
||||
|
||||
Reference in New Issue
Block a user