Files
renderdoc/util/test/tests/Vulkan/VK_Read_Before_Overwrite.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

18 lines
844 B
Python

import rdtest
class VK_Read_Before_Overwrite(rdtest.TestCase):
demos_test_name = 'VK_Read_Before_Overwrite'
def check_capture(self):
# force a few replays to ensure we are definitely in a stable point - the first replay after load may have
# slightly different contents (in the case of bugs)
self.controller.SetFrameEvent(self.find_action("checkpoint").eventId, True)
self.controller.SetFrameEvent(self.find_action("checkpoint").eventId, True)
self.controller.SetFrameEvent(self.find_action("checkpoint").eventId, True)
self.check_triangle(None, [0.2, 0.2, 0.2, 1.0], [1.0, 1.0, 1.0, 1.0], (0.0, 0.0, 200.0, 300.0))
self.check_triangle(None, [0.2, 0.2, 0.2, 1.0], [1.0, 1.0, 1.0, 1.0], (200.0, 0.0, 200.0, 300.0))
rdtest.log.success('Triangle is rendered correctly')