mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-15 10:15:48 +00:00
* 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.
21 lines
620 B
Python
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])
|