Package examples :: Module opencl
[hide private]
[frames] | no frames]

Module opencl

source code

Basic OpenGL/OpenCL interoperability example.


Author: Stephan Wenger

Date: 2012-02-29

Classes [hide private]
  CLCode
  OpenCLExample
Variables [hide private]
  kernel_code = '\n__kernel void animate(__global float4* positi...
  __package__ = 'examples'
Variables Details [hide private]

kernel_code

Value:
'''
__kernel void animate(__global float4* positions,
                      __global float4* colors,
                      __global float4* velocities,
                      __global float4* initial_positions,
                      __global float4* initial_velocities,
                      float dt) {
    unsigned int i = get_global_id(0);
...