Files
renderdoc/util/test/tests/D3D12/D3D12_Draw_Zoo.py
T
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

30 lines
886 B
Python

import rdtest
class D3D12_Draw_Zoo(rdtest.Draw_Zoo):
demos_test_name = 'D3D12_Draw_Zoo'
internal = False
def check_capture(self):
rdtest.log.begin_section("SM5.0")
marker = self.find_action("SM5.0")
assert marker is not None
self.check_capture_action(marker)
rdtest.log.end_section("SM5.0")
marker = self.find_action("SM6.0")
if marker is None:
rdtest.log.print("No SM6.0 action to test")
return
rdtest.log.begin_section("SM6.0")
self.check_capture_action(marker)
rdtest.log.end_section("SM6.0")
marker = self.find_action("SM6.6")
if marker is None:
rdtest.log.print("No SM6.6 action to test")
return
rdtest.log.begin_section("SM6.6")
self.check_capture_action(marker)
rdtest.log.end_section("SM6.6")