mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-19 04:05:41 +00:00
* This lets the testcase track the current EID and print it when a failure happens
19 lines
610 B
Python
19 lines
610 B
Python
import rdtest
|
|
|
|
|
|
class D3D12_Write_Subresource(rdtest.TestCase):
|
|
demos_test_name = 'D3D12_Write_Subresource'
|
|
|
|
def check_capture(self):
|
|
action = self.find_action("Draw")
|
|
|
|
self.set_event(action.eventId, False)
|
|
|
|
pipe = self.controller.GetPipelineState()
|
|
|
|
# Should be black around the sides, white in the centre
|
|
self.check_pixel_value(pipe.GetOutputTargets()[0].resource, 0.05, 0.05, [0.0, 0.0, 0.0, 0.0])
|
|
self.check_pixel_value(pipe.GetOutputTargets()[0].resource, 0.5, 0.5, [1.0, 1.0, 1.0, 1.0])
|
|
|
|
rdtest.log.success("Picked values are as expected")
|