mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
Add helper function to quickly get real from right place and cast
This commit is contained in:
@@ -403,6 +403,12 @@ VkResourceRecord *GetRecord(RealType obj)
|
||||
return GetWrapped(obj)->record;
|
||||
}
|
||||
|
||||
template<typename RealType>
|
||||
RealType ToHandle(WrappedVkRes *ptr)
|
||||
{
|
||||
return UnwrapHelper<RealType>::ToHandle( ((typename UnwrapHelper<RealType>::Outer *)ptr)->real );
|
||||
}
|
||||
|
||||
enum VkResourceType
|
||||
{
|
||||
eResUnknown = 0,
|
||||
|
||||
Reference in New Issue
Block a user