MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / DescriptorTableManager

Method DescriptorTableManager

src/engine/DescriptorTableManager.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60donut::engine::DescriptorTableManager::DescriptorTableManager(nvrhi::IDevice* device, nvrhi::IBindingLayout* layout)
61 : m_Device(device)
62{
63 m_DescriptorTable = m_Device->createDescriptorTable(layout);
64
65 size_t capacity = m_DescriptorTable->getCapacity();
66 m_AllocatedDescriptors.resize(capacity);
67 m_Descriptors.resize(capacity);
68 memset(m_Descriptors.data(), 0, sizeof(nvrhi::BindingSetItem) * capacity);
69}
70
71donut::engine::DescriptorIndex donut::engine::DescriptorTableManager::CreateDescriptor(nvrhi::BindingSetItem item)
72{

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected