tessl install tessl/pypi-pyopencl@2025.2.0Python wrapper for OpenCL enabling GPU and parallel computing with comprehensive array operations and mathematical functions
Agent Success
Agent success rate when using this tile
86%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.28x
Baseline
Agent success rate without this tile
67%
Build a simple image post-processing system that processes OpenGL textures using GPU compute operations. The system should apply brightness adjustments to texture data through GPU-OpenGL interoperability.
Create a Python program that:
Provides GPU compute capabilities with OpenGL interoperability.
Provides array operations for image data handling.
Provides OpenGL rendering context and texture management.
File: test_gl_interop.py
Test: Verify that a shared OpenGL/compute context can be created successfully without errors.
Expected: Context creation succeeds and can be queried for basic properties.
File: test_gl_interop.py
Test: Create an OpenGL texture with a solid color (128, 64, 32, 255), share it with compute context, read it back. Verify the values match.
Expected: The compute context should read the exact same RGBA values from the shared texture.
File: test_gl_interop.py
Test: Create texture with RGB=(100, 100, 100, 255), apply brightness factor of 1.5, read result.
Expected: Output should be RGB=(150, 150, 150, 255). Values should be properly clamped to [0, 255] range if they exceed it.
File: test_gl_interop.py
Test: Create texture with RGB=(200, 100, 50, 255), apply brightness factor of 0.5, read result.
Expected: Output should be RGB=(100, 50, 25, 255) showing proper darkening while preserving alpha channel.