Skip to content

Commit

Permalink
[WIP] compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
freibold committed Oct 24, 2024
1 parent d198df9 commit 3250243
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions kernels/common/scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ namespace embree
ALIGNED_CLASS_USM_(std::alignment_of<Scene>::value);

public:
#if !defined(__SYCL_DEVICE_ONLY__)
template<typename Ty, bool mblur = false>
class Iterator
{
Expand Down Expand Up @@ -143,7 +142,6 @@ namespace embree
Geometry::GTypeMask typemask;
bool mblur;
};
#endif

public:

Expand Down Expand Up @@ -254,7 +252,7 @@ namespace embree

template<typename Mesh>
__forceinline Mesh* getSafe(size_t i) {
if (geometries_device[i] == null) return nullptr;
if (geometries_device[i] == nullptr) return nullptr;
if (!(geometries_device[i]->getTypeMask() & Mesh::geom_type)) return nullptr;
else return (Mesh*) geometries_device[i];
}
Expand Down
2 changes: 0 additions & 2 deletions kernels/common/scene_triangle_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ namespace embree
return madd(Vec3fa(t0),v0,t1*v1);
}

#if !defined(__SYCL_DEVICE_ONLY__)
/*! calculates the bounds of the i'th triangle */
__forceinline BBox3fa bounds(size_t i) const
{
Expand Down Expand Up @@ -263,7 +262,6 @@ namespace embree
bool topologyChanged(unsigned int otherVersion) const {
return triangles.isModified(otherVersion); // || numPrimitivesChanged;
}
#endif // !defined(__SYCL_DEVICE_ONLY__)

/* returns the projected area */
__forceinline float projectedPrimitiveArea(const size_t i) const {
Expand Down

0 comments on commit 3250243

Please sign in to comment.