Comments (6)
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.
I just validated that this works. Please let me know if you have any more issues.
from angleproject.
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.
Oops, nevermind. My mistake, passed the wrong length when loading the shader.
Thanks! :D
from angleproject.
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.
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
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 angleproject.