Files
renderdoc/util/test/tests/GL/GL_Buffer_Spam.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

21 lines
620 B
Python

import rdtest
class GL_Buffer_Spam(rdtest.TestCase):
demos_test_name = 'GL_Buffer_Spam'
def check_capture(self):
# Check that export works
self.check_export(self.capture_filename)
action = self.find_action("Draw")
self.controller.SetFrameEvent(action.eventId, False)
# Check that we get green in the centre of the screen, indicating that the
# triangle's buffer serialised with the right data and rendered
pipe = self.controller.GetPipelineState()
self.check_pixel_value(pipe.GetOutputTargets()[0].resource, 0.5, 0.5, [0.0, 1.0, 0.0, 1.0])