xcode, 修改shader内依赖文件, 无法及时生效 #372
luxiaodong
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
xcode, 修改shader内依赖文件, 无法及时生效
复现方法
打开 mesh_lighting.inl,随便输入 xxxxxx
预期行为
xcode 编译出错
实际行为
xcode 编译成功
Desktop | 桌面环境
Additional context | 补充信息
单独在xcode里编译PiccoloShaderCompile也是成功的。
将Build Phases内的 脚本直接在终端运行可以出现报错。如下
shadow-MacBook-Pro:shader shadow$
/Users/shadow/Project/Git/Piccolo/engine/3rdparty/VulkanSDK/bin/MacOS/glslangValidator -I/Users/shadow/Project/Git/Piccolo/engine/shader/include -V100 -o /Users/shadow/Project/Git/Piccolo/engine/shader/generated/spv/mesh.frag.spv /Users/shadow/Project/Git/Piccolo/engine/shader/glsl/mesh.frag
/Users/shadow/Project/Git/Piccolo/engine/shader/glsl/mesh.frag
ERROR: /Users/shadow/Project/Git/Piccolo/engine/shader/include/mesh_lighting.inl:119: 'xxxxxx' : undeclared identifier
ERROR: /Users/shadow/Project/Git/Piccolo/engine/shader/include/mesh_lighting.inl:122: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
将Build Phases内的 脚本在Xcode添加一条echo, 也能报错。
感觉是xcode哪里做了缓存导致的
Beta Was this translation helpful? Give feedback.
All reactions