So I have made some progress here. I changed my resize function to:
void SampleRenderer::resize(const vec3i &newSize) {
trajDepthBuffer.resize(newSize.x*newSize.y*newSize.z*sizeof(uint32_t));
cameraLocationsBuffer.resize(newSize.x*newSize.y*newSize.z*sizeof(vec3f));
launchParams.cameras.size = newSize;
launchParams.cameras.depthBuffer = (uint32_t*)trajDepthBuffer.d_pointer();
launchParams.cameras.cameraLocationsBuffer = (vec3f*)cameraLocationsBuffer.d_pointer();
}
And I got rid of this in the main:
sample.cameraLocationsBuffer.resize(numPoints*sizeof(vec3f));
This allowed the program to launch and render(the points won’t make sense because it is a single pixel from each camera, depth sensor if you will). The rendered values however, did not make sense. They were all zeros. However, I think I found the issue for that as well. I believe it is related to the issue I was having HERE. I will update in that thread.