Files
renderdoc/util/test/tests/D3D11/D3D11_Deferred_Map.py
T
baldurk 748e089b15 Fix remaining static analysis identified issues in python test code
* 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.
2026-09-11 15:04:05 +01:00

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")