compiles on robins computer :)

This commit is contained in:
Robin
2025-01-18 20:24:15 +01:00
parent db1b1a60ca
commit c65af95a66
9 changed files with 46 additions and 10 deletions

View File

@@ -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));