diff options
Diffstat (limited to 'third_party/rust/gfx-backend-metal/shaders/macros.h')
-rw-r--r-- | third_party/rust/gfx-backend-metal/shaders/macros.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/rust/gfx-backend-metal/shaders/macros.h b/third_party/rust/gfx-backend-metal/shaders/macros.h new file mode 100644 index 0000000000..b731190479 --- /dev/null +++ b/third_party/rust/gfx-backend-metal/shaders/macros.h @@ -0,0 +1,5 @@ +#ifdef __METAL_MACOS__ +# define GFX_RENDER_TARGET_ARRAY_INDEX [[render_target_array_index]] +#else +# define GFX_RENDER_TARGET_ARRAY_INDEX +#endif |