mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-16 10:45:45 +00:00
* This lets the testcase track the current EID and print it when a failure happens
23 lines
907 B
Python
23 lines
907 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.set_event(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)}")
|