Code Monkey home page Code Monkey logo

Comments (6)

mellinoe avatar mellinoe commented on May 27, 2024

My guess is that Windows Server 2019 doesn't have the required Direct3D shader compiler, so that step will be skipped. For SPIR-V compilation to work, you need to install glslangvalidator -- the easiest way is to install the Vulkan SDK.

from shadergen.

Jiuyong avatar Jiuyong commented on May 27, 2024

thank you reply me so quickly!
but , it work Direct3D shader compiler well on Windows Server 2019.
please see https://github.com/Siyy/BasicComputeShader demo.
it can work well on Windows Server 2019 .
and i install Vulkan SDK from https://vulkan.lunarg.com/sdk/home#sdk/downloadConfirm/1.1.92.1/windows/VulkanSDK-1.1.92.1-Installer.exe ,but it can't output *.450.glsl.spv as before.
and it can output *.450.glsl well.

from shadergen.

mellinoe avatar mellinoe commented on May 27, 2024

ShaderGen tries to use fxc.exe, the command-line compiler program. It's possible that the compiler is present but ShaderGen doesn't know how to find it on that OS. glslangvalidator should work as long as it is on the PATH when it runs. I don't have a lot of time to look into that, unfortunately.

from shadergen.

Jiuyong avatar Jiuyong commented on May 27, 2024

YES!
YOU ARE RIGHT !
When i installed the Win8 SDK by vs2017, it output the * .hlsl.bytes file. and when i restart the windows ,it can output * .450.glsl.spv file now.
Did it out of fxc.exe possible in the near future instead by D3DCompiler_*.DLL ?

from shadergen.

mellinoe avatar mellinoe commented on May 27, 2024

Yes, using D3DCompiler.dll (through SharpDX most likely) would be a better long-term solution here. At the moment I am not actively working on this project, so I won't be able to fix things like that. If you submit a small patch for it, I would be happy to review.

from shadergen.

Jiuyong avatar Jiuyong commented on May 27, 2024

May i write commit message in Chinese ?

from shadergen.

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.