WORKING! Awesome! It now casts fully inside the gpu,

context is then switched to gl and then rendered via sfml.
It has no loop, no controls, and the aspect ratio is off,
but holy hell it works!
This commit is contained in:
2016-09-01 22:45:48 -07:00
parent c565d0facc
commit cf607382a9
5 changed files with 172 additions and 17 deletions

View File

@@ -230,10 +230,10 @@ int CL_Wrapper::store_buffer(cl_mem buffer, std::string buffer_name){
buffer_map.emplace(std::make_pair(buffer_name, buffer));
}
int CL_Wrapper::run_kernel(std::string kernel_name){
int CL_Wrapper::run_kernel(std::string kernel_name, const int work_size){
const int WORKER_SIZE = 10;
size_t global_work_size[1] = { WORKER_SIZE };
size_t global_work_size[1] = { static_cast<size_t>(work_size) };
cl_kernel kernel = kernel_map.at(kernel_name);