Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_optix.cpp
| Show First 20 Lines • Show All 1,383 Lines • ▼ Show 20 Lines | # endif | ||||
| OptixTraversableHandle handle; | OptixTraversableHandle handle; | ||||
| if (build_optix_bvh(build_input, num_motion_steps, handle)) { | if (build_optix_bvh(build_input, num_motion_steps, handle)) { | ||||
| geometry.insert({ob->geometry, handle}); | geometry.insert({ob->geometry, handle}); | ||||
| } | } | ||||
| else { | else { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| else if (geom->type == Geometry::MESH) { | else if (geom->type == Geometry::MESH || geom->type == Geometry::VOLUME) { | ||||
| // Build BLAS for triangle primitives | // Build BLAS for triangle primitives | ||||
| Mesh *const mesh = static_cast<Mesh *const>(ob->geometry); | Mesh *const mesh = static_cast<Mesh *const>(ob->geometry); | ||||
| if (mesh->num_triangles() == 0) { | if (mesh->num_triangles() == 0) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| const size_t num_verts = mesh->verts.size(); | const size_t num_verts = mesh->verts.size(); | ||||
| ▲ Show 20 Lines • Show All 370 Lines • Show Last 20 Lines | |||||