summaryrefslogtreecommitdiff
path: root/kernel.cu
diff options
context:
space:
mode:
Diffstat (limited to 'kernel.cu')
-rw-r--r--kernel.cu17
1 files changed, 4 insertions, 13 deletions
diff --git a/kernel.cu b/kernel.cu
index 6bed13c..c6895dc 100644
--- a/kernel.cu
+++ b/kernel.cu
@@ -1,18 +1,9 @@
#include <curand.h>
#include <stdint.h>
#include <stdio.h>
-#include "include/helper_math.h"
+#include "scene.cuh"
-__global__ void test_image(uint8_t *image) {
- int2 unnormalized_coordinates = make_int2(blockDim.x, blockDim.y) * make_int2(blockIdx.x, blockIdx.y) + make_int2(threadIdx.x, threadIdx.y);
- int2 img_res = make_int2(blockDim.x, blockDim.y) * make_int2(gridDim.x, gridDim.y); //can move if needed
- size_t img_index = ((unnormalized_coordinates.y * img_res.y) + unnormalized_coordinates.x) * 4;
-
- //vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4));
-
-
- image[img_index] = 0x00;
- image[img_index+1] = 0x00;
- image[img_index+2] = 0xff;
- image[img_index+3] = 0xff;
+__global__ void render(uint8_t *image) {
+ scene<float> scene;
+ //scene.render(image);
}