Comments (6)
Please provide details on how to reproduce the issue. It's not clear what's being reported.
The -E flag produces preprocessed output. It is not meant to be given to a driver, but just to help you debug macro definitions and #include directives.
To generate code, use -c instead. (If you only have a single source file you can drop the -c flag.)
from shaderc.
I don't want SPIR-V code at now. I want process includes.
No, my SPIR-V never will works.
You can try
https://github.com/acterhd/phantom-tracer
https://github.com/acterhd/phantomGL
from shaderc.
I tried SPIRV, but after link program got error in nvoglv64.dll
from shaderc.
Vulkan drivers only have to accept SPIR-V. I'm going to guess you're trying to provide GLSL to an OpenGL driver.
The preprocessed code is not meant to be given to the driver. In particular, the #line directives in Shaderc's output use file names since we do file-based includes. But GLSL #line directives use a shader string number instead of file names. So if you do want to use Shaderc like this you'll have to strip out #line lines, and maybe more. It's outside the scope of this project.
from shaderc.
I don't want SPIR-V code at now. I want process includes.
No, my SPIR-V never will works.
Shaderc is for generating SPIR-V. If all you want is to process includes, you can just use GCC with -E. It's about the same. You'll have to strip out #line for that too since GCC also uses file-based #line directives.
from shaderc.
This is not a Shaderc issue. The output of the preprocessor is being given to a driver, when the driver never promised it would accept such input.
Closing.
from shaderc.
Related Issues (20)
- Shader stage does matter for preprocessing
- Ninja Multi-Config generator fails - Evaluation file to be written multiple times with different content HOT 1
- Including shaderc/CMakeLists.txt as suggested in README not working HOT 4
- Linking error against spirv-tools
- Proper handling of namespace in HLSL
- Is glsl 330 actually supported ?
- Gmock not found HOT 4
- FRP this Android
- No support for source level debug info?
- SPIR_V: Generate nonsemantic shader debug information (with source) HOT 1
- shaderc not found while compiling FFMPEG HOT 1
- tests fail with updated Glslang: TestDashCapOWithDashG fails due to debug output change HOT 2
- enable Glslang tests when Shaderc tests are enabled HOT 1
- "NVVM compilation failed: 3" with mesh shaders
- Build faild when I set BUILD_SHARED_LIBS ON, Windows 10 HOT 1
- RFE: is it possible to start making github releases?🤔 HOT 3
- Optimization issue when specifying --target-env
- [Documentation] gmock appears to be necessary for shaderc HOT 1
- Always say error when wnt instal shaderc with ninja or msvc same
- Compilation succeed with CLI but unexpected INTCONSTANT with C API HOT 6
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 shaderc.