From 0f9b3a95a6cc087bc1e34d4becff04fa6160c582 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 18 Mar 2021 13:19:58 -0700 Subject: Remove `DescriptorSet` from D3D11 and GL devices. (#1761) --- tools/gfx/render-graphics-common.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'tools/gfx/render-graphics-common.cpp') diff --git a/tools/gfx/render-graphics-common.cpp b/tools/gfx/render-graphics-common.cpp index 5ae148ea0..b734bf391 100644 --- a/tools/gfx/render-graphics-common.cpp +++ b/tools/gfx/render-graphics-common.cpp @@ -226,23 +226,6 @@ public: bindingRangeInfo.rangeIndexInDescriptorSet = rangeIndexInDescriptorSet; m_bindingRanges.add(bindingRangeInfo); - -#if 0 - SlangInt binding = typeLayout->getBindingRangeIndexOffset(r); - SlangInt space = typeLayout->getBindingRangeSpaceOffset(r); - SlangInt subObjectRangeIndex = typeLayout->getBindingRangeSubObjectRangeIndex(r); - - DescriptorSetLayout::SlotRangeDesc slotRange; - slotRange.type = _mapDescriptorType(slangBindingType); - slotRange.count = count; - slotRange.binding = binding; - - Index descriptorSetIndex = findOrAddDescriptorSet(space); - RefPtr descriptorSetInfo = m_descriptorSetInfos[descriptorSetIndex]; - - Index slotRangeIndex = descriptorSetInfo->slotRanges.getCount(); - descriptorSetInfo->slotRanges.add(slotRange); -#endif } SlangInt subObjectRangeCount = typeLayout->getSubObjectRangeCount(); @@ -275,17 +258,6 @@ public: m_subObjectRanges.add(subObjectRange); } - -#if 0 - SlangInt subObjectRangeCount = typeLayout->getSubObjectRangeCount(); - for(SlangInt r = 0; r < subObjectRangeCount; ++r) - { - - // TODO: Still need a way to map the binding ranges for - // the sub-object over so that they can be used to - // set/get the sub-object as needed. - } -#endif return SLANG_OK; } -- cgit v1.2.3