Comments (4)
You need to have glslangValidator, spirv-as and spirv-val in your PATH, maybe it is another one that's missing? Adding them all to the PATH worked for me. Also you need to make sure glslang is the at the commit listed in the .travis.yaml if you want things to pass CI.
from spirv-cross.
@Kangz Thanks for your suggestion.
I added the SPIRV-Tools/build/tools
directory to my $PATH, and I can now launch both spirv-as
and spirv-val
from command line in the SPIRV-Cross
directory.
Sadly it doesn't help. Python is still not finding glslangValidator
...even though it too is accessible from the command line in the SPIRV-Cross
directory.
I'm using Python 3.5.2
...if that could conceivably matter.
from spirv-cross.
This is really weird, yes. I tried this on a 10.10 box after building glslang/spirv-tools fresh, and it worked fine.
PATH=$PATH:../glslang/build/Standalone/:../spirv-tools/build/tools ./test_shaders.py shaders-msl --metal
If I copy all the binaries to /usr/local/bin then it worked fine without PATH.
Is your python3 binary linking to someplace weird? I have mine in /usr/local/bin at least.
If you try this in python3 interpreter, does it pick up PATH properly?
import os
print(os.environ['PATH'])
from spirv-cross.
Arrrgghh!!!
Okay...I've figured this out finally.
In my terminal shell PATH
env var, I was using ~/...
instead of the absolute path through /Users/bill/...
.
This works fine when running glslValidator
from the command line...but not from within test_shaders.py
.
I was delayed in figuring this out because...arbitrarily...and frustratingly...using ~/...
in the PATH
-setting pre-command you use above...DOES work! It gets resolved to /Users/bill/...
before it is appended to the PATH
and passed to python3
...whereas the original shell PATH
appears in python3
with the ~/...
values still intact.
from spirv-cross.
Related Issues (20)
- Array wrapper may cause a GPU crash? HOT 6
- MSL: invalid code generated when atan2 and saturate are used in mixed precision environment HOT 1
- Invalid MSL when multiple SPIR-V variables are decorated with the same `BuiltIn` HOT 2
- MSL: how to query bind-point of `[image]_atomic` buffer? HOT 1
- Decompile glsl and get unexpected buffer size HOT 2
- Aliasing of argument buffers on breaks padding in some cases HOT 4
- Tests failures HOT 2
- MSL: Option to enforce fragment execution when side effects are present before discard HOT 1
- MSL: non-const reference cannot bind to vector element when passing a vector component as out parameter HOT 3
- Msl: Texture2D used with SampleCmp is not converted to depth2D in all functions HOT 1
- hlsl: Geometry shader generation produces unsupported execution model exception HOT 5
- MSL: Argument buffer IDs are increased across buffers HOT 2
- Slang produces spv that works on win/linux but not with MoltenVk HOT 5
- MSL: 1-size hack for runtime arrays causes GPU page fault HOT 1
- compiler is optimizing unreferenced parameter in CompilerGLSL::type_to_array_glsl and causing linking issues HOT 6
- HLSL: binding start offset feature HOT 4
- Obj): error LNK2038: Mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' mismatch value 'MDd_DynamicDebug' (in Car.obj) HOT 1
- Feature request: Support for SM 6.8 SV_StartVertexLocation/SV_StartInstanceLocation in HLSL output HOT 1
- openGL ES lowp HOT 3
- MSL: Bindless for only one parameter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spirv-cross.