Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Akio Gaule <[email protected]>
  • Loading branch information
akioCL committed Nov 12, 2024
1 parent 97e9b79 commit 479a613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Advanced/pad-to-attribute-validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def check_StructuredBuffer_Vs_ConstantBuffer_Padding(thefile, compilerPath, sile
predicates.append(lambda expectedSize=expectedSize: j["ShaderResourceGroups"][0]["inputsForBufferViews"][0]["stride"] == expectedSize)
predicates.append(lambda: j["ShaderResourceGroups"][0]["inputsForBufferViews"][0]["type"] == "StructuredBuffer<MyStruct>")

predicates.append(lambda expectedSize=expectedSize: j["ShaderResourceGroups"][0]["inputsForSRGConstants"][27]["constantByteSize"] == expectedSize)
predicates.append(lambda: j["ShaderResourceGroups"][0]["inputsForSRGConstants"][27]["typeName"] == "/MyStruct")
predicates.append(lambda expectedSize=expectedSize: j["ShaderResourceGroups"][0]["inputsForSRGConstants"][-1]["constantByteSize"] == expectedSize)
predicates.append(lambda: j["ShaderResourceGroups"][0]["inputsForSRGConstants"][-1]["typeName"] == "/MyStruct")

ok = testfuncs.verifyAllPredicates(predicates, j, silent)
if ok and not silent:
Expand Down

0 comments on commit 479a613

Please sign in to comment.