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

Method getNativeHandle

Source/Falcor/Core/API/Sampler.cpp:123–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123NativeHandle 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
138uint32_t Sampler::getApiMaxAnisotropy()
139{

Callers

nothing calls this directly

Calls 2

NativeHandleClass · 0.85
getTypeMethod · 0.45

Tested by

no test coverage detected