mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-17 11:15:39 +00:00
* 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.
20 lines
645 B
Python
20 lines
645 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.controller.SetFrameEvent(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")
|