MCPcopy Create free account
hub / github.com/NVIDIA-RTX/NRI / DescriptorPoolVal

Method DescriptorPoolVal

Source/Validation/DescriptorPoolVal.h:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9struct DescriptorPoolVal final : public ObjectVal {
10 DescriptorPoolVal(DeviceVal& device, DescriptorPool* descriptorPool, uint32_t descriptorSetMaxNum)
11 : ObjectVal(device, descriptorPool)
12 , m_DescriptorSets(device.GetStdAllocator())
13 , m_SkipValidation(true) // TODO: we have to request "DescriptorPoolDesc" in "DescriptorPoolVKDesc"
14 {
15 m_Desc.descriptorSetMaxNum = descriptorSetMaxNum;
16 m_DescriptorSets.reserve(m_Desc.descriptorSetMaxNum);
17 for (uint32_t i = 0; i < m_Desc.descriptorSetMaxNum; i++)
18 m_DescriptorSets.emplace_back(DescriptorSetVal(device));
19 }
20
21 DescriptorPoolVal(DeviceVal& device, DescriptorPool* descriptorPool, const DescriptorPoolDesc& descriptorPoolDesc)
22 : ObjectVal(device, descriptorPool)

Callers

nothing calls this directly

Calls 1

DescriptorSetValClass · 0.85

Tested by

no test coverage detected