summaryrefslogtreecommitdiff
path: root/kernel.cu
diff options
context:
space:
mode:
authorBrett Weiland <brettsweiland@gmail.com>2024-05-27 20:56:59 -0500
committerBrett Weiland <brettsweiland@gmail.com>2024-05-27 20:56:59 -0500
commit093200a449ea38952de52012e324036c106e294b (patch)
tree6030076eb894ca100d6aa0d6550ab56955e7fb2f /kernel.cu
parent7e9e2150619c05f9e8a74432e596b11f373518b9 (diff)
boutta switch away from templates
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);
}