Return the WrappedMTLCommandQueue from CmdBuffer

Previous API return goes back to usage for objective C calls and this is not required now the objective C and C++ wrapping/unwrapping has advanced and simplified.
More sense/natural/correct to return type without casting it.
This commit is contained in:
Jake Turner
2022-06-28 20:28:53 +01:00
committed by Baldur Karlsson
parent 681611d3c4
commit 4d69962397
@@ -36,7 +36,7 @@ public:
WrappedMTLDevice *wrappedMTLDevice);
void SetCommandQueue(WrappedMTLCommandQueue *commandQueue) { m_CommandQueue = commandQueue; }
MTL::CommandQueue *GetCommandQueue() { return (MTL::CommandQueue *)m_CommandQueue; }
WrappedMTLCommandQueue *GetCommandQueue() { return m_CommandQueue; }
DECLARE_FUNCTION_WITH_RETURN_SERIALISED(WrappedMTLBlitCommandEncoder *, blitCommandEncoder);
DECLARE_FUNCTION_WITH_RETURN_SERIALISED(WrappedMTLRenderCommandEncoder *,
renderCommandEncoderWithDescriptor,