File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 3
3
#include < assert.h>
4
4
#include < iostream>
5
5
6
- // creation flags used by most of the Demo.
7
- // examples:
8
- // RPR_CREATION_FLAGS_ENABLE_GPU0 <- use the first GPU
9
- // RPR_CREATION_FLAGS_ENABLE_CPU <- use the first CPU only
10
- // RPR_CREATION_FLAGS_ENABLE_GPU0 | RPR_CREATION_FLAGS_ENABLE_CPU <- use the first CPU+GPU
11
- // RPR_CREATION_FLAGS_ENABLE_GPU0 | RPR_CREATION_FLAGS_ENABLE_GPU1 <-- use 2 GPU
12
- rpr_creation_flags g_ContextCreationFlags = RPR_CREATION_FLAGS_ENABLE_GPU0;
13
-
14
-
15
6
// Tahoe plugin is in maintenance mode - no new features planned.
16
7
#if 0
17
8
#if defined(WIN32)
@@ -30,12 +21,24 @@ rpr_creation_flags g_ContextCreationFlags = RPR_CREATION_FLAGS_ENABLE_GPU0;
30
21
#define RPR_PLUGIN_FILE_NAME " libNorthstar64.so"
31
22
#elif defined(__APPLE__)
32
23
#define RPR_PLUGIN_FILE_NAME " libNorthstar64.dylib"
33
- g_ContextCreationFlags |= RPR_CREATION_FLAGS_ENABLE_METAL; // by default always enable Metal for MacOS
34
24
#endif
35
25
#define USING_NORTHSTAR
36
26
#endif
37
27
38
28
29
+ // creation flags used by most of the Demo.
30
+ // examples:
31
+ // RPR_CREATION_FLAGS_ENABLE_GPU0 <- use the first GPU
32
+ // RPR_CREATION_FLAGS_ENABLE_CPU <- use the first CPU only
33
+ // RPR_CREATION_FLAGS_ENABLE_GPU0 | RPR_CREATION_FLAGS_ENABLE_CPU <- use the first CPU+GPU
34
+ // RPR_CREATION_FLAGS_ENABLE_GPU0 | RPR_CREATION_FLAGS_ENABLE_GPU1 <-- use 2 GPU
35
+ const rpr_creation_flags g_ContextCreationFlags = RPR_CREATION_FLAGS_ENABLE_GPU0
36
+ #if defined(USING_NORTHSTAR) && defined(__APPLE__)
37
+ | RPR_CREATION_FLAGS_ENABLE_METAL // by default always enable Metal for MacOS
38
+ #endif
39
+ ;
40
+
41
+
39
42
// Structure to describe vertex layout
40
43
struct vertex
41
44
{
You can’t perform that action at this time.
0 commit comments