MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getNativeHandle

Method getNativeHandle

Source/Falcor/Core/API/ComputeStateObject.cpp:62–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62NativeHandle ComputeStateObject::getNativeHandle() const
63{
64 gfx::InteropHandle gfxNativeHandle = {};
65 FALCOR_GFX_CALL(mGfxPipelineState->getNativeHandle(&gfxNativeHandle));
66#if FALCOR_HAS_D3D12
67 if (mpDevice->getType() == Device::Type::D3D12)
68 return NativeHandle(reinterpret_cast<ID3D12PipelineState*>(gfxNativeHandle.handleValue));
69#endif
70#if FALCOR_HAS_VULKAN
71 if (mpDevice->getType() == Device::Type::Vulkan)
72 return NativeHandle(reinterpret_cast<VkPipeline>(gfxNativeHandle.handleValue));
73#endif
74 return {};
75}
76} // namespace Falcor

Callers

nothing calls this directly

Calls 2

NativeHandleClass · 0.85
getTypeMethod · 0.45

Tested by

no test coverage detected