mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Added ResourceId GetResID(WrappedMTLObject *obj)
This commit is contained in:
committed by
Baldur Karlsson
parent
33d8061555
commit
d79617cb46
@@ -25,6 +25,14 @@
|
||||
#include "metal_resources.h"
|
||||
#include "metal_device.h"
|
||||
|
||||
ResourceId GetResID(WrappedMTLObject *obj)
|
||||
{
|
||||
if(obj == NULL)
|
||||
return ResourceId();
|
||||
|
||||
return obj->id;
|
||||
}
|
||||
|
||||
void WrappedMTLObject::Dealloc()
|
||||
{
|
||||
// TODO: call the wrapped object destructor
|
||||
|
||||
@@ -75,6 +75,8 @@ struct WrappedMTLObject
|
||||
CaptureState &m_State;
|
||||
};
|
||||
|
||||
ResourceId GetResID(WrappedMTLObject *obj);
|
||||
|
||||
template <typename RealType>
|
||||
RealType Unwrap(WrappedMTLObject *obj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user