Files
renderdoc/util/test/tests/D3D11/D3D11_Deferred_Map.py
T
baldurk 2a0989ba9a Use local helper function for setting current EID
* This lets the testcase track the current EID and print it when a failure
  happens
2026-09-11 19:19:27 +01:00

20 lines
630 B
Python

import rdtest
class D3D11_Deferred_Map(rdtest.TestCase):
demos_test_name = 'D3D11_Deferred_Map'
def check_capture(self):
# Check at the last action
action = self.get_last_action()
self.set_event(action.eventId, False)
pipe = self.controller.GetPipelineState()
# Top half should be red, bottom half should be green
self.check_pixel_value(pipe.GetOutputTargets()[0].resource, 0.5, 0.25, [1.0, 0.0, 0.0, 1.0])
self.check_pixel_value(pipe.GetOutputTargets()[0].resource, 0.5, 0.75, [0.0, 1.0, 0.0, 1.0])
rdtest.log.success("Screen output is as expected")