Skip to content

Commit d98abb4

Browse files
DXCompiler: fixed issue in resource declaration parsing (close #633)
1 parent 40906a4 commit d98abb4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Graphics/ShaderTools/src/DXCompiler.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,12 @@ void DXCompilerImpl::PatchResourceDeclaration(const TResourceBindingMap& Resourc
13811381
// undef, !"", i32 -1,
13821382
// ^
13831383
const size_t BindingRecordStart = pos + 1;
1384-
VERIFY_EXPR(DXIL[BindingRecordStart] == ',');
1384+
if (DXIL[BindingRecordStart] != ',')
1385+
{
1386+
// This is not a resource declaration record, continue searching.
1387+
pos = BindingRecordStart;
1388+
continue;
1389+
}
13851390

13861391
// Parse resource class.
13871392
pos = DXIL.rfind(ResourceRecStart, EndOfResTypeRecord);

0 commit comments

Comments
 (0)