Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/embree/kernels/config.h
9903 views
1
// Copyright 2009-2021 Intel Corporation
2
// SPDX-License-Identifier: Apache-2.0
3
4
#include "../include/embree4/rtcore_config.h"
5
6
// #cmakedefine EMBREE_RAY_MASK
7
// #cmakedefine EMBREE_STAT_COUNTERS
8
// #cmakedefine EMBREE_BACKFACE_CULLING
9
// #cmakedefine EMBREE_BACKFACE_CULLING_CURVES
10
// #cmakedefine EMBREE_BACKFACE_CULLING_SPHERES
11
#define EMBREE_FILTER_FUNCTION
12
// #cmakedefine EMBREE_IGNORE_INVALID_RAYS
13
#define EMBREE_GEOMETRY_TRIANGLE
14
// #cmakedefine EMBREE_GEOMETRY_QUAD
15
// #cmakedefine EMBREE_GEOMETRY_CURVE
16
// #cmakedefine EMBREE_GEOMETRY_SUBDIVISION
17
// #cmakedefine EMBREE_GEOMETRY_USER
18
// #cmakedefine EMBREE_GEOMETRY_INSTANCE
19
// EMBREE_GEOMETRY_INSTANCE_ARRAY is defined in rtcore_config.h
20
// #cmakedefine EMBREE_GEOMETRY_GRID
21
// #cmakedefine EMBREE_GEOMETRY_POINT
22
#define EMBREE_RAY_PACKETS
23
// #cmakedefine EMBREE_COMPACT_POLYS
24
25
#define EMBREE_CURVE_SELF_INTERSECTION_AVOIDANCE_FACTOR 2.0
26
#define EMBREE_DISC_POINT_SELF_INTERSECTION_AVOIDANCE
27
28
#if defined(EMBREE_GEOMETRY_TRIANGLE)
29
#define IF_ENABLED_TRIS(x) x
30
#else
31
#define IF_ENABLED_TRIS(x)
32
#endif
33
34
#if defined(EMBREE_GEOMETRY_QUAD)
35
#define IF_ENABLED_QUADS(x) x
36
#else
37
#define IF_ENABLED_QUADS(x)
38
#endif
39
40
#if defined(EMBREE_GEOMETRY_CURVE) || defined(EMBREE_GEOMETRY_POINT)
41
#define IF_ENABLED_CURVES_OR_POINTS(x) x
42
#else
43
#define IF_ENABLED_CURVES_OR_POINTS(x)
44
#endif
45
46
#if defined(EMBREE_GEOMETRY_CURVE)
47
#define IF_ENABLED_CURVES(x) x
48
#else
49
#define IF_ENABLED_CURVES(x)
50
#endif
51
52
#if defined(EMBREE_GEOMETRY_POINT)
53
#define IF_ENABLED_POINTS(x) x
54
#else
55
#define IF_ENABLED_POINTS(x)
56
#endif
57
58
#if defined(EMBREE_GEOMETRY_SUBDIVISION)
59
#define IF_ENABLED_SUBDIV(x) x
60
#else
61
#define IF_ENABLED_SUBDIV(x)
62
#endif
63
64
#if defined(EMBREE_GEOMETRY_USER)
65
#define IF_ENABLED_USER(x) x
66
#else
67
#define IF_ENABLED_USER(x)
68
#endif
69
70
#if defined(EMBREE_GEOMETRY_INSTANCE)
71
#define IF_ENABLED_INSTANCE(x) x
72
#else
73
#define IF_ENABLED_INSTANCE(x)
74
#endif
75
76
#if defined(EMBREE_GEOMETRY_INSTANCE_ARRAY)
77
#define IF_ENABLED_INSTANCE_ARRAY(x) x
78
#else
79
#define IF_ENABLED_INSTANCE_ARRAY(x)
80
#endif
81
82
#if defined(EMBREE_GEOMETRY_GRID)
83
#define IF_ENABLED_GRIDS(x) x
84
#else
85
#define IF_ENABLED_GRIDS(x)
86
#endif
87
88
89
90
91
92