Skip to content

Commit

Permalink
fix sphere light gas
Browse files Browse the repository at this point in the history
  • Loading branch information
iaomw committed Sep 29, 2024
1 parent e4ce443 commit c902e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenovis/xinxinoptix/optixPathTracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ static void buildLightSpheresGAS( PathTracerState& state, std::vector<float4>& l
raii<CUdeviceptr> d_vertex_buffer{};

{
auto data_length = sizeof( Vertex ) * sphere_count;
auto data_length = sizeof( float4 ) * sphere_count;

CUDA_CHECK( cudaMalloc( reinterpret_cast<void**>( &d_vertex_buffer.reset() ), data_length) );
CUDA_CHECK( cudaMemcpy( reinterpret_cast<void*>( (CUdeviceptr)d_vertex_buffer ), lightSpheres.data(),
Expand Down

0 comments on commit c902e95

Please sign in to comment.