The new rendering method now works on the full compat case.

Added a kernel to help test opencl data passing
renamed the kernels, buffers, etc.
This commit is contained in:
MitchellHansen
2016-11-04 03:28:23 -07:00
parent 5528e03c69
commit d1bd4ce667
13 changed files with 267 additions and 685 deletions

View File

@@ -11,8 +11,13 @@ const float PI_F = 3.14159265358979f;
struct Light {
sf::Vector4f rgbi;
// I believe that Vector3's get padded to Vector4's. Give them a non-garbage value
sf::Vector3f position;
const float padding_1 = -1;
sf::Vector3f direction_cartesian;
const float padding_2 = -2;
};
struct fps_counter {
@@ -164,5 +169,6 @@ inline std::string read_file(std::string file_name){
std::stringstream buf;
buf << input_file.rdbuf();
input_file.close();
return buf.str();
}