mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 22:25:55 +00:00
Disallow debugging D3D11 shaders that use unbound constant buffer arrays
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user