GithubHelp home page GithubHelp logo

Comments (2)

darksylinc avatar darksylinc commented on June 24, 2024

Would you like this documented?

Yes please! This was brought to my attention some time ago but it was never addressed.

Is "shaderc" necessary for the vulkan renderer?

Short answer:
Sadly yes. Shaderc is a gigantic dependency from which we use little of it but it is needed to get glslang properly working in all platforms.

Long answer:
In theory we shouldn't need it because we only needed glslang (shaderc is a compilation of tools, and includes glslang and a stable C interface to glslang we don't actually use) and I had trouble to link against glslang directly in all the configurations we have (Debug, Release, C++98, C++ >= 11, Android, Linux, Windows) while with shaderc it just worked.

It didn't make any sense, but Google somehow sorted that out.

Without glslang we cannot compile glsl shaders; which is currently the only shader format we support for Vulkan.

from ogre-next-deps.

oldmanauz avatar oldmanauz commented on June 24, 2024

@darksylinc, Another issue I just got, all the dependencies build fine in debug/release, but when building the "INSTALL" project:

"/OUT:.....\ogre-next-deps\build\src\shaderc-prefix\src\shaderc-build\libshaderc_util\Debug\shaderc_util.lib" /NOLOGO /MACHINE:X64 /machine:x64 shaderc_util.dir\Debug\args.obj
2>  shaderc_util.dir\Debug\compiler.obj
2>  shaderc_util.dir\Debug\file_finder.obj
2>  shaderc_util.dir\Debug\io.obj
2>  shaderc_util.dir\Debug\message.obj
2>LINK : fatal error LNK1104: cannot open file 'shaderc_util.dir\Debug\message.obj' [...\ogre-next-deps\build\src\shaderc-prefix\src\shaderc-build\libshaderc_util\shaderc_util.vcxproj]
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for '...\ogre-next-deps\build\CMakeFiles\d14543c6218fc9f077e713722cf889fe\shaderc-build.rule;...\ogre-next-deps\build\CMakeFiles\d14543c6218fc9f077e713722cf889fe\shaderc-install.rule;...\ogre-next-deps\build\CMakeFiles\b42f6240be198c9ffb646529365d769a\shaderc-complete.rule;...\ogre-next-deps\build\CMakeFiles\f54f24ee0f59ec4d2c4f5236caa1b932\shaderc.rule' exited with code 1.
2>Done building project "shaderc.vcxproj" -- FAILED.

For both debug and release. The debug and release "message.obj" files exist at "...\ogre-next-deps\build\src\shaderc-prefix\src\shaderc-build\libshaderc_util\shaderc_util.dir[Debug|Release]".
Am I doing something stupid?

from ogre-next-deps.

Related Issues (10)

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.