mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Don't include compute on HLSL 3 and below.
This commit is contained in:
@@ -10,11 +10,15 @@
|
||||
|
||||
#ifndef __cplusplus
|
||||
|
||||
#if BGFX_SHADER_LANGUAGE_HLSL > 0 && BGFX_SHADER_LANGUAGE_HLSL < 400
|
||||
# error "Compute is not supported!"
|
||||
#endif // BGFX_SHADER_LANGUAGE_HLSL
|
||||
|
||||
#if BGFX_SHADER_LANGUAGE_METAL || BGFX_SHADER_LANGUAGE_SPIRV
|
||||
# define ANNOTATION(_format) [[spv::format_ ## _format]]
|
||||
#else
|
||||
# define ANNOTATION(_format)
|
||||
#endif
|
||||
#endif // BGFX_SHADER_LANGUAGE_METAL || BGFX_SHADER_LANGUAGE_SPIRV
|
||||
|
||||
#if BGFX_SHADER_LANGUAGE_GLSL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user