mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
PR Feedback for WrappedMTLCommandBuffer
Moved small inline methods to be inside the class declaration instead of outside
This commit is contained in:
committed by
Baldur Karlsson
parent
12d9d347c2
commit
6931c4d93b
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user