blob: 2214019c7cf3ffdfd10449b776648f16689871a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <stdio.h>
#include "scene.cuh"
__device__ void Scene::debug() {
//const uint3 unnormalized_uv = ((blockDim * blockIdx) + threadIdx);
//const unsigned int img_index = (unnormalized_uv.x + (unnormalized_uv.y * blockDim.x * gridDim.x)) * 4;
}
__device__ Color Scene::raycast(struct Ray ray) {
if(ray.bounces++ > max_bounces) return make_color(0);
const size_t obj_count = sizeof(objs) / sizeof(objs[0]);
for(size_t obj_i = 0; obj_i < obj_count; obj_i++);
return make_color(0);
}
|