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?
This commit is contained in:
2016-08-30 20:43:35 -07:00
parent 0b9010b007
commit 11146a6551
2 changed files with 90 additions and 6 deletions

View File

@@ -1,9 +1,15 @@
__kernel void min_kern(
global char* in,
global char* map,
global int3 map_dim)
{
int a = 10;
global int3* map_dim,
global int2* resolution,
global float3* projection_matrix
){
size_t id = get_global_id(0);
printf("%c%i\n", in[id], id);
//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);
}