mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-15 10:15:48 +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.
18 lines
844 B
Python
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')
|