You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
556 B
Plaintext
24 lines
556 B
Plaintext
|
4 years ago
|
#ifndef __platformDefines_hlsl_
|
||
|
|
#define __platformDefines_hlsl_
|
||
|
|
|
||
|
|
#if SHADER_API_METAL
|
||
|
|
#define GPUI_THREADS 256
|
||
|
|
#define GPUI_THREADS_2D 16
|
||
|
|
#elif SHADER_API_GLES3
|
||
|
|
#define GPUI_THREADS 128
|
||
|
|
#define GPUI_THREADS_2D 8
|
||
|
|
#elif SHADER_API_VULKAN
|
||
|
|
#define GPUI_THREADS 128
|
||
|
|
#define GPUI_THREADS_2D 8
|
||
|
|
#elif SHADER_API_GLCORE
|
||
|
|
#define GPUI_THREADS 256
|
||
|
|
#define GPUI_THREADS_2D 16
|
||
|
|
#elif SHADER_API_PS4
|
||
|
|
#define GPUI_THREADS 512
|
||
|
|
#define GPUI_THREADS_2D 16
|
||
|
|
#else
|
||
|
|
#define GPUI_THREADS 512
|
||
|
|
#define GPUI_THREADS_2D 16
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|