Skip to content

Commit

Permalink
[WIP] do not use ALIGNED_STRUCT_ macro for Scene and Geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
freibold committed Nov 26, 2024
1 parent 855654f commit 7cf0a59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions kernels/common/geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,8 @@ namespace embree
};

/*! Base class all geometries are derived from */
class Geometry : public RefCount
class __aligned(16) Geometry : public RefCount
{
ALIGNED_CLASS_(16);

friend class Scene;
public:

Expand Down
4 changes: 1 addition & 3 deletions kernels/common/scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ namespace embree
struct TaskGroup;

/*! Base class all scenes are derived from */
class Scene : public AccelN
class __aligned(16) Scene : public AccelN
{
ALIGNED_CLASS_(std::alignment_of<Scene>::value);

public:
template<typename Ty, bool mblur = false>
class Iterator
Expand Down

0 comments on commit 7cf0a59

Please sign in to comment.