Files
voxel-raycaster/kernels/minimal_kernel.c
mitchellhansen 11146a6551 Getting things passed over to cl. No vector4 datatype in sfml,
and cl only passes by even numbers of vectors. Update to 2.4? or
make my own sf::Vector4?
2016-08-30 20:43:35 -07:00

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);
}