Skip to content

Commit 83847ea

Browse files
jhananitigcbot
authored andcommitted
Updated Resource loaded values for Bindless types in DX11
Updated Resource loaded values for Bindless types in DX11
1 parent 4fdeaca commit 83847ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class CShader
436436
m_BindingTableEntryCount = m_pBtiLayout->GetBindingTableEntryCount();
437437
m_BindingTableUsedEntriesBitmap |= BITMASK_RANGE(0, (m_BindingTableEntryCount / cBTEntriesPerCacheLine));
438438

439-
if (bufType == RESOURCE)
439+
if (bufType == RESOURCE || bufType == BINDLESS_TEXTURE)
440440
{
441441
unsigned int MaxArray = m_pBtiLayout->GetTextureIndexSize() / 32;
442442
for (unsigned int i = 0; i < MaxArray; i++)
@@ -449,11 +449,11 @@ class CShader
449449
m_shaderResourceLoaded[MaxArray] = BIT(i % 32);
450450
}
451451
}
452-
else if (bufType == CONSTANT_BUFFER)
452+
else if (bufType == CONSTANT_BUFFER || bufType == BINDLESS_CONSTANT_BUFFER)
453453
{
454454
m_constantBufferLoaded |= BITMASK_RANGE(0, m_pBtiLayout->GetConstantBufferIndexSize());
455455
}
456-
else if (bufType == UAV)
456+
else if (bufType == UAV || bufType == BINDLESS)
457457
{
458458
m_uavLoaded |= QWBITMASK_RANGE(0, m_pBtiLayout->GetUavIndexSize());
459459
}

0 commit comments

Comments
 (0)