and cl only passes by even numbers of vectors. Update to 2.4? or make my own sf::Vector4?
15 lines
448 B
C
15 lines
448 B
C
__kernel void min_kern(
|
|
global char* in,
|
|
global char* map,
|
|
global int3* map_dim,
|
|
global int2* resolution,
|
|
global float3* projection_matrix
|
|
){
|
|
|
|
size_t id = get_global_id(0);
|
|
|
|
//printf("%i %c -- ", id, map[id]);
|
|
//printf("%i, %i, %i\n", map_dim->x, map_dim->y, map_dim->z);
|
|
printf("\n%i\nX: %f\nY: %f\nZ: %f\n", id, projection_matrix[id].x, projection_matrix[id].y, projection_matrix[id].z);
|
|
|
|
} |