config.h 2.1 KB

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