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

Method setSampler

Source/Falcor/Core/API/Shared/D3D12DescriptorSet.cpp:88–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void D3D12DescriptorSet::setSampler(uint32_t rangeIndex, uint32_t descIndex, const Sampler* pSampler)
89{
90 FALCOR_CHECK(getRange(rangeIndex).type == Type::Sampler, "Unexpected descriptor range type in setSampler()");
91 setCpuHandle(rangeIndex, descIndex, pSampler->getNativeHandle().as<D3D12_CPU_DESCRIPTOR_HANDLE>());
92}
93
94static D3D12_GPU_DESCRIPTOR_HANDLE copyDescriptorTableToGPU(
95 CopyContext* pCtx,

Callers

nothing calls this directly

Calls 1

getNativeHandleMethod · 0.45

Tested by

no test coverage detected