浏览代码

Add comment and check for SHADER_TARGET_AVAILABLE

/main
GitHub 7 年前
当前提交
884cfab3
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 10
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Common.hlsl

10
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Common.hlsl


#endif // #ifndef real
// Target in compute shader are supported in 2018.2, for now define ours
// (Note only 45 and above support compute shader)
#define SHADER_TARGET 50 // Not defined otherwise
# ifndef SHADER_TARGET
# if defined(SHADER_API_METAL) || defined(SHADER_API_VULKAN)
# define SHADER_TARGET 45
# else
# define SHADER_TARGET 50
# endif
# endif
#endif
// Include language header

正在加载...
取消
保存