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

23 lines
922 B
Python

import rdtest
class VK_Load_Store_None(rdtest.TestCase):
demos_test_name = 'VK_Load_Store_None'
def check_capture(self):
res = self.get_resource_by_name('PreserveImg').resourceId
for action in [self.find_action("BeginRender"), self.find_action("Draw"), self.find_action("EndRender"),
self.find_action("Blit")]:
assert action is not None
self.controller.SetFrameEvent(action.eventId, True)
self.check_pixel_value(res, 200, 125, [0.0, 1.0, 0.0, 1.0])
self.check_pixel_value(res, 200, 90, [0.2, 0.2, 0.2, 1.0])
self.check_pixel_value(res, 200, 160, [0.2, 0.2, 0.2, 1.0])
self.check_pixel_value(res, 250, 125, [0.2, 0.2, 0.2, 1.0])
self.check_pixel_value(res, 100, 125, [0.2, 0.2, 0.2, 1.0])
rdtest.log.success(f"Preserved image is as expected at {self.action_name(action)}")