From 093200a449ea38952de52012e324036c106e294b Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Mon, 27 May 2024 20:56:59 -0500 Subject: boutta switch away from templates --- kernel.cu | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'kernel.cu') diff --git a/kernel.cu b/kernel.cu index 6bed13c..c6895dc 100644 --- a/kernel.cu +++ b/kernel.cu @@ -1,18 +1,9 @@ #include #include #include -#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 scene; + //scene.render(image); } -- cgit v1.2.3