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

Method setUav

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

Source from the content-addressed store, hash-verified

76}
77
78void D3D12DescriptorSet::setUav(uint32_t rangeIndex, uint32_t descIndex, const UnorderedAccessView* pUav)
79{
80 auto type = getRange(rangeIndex).type;
81 FALCOR_CHECK(
82 type == Type::TextureUav || type == Type::RawBufferUav || type == Type::TypedBufferUav || type == Type::StructuredBufferUav,
83 "Unexpected descriptor range type in setUav()"
84 );
85 setCpuHandle(rangeIndex, descIndex, pUav->getNativeHandle().as<D3D12_CPU_DESCRIPTOR_HANDLE>());
86}
87
88void D3D12DescriptorSet::setSampler(uint32_t rangeIndex, uint32_t descIndex, const Sampler* pSampler)
89{

Callers

nothing calls this directly

Calls 1

getNativeHandleMethod · 0.45

Tested by

no test coverage detected