config.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Copyright 2009-2020 Intel Corporation
  2. // SPDX-License-Identifier: Apache-2.0
  3. /* #undef EMBREE_RAY_MASK */
  4. /* #undef EMBREE_STAT_COUNTERS */
  5. /* #undef EMBREE_BACKFACE_CULLING */
  6. /* #undef EMBREE_BACKFACE_CULLING_CURVES */
  7. #define EMBREE_FILTER_FUNCTION
  8. /* #undef EMBREE_IGNORE_INVALID_RAYS */
  9. #define EMBREE_GEOMETRY_TRIANGLE
  10. /* #undef EMBREE_GEOMETRY_QUAD */
  11. /* #undef EMBREE_GEOMETRY_CURVE */
  12. /* #undef EMBREE_GEOMETRY_SUBDIVISION */
  13. /* #undef EMBREE_GEOMETRY_USER */
  14. /* #undef EMBREE_GEOMETRY_INSTANCE */
  15. /* #undef EMBREE_GEOMETRY_GRID */
  16. /* #undef EMBREE_GEOMETRY_POINT */
  17. /* #undef EMBREE_RAY_PACKETS */
  18. /* #undef EMBREE_COMPACT_POLYS */
  19. #define EMBREE_CURVE_SELF_INTERSECTION_AVOIDANCE_FACTOR 2.0
  20. #if defined(EMBREE_GEOMETRY_TRIANGLE)
  21. #define IF_ENABLED_TRIS(x) x
  22. #else
  23. #define IF_ENABLED_TRIS(x)
  24. #endif
  25. #if defined(EMBREE_GEOMETRY_QUAD)
  26. #define IF_ENABLED_QUADS(x) x
  27. #else
  28. #define IF_ENABLED_QUADS(x)
  29. #endif
  30. #if defined(EMBREE_GEOMETRY_CURVE) || defined(EMBREE_GEOMETRY_POINT)
  31. #define IF_ENABLED_CURVES_OR_POINTS(x) x
  32. #else
  33. #define IF_ENABLED_CURVES_OR_POINTS(x)
  34. #endif
  35. #if defined(EMBREE_GEOMETRY_CURVE)
  36. #define IF_ENABLED_CURVES(x) x
  37. #else
  38. #define IF_ENABLED_CURVES(x)
  39. #endif
  40. #if defined(EMBREE_GEOMETRY_POINT)
  41. #define IF_ENABLED_POINTS(x) x
  42. #else
  43. #define IF_ENABLED_POINTS(x)
  44. #endif
  45. #if defined(EMBREE_GEOMETRY_SUBDIVISION)
  46. #define IF_ENABLED_SUBDIV(x) x
  47. #else
  48. #define IF_ENABLED_SUBDIV(x)
  49. #endif
  50. #if defined(EMBREE_GEOMETRY_USER)
  51. #define IF_ENABLED_USER(x) x
  52. #else
  53. #define IF_ENABLED_USER(x)
  54. #endif
  55. #if defined(EMBREE_GEOMETRY_INSTANCE)
  56. #define IF_ENABLED_INSTANCE(x) x
  57. #else
  58. #define IF_ENABLED_INSTANCE(x)
  59. #endif
  60. #if defined(EMBREE_GEOMETRY_GRID)
  61. #define IF_ENABLED_GRIDS(x) x
  62. #else
  63. #define IF_ENABLED_GRIDS(x)
  64. #endif