| 121 | } |
| 122 | |
| 123 | NativeHandle Sampler::getNativeHandle() const |
| 124 | { |
| 125 | gfx::InteropHandle gfxNativeHandle = {}; |
| 126 | FALCOR_GFX_CALL(mGfxSamplerState->getNativeHandle(&gfxNativeHandle)); |
| 127 | #if FALCOR_HAS_D3D12 |
| 128 | if (mpDevice->getType() == Device::Type::D3D12) |
| 129 | return NativeHandle(D3D12_CPU_DESCRIPTOR_HANDLE{gfxNativeHandle.handleValue}); |
| 130 | #endif |
| 131 | #if FALCOR_HAS_VULKAN |
| 132 | if (mpDevice->getType() == Device::Type::Vulkan) |
| 133 | return NativeHandle(reinterpret_cast<VkSampler>(gfxNativeHandle.handleValue)); |
| 134 | #endif |
| 135 | return {}; |
| 136 | } |
| 137 | |
| 138 | uint32_t Sampler::getApiMaxAnisotropy() |
| 139 | { |
nothing calls this directly
no test coverage detected