Disallow debugging D3D11 shaders that use unbound constant buffer arrays

This commit is contained in:
baldurk
2026-05-11 14:34:30 +01:00
parent 7f1e0040e5
commit 6a97c6c17b
@@ -624,6 +624,15 @@ rdcstr Program::GetDebugStatus()
// otherwise we need to check that no unsupported vendor extensions are used
DecodeProgram();
for(const Declaration &decl : m_Declarations)
{
if(decl.operand.type == TYPE_CONSTANT_BUFFER && decl.operand.indices.size() == 3 &&
decl.operand.indices[2].index == 0xffffffff)
{
return "Unsupported unbounded ConstantBuffer array";
}
}
for(const Operation &op : m_Instructions)
{
if(op.operation >= OPCODE_VENDOR_FIRST)