Coder Social home page Coder Social logo

Comments (6)

stammen avatar stammen commented on June 25, 2024

I need to update the shader compiler code. For now, in Visual Studio, from the Debug menu select Graphics/DirectX Control Panel. Click on Edit List and select the glslPrecompiler.exe in the src/glslPrecompiler/Debug folder. Then Under Device Settings Select 9_3 for the Feature level limit. I will be updating the compiler app next week.

from angleproject.

stammen avatar stammen commented on June 25, 2024

I just validated that this works. Please let me know if you have any more issues.

from angleproject.

flsobral avatar flsobral commented on June 25, 2024

Ok, the error is gone, but glProgramBinaryOES still fails.
Using GL_LINK_STATUS I get the following message:
"Invalid program binary version.
Mismatched compilation flags."

I built glslPrecompiler with the following flags:
COMPILE_SHADER
USE_FEATURE_LEVEL_9_3
ANGLE_ENABLE_D3D11

from angleproject.

flsobral avatar flsobral commented on June 25, 2024

Oops, nevermind. My mistake, passed the wrong length when loading the shader.
Thanks! :D

from angleproject.

adipose avatar adipose commented on June 25, 2024

The instructions for glslprecompiler (in the README) say to use flag USE_FEATURE_LEVEL_9_3.

But, this flag has been removed from the codebase (Renderer11.cpp), making it useless.

The above solution does work, but if you add back this code, it also fixes it:

static const D3D_FEATURE_LEVEL sfeatureLevels[] =
{
#ifdef USE_FEATURE_LEVEL_11_0
D3D_FEATURE_LEVEL_11_0
#elif defined(USE_FEATURE_LEVEL_10_1)
D3D_FEATURE_LEVEL_10_1
#elif defined(USE_FEATURE_LEVEL_10_0)
D3D_FEATURE_LEVEL_10_0
#elif defined(USE_FEATURE_LEVEL_9_3)
D3D_FEATURE_LEVEL_9_3
#elif defined(USE_FEATURE_LEVEL_9_2)
D3D_FEATURE_LEVEL_9_2
#elif defined(USE_FEATURE_LEVEL_9_1)
D3D_FEATURE_LEVEL_9_1
#else D3D_FEATURE_LEVEL_11_0,
D3D_FEATURE_LEVEL_10_1,
D3D_FEATURE_LEVEL_10_0,
D3D_FEATURE_LEVEL_9_3,
D3D_FEATURE_LEVEL_9_2,
D3D_FEATURE_LEVEL_9_1
#endif
};

from angleproject.

stammen avatar stammen commented on June 25, 2024

There is a new compiler program in the dev branch in src/winrtcompiler that is now working for winrt and wp8 shader compilation.

from angleproject.

Related Issues (8)

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.