WrappedMTLObject::AddEven() & AddAction()

Trampoline calls to m_Device->AddEvent() & AddAction()
WrappedMTLDevice::AddAction() & AddAction() are currently empty stubs
This commit is contained in:
Jake Turner
2022-08-11 06:10:31 +01:00
committed by Baldur Karlsson
parent e63f41ff1f
commit 424f910bfc
4 changed files with 25 additions and 0 deletions
+10
View File
@@ -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();
+3
View File
@@ -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);
}
+2
View File
@@ -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;