baldurk
ca682d6d34
Use context helpers for pixel debugging
2026-09-11 21:17:17 +01:00
baldurk
191597b27c
Don't allow find_*_source_var to return None
...
* Almost all callers expect a return value, so better to raise an exception
inside and make it non-optional return
2026-09-11 21:17:17 +01:00
baldurk
ae019398cb
Remove checks for shader debuggability
...
* All APIs now support shader debugging by default and we assume/require all
shaders in tests to be debuggable.
2026-09-11 21:17:17 +01:00
baldurk
04af66d71f
Check for failed ShaderDebugTrace centrally
...
* We don't expect the debug to fail entirely and if it does we can throw a test
failure
2026-09-11 21:17:16 +01:00
baldurk
2a0989ba9a
Use local helper function for setting current EID
...
* This lets the testcase track the current EID and print it when a failure
happens
2026-09-11 19:19:27 +01:00
baldurk
d7cbb743e4
Set more tests to use common check_vertex_debug() helper
2026-09-11 19:19:26 +01:00
baldurk
fc27cf0deb
Add ability to run tests in parallel
2026-09-11 19:19:26 +01:00
baldurk
748e089b15
Fix remaining static analysis identified issues in python test code
...
* This includes:
- Incorrect comparisons
- Missing type annotations where it can't be inferred
- Variable shadowing and bad use
- Unused imports
- asserts for non-None on types
* Passes clean on strict pyright checking except for
`reportMissingParameterType`, `reportUnusedVariable`, and
`reportOptionalMemberAccess` which are all too spammy and low value to be
worth addressing.
2026-09-11 15:04:05 +01:00
baldurk
12636a1607
Switch from str.format to f-strings in tests
...
* These were available for python 3.6 too so was never any reason not to use
them except not being aware they existed.
2026-09-11 15:04:04 +01:00
baldurk
ec36d155bc
Remove redundant type annotations
...
* These come from long ago when using PyCharm with not as good type checking and
with renderdoc module stubs that were incomplete so needed help identifying
types.
2026-09-11 15:04:04 +01:00
baldurk
fd55020165
Add helper for checking vertex debugging matches postvs
...
* There are a few 'extras' here as the uses aren't quite uniform, but they are
close enough it makes sense to have a common helper
2026-09-11 15:04:03 +01:00
baldurk
e85651545f
Add test of GL shader debugging
2025-12-02 12:17:36 +00:00