PR Feedback for WrappedMTLCommandBuffer

Moved small inline methods to be inside the class declaration instead of outside
This commit is contained in:
Jake Turner
2022-04-09 06:26:20 +01:00
committed by Baldur Karlsson
parent 12d9d347c2
commit 6931c4d93b
+8 -13
View File
@@ -35,9 +35,15 @@ public:
WrappedMTLCommandBuffer(MTL::CommandBuffer *realMTLCommandBuffer, ResourceId objId,
WrappedMTLDevice *wrappedMTLDevice);
void SetWrappedMTLCommandQueue(WrappedMTLCommandQueue *wrappedMTLCommandQueue);
void SetWrappedMTLCommandQueue(WrappedMTLCommandQueue *wrappedMTLCommandQueue)
{
m_WrappedMTLCommandQueue = wrappedMTLCommandQueue;
}
MTL::CommandQueue *GetObjCBridgeMTLCommandQueue();
MTL::CommandQueue *GetObjCBridgeMTLCommandQueue()
{
return GetObjCBridge(m_WrappedMTLCommandQueue);
}
DECLARE_FUNCTION_SERIALISED(void, presentDrawable, MTL::Drawable *drawable);
DECLARE_FUNCTION_SERIALISED(void, commit);
@@ -50,14 +56,3 @@ public:
private:
WrappedMTLCommandQueue *m_WrappedMTLCommandQueue;
};
inline MTL::CommandQueue *WrappedMTLCommandBuffer::GetObjCBridgeMTLCommandQueue()
{
return GetObjCBridge(m_WrappedMTLCommandQueue);
}
inline void WrappedMTLCommandBuffer::SetWrappedMTLCommandQueue(
WrappedMTLCommandQueue *wrappedMTLCommandQueue)
{
m_WrappedMTLCommandQueue = wrappedMTLCommandQueue;
}