subdivpatch1.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright 2009-2021 Intel Corporation
  2. // SPDX-License-Identifier: Apache-2.0
  3. #pragma once
  4. #include "../geometry/primitive.h"
  5. #include "../subdiv/subdivpatch1base.h"
  6. namespace embree
  7. {
  8. struct __aligned(64) SubdivPatch1 : public SubdivPatch1Base
  9. {
  10. struct Type : public PrimitiveType
  11. {
  12. const char* name() const;
  13. size_t sizeActive(const char* This) const;
  14. size_t sizeTotal(const char* This) const;
  15. size_t getBytes(const char* This) const;
  16. };
  17. static Type type;
  18. public:
  19. /*! constructor for cached subdiv patch */
  20. SubdivPatch1 (const unsigned int gID,
  21. const unsigned int pID,
  22. const unsigned int subPatch,
  23. const SubdivMesh *const mesh,
  24. const size_t time,
  25. const Vec2f uv[4],
  26. const float edge_level[4],
  27. const int subdiv[4],
  28. const int simd_width)
  29. : SubdivPatch1Base(gID,pID,subPatch,mesh,time,uv,edge_level,subdiv,simd_width) {}
  30. };
  31. }