mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
19 lines
867 B
Python
19 lines
867 B
Python
import renderdoc as rd
|
|
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')
|