1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
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)
draw = self.find_draw("Draw")
self.controller.SetFrameEvent(draw.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: rd.PipeState = self.controller.GetPipelineState()
self.check_pixel_value(pipe.GetOutputTargets()[0].resourceId, 0.5, 0.5, [0.0, 1.0, 0.0, 1.0])
|