| 60 | } |
| 61 | |
| 62 | NativeHandle 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 |
nothing calls this directly
no test coverage detected