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

32 lines
1.0 KiB
Python

import rdtest
class D3D12_Buffer_Truncation(rdtest.Buffer_Truncation):
demos_test_name = 'D3D12_Buffer_Truncation'
internal = False
def check_capture(self):
rdtest.log.begin_section("SM5")
self.draw_action = self.find_action("SM5")
self.draw_action = self.draw_action.nextAction
super().check_capture()
rdtest.log.end_section("SM5")
self.draw_action = self.find_action("SM6.0")
if self.draw_action is None:
rdtest.log.print("No SM6.0 action to test")
return
rdtest.log.begin_section("SM6.0")
self.draw_action = self.draw_action.nextAction
super().check_capture()
rdtest.log.end_section("SM6.0")
self.draw_action = self.find_action("SM6.6")
if self.draw_action is None:
rdtest.log.print("No SM6.6 action to test")
return
rdtest.log.begin_section("SM6.6")
self.draw_action = self.draw_action.nextAction
super().check_capture()
rdtest.log.end_section("SM6.6")