Files
renderdoc/util/test/tests/GL/GL_Buffer_Spam.py
T
baldurk ec36d155bc Remove redundant type annotations
* These come from long ago when using PyCharm with not as good type checking and
  with renderdoc module stubs that were incomplete so needed help identifying
  types.
2026-09-11 15:04:04 +01:00

22 lines
643 B
Python

import renderdoc as rd
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])