Sample Scene for Project Discussion with TA

This commit is contained in:
2019-12-29 23:39:33 +02:00
parent 5dd2de5d77
commit 9a2f6129bc
18 changed files with 960856 additions and 27 deletions
+3
View File
@@ -3,6 +3,7 @@
#include <Windows.h>
#include <CL/cl.h>
#include "geometry.h"
#include "util_window.h"
extern cl_uint numPlatforms;
@@ -31,6 +32,7 @@ extern const char* matrix_mul_kernel_source;
extern const char* vertex_shader_kernel_source;
extern const char* fragment_shader_kernel_source;
extern const char* fluid_vertex_shader_kernel_source;
extern cl_command_queue commands;
extern cl_platform_id* platforms;
@@ -39,6 +41,7 @@ extern cl_context context;
extern cl_mem z_buffer_mem;
extern cl_mem pixel_data_buffer;
extern cl_mem time_buffer;
void init_kernels();
void destroy_kernels();