mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
compiles on robins computer :)
This commit is contained in:
@@ -156,6 +156,8 @@ Raycaster::Raycaster(cudaGraphicsResource_t resources, int w, int h, float* data
|
||||
|
||||
|
||||
void Raycaster::render() {
|
||||
std::cout << "hello???\n";
|
||||
check_cuda_errors(cudaGetLastError());
|
||||
check_cuda_errors(cudaGraphicsMapResources(1, &this->resources));
|
||||
check_cuda_errors(cudaGraphicsResourceGetMappedPointer((void**)&(this->fb->buffer), &(this->fb->buffer_size), resources));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user