Git Product home page Git Product logo

Comments (6)

dneto0 avatar dneto0 commented on May 2, 2024

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.

 avatar commented on May 2, 2024

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.

 avatar commented on May 2, 2024

I tried SPIRV, but after link program got error in nvoglv64.dll

from shaderc.

dneto0 avatar dneto0 commented on May 2, 2024

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.

dneto0 avatar dneto0 commented on May 2, 2024

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.

dneto0 avatar dneto0 commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.