mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-13 17:30:12 +00:00
* 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.
32 lines
1.0 KiB
Python
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")
|