ComputeShaders¶
-
Context.
compute_shader
(source) → ModernGL.programs.ComputeShader Create a
ComputeShader
.Parameters: source (str) – The source of the compute shader. Returns: compute shader program Return type: ComputeShader
-
class
ComputeShader
¶ -
run
(size_x=1, size_y=1, size_z=1)¶ Run the compute shader.
-
source
¶ str – The source code of the compute shader.
-