Files
renderdoc/util/test/tests/Vulkan/VK_Imageless_Framebuffer.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

19 lines
494 B
Python

import rdtest
class VK_Imageless_Framebuffer(rdtest.TestCase):
demos_test_name = 'VK_Imageless_Framebuffer'
def check_capture(self):
action = self.find_action("Draw")
assert action is not None
self.controller.SetFrameEvent(action.eventId, False)
pipe = self.controller.GetPipelineState()
self.check_pixel_value(pipe.GetOutputTargets()[0].resource, 0.5, 0.5, [0.0, 1.0, 0.0, 1.0])
rdtest.log.success("picked value is as expected")