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 GPU-accelerated image processing system that processes images rendered by OpenGL using parallel compute operations. The system should enable bidirectional data sharing between graphics rendering and compute processing.
Create a processing pipeline that:
Implement a function process_gl_image(gl_buffer, brightness_factor) that:
The brightness adjustment should multiply each color channel by the brightness factor while preserving the alpha channel.
Ensure proper resource management:
@generates
def process_gl_image(gl_buffer, brightness_factor: float, queue=None, context=None):
"""
Process an OpenGL buffer using GPU compute operations.
Args:
gl_buffer: OpenGL buffer object handle to process
brightness_factor: Multiplier for RGB channel brightness (float)
queue: Optional compute command queue to use
context: Optional compute context (must be GL-sharing enabled)
Returns:
None (modifies buffer in place)
Raises:
RuntimeError: If buffer cannot be acquired for compute access
ValueError: If brightness_factor is negative
"""
passProvides GPU compute capabilities and OpenGL interoperability support for sharing graphics resources with compute operations.