Comments (8)
I stand corrected, it can't attach the binary file. Here is the source:
#version 110
attribute vec2 position;
varying vec2 texcoord;
void main()
{
gl_Position = vec4(position, 0.0, 1.0);
texcoord = position * vec2(0.5) + vec2(0.5);
}
from glslang.
After a bit more research, I realize it's not that it's generating functions improperly. The function that it is creating is really supposed to just be a name (OpName, opcode 5). So it's incorrectly generating opcodes.
Even OpExtInstImport is being generated as opcode 4 instead of opcode 11. Is there a new standard i'm missing where these things have changed?
from glslang.
Building from head code the binary SPIR-V seems fine for me (OpExtInstImport first word highlighted with **s):
00000000 03 02 23 07 63 00 00 00 BB 00 1A 05 41 00 00 00 00 00 00 00 ..#.c.......A.......
00000014 03 00 03 00 02 00 00 00 A4 01 00 00 11 00 02 00 01 00 00 00 ....................
00000028 *0B 00 06 00* 01 00 00 00 47 4C 53 4C 2E 73 74 64 2E 34 35 30 ........GLSL.std.450
0000003C 00 00 00 00
OpExtInstImport was opcode 4 in rev 30 of SPIR-V, but glslang generates rev 31 which is opcode 11. Maybe you're building glslang from somewhere else, or running an older binary?
from glslang.
I downloaded the official windows executable from the https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/ website. (https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang/Install). I didn't realize it was so out of date, I will update tomorrow. Thanks for the help, I thought it was something weird because they were all formed properly just that the opcode # wasn't matching up with the reference api.
from glslang.
FYI, I updated the binaries at Khronos, but yes, they are generally updated less frequently than the source here at GitLab.
from glslang.
from glslang.
There is a poll in #42 about which VS version to support, currently vs2010 would almost work but needs some minor tweaks. I have a branch that isn't up to date where I try and keep 2010 working, since that's what I need.
from glslang.
Not a big deal, didn't realize the binary was that outdated and wasn't
having luck compiling. I got it now though. Slowly working on a software
Vulcan driver, of only the spec would be released. I mostly just copied
the mantle API until they do.
On Oct 6, 2015 4:41 PM, "Baldur Karlsson" [email protected] wrote:
There is a poll in #42 #42
about which VS version to support, currently vs2010 would almost work but
needs some minor tweaks. I have a branch that isn't up to date where I try
and keep 2010 working, since that's what I need.—
Reply to this email directly or view it on GitHub
#78 (comment)
.
from glslang.
Related Issues (20)
- Crash in glslang_program_SPIRV_generate_with_options in Android (arm64-v8a) HOT 2
- Incorrect SPIR-V generated when using a fixed-size array of sampler2D with -R (relaxed vulkan rules) HOT 3
- Compile warning on VS2022
- error in combination with preprocessor directives can obfuscate error location. HOT 4
- Glslang version output? HOT 1
- SPIR-V Validation Errors when using Vulkan Relaxed Rules
- Implement GL_NV_bindless_texture HOT 6
- Broken SPIRV generated if using ternary operator ( " a ? b : c " ) as a direct argument to a texelFetch call HOT 2
- Grammar railroad diagram
- nonuniformEXT not working correctly in conditionals HOT 3
- When will this be fixed? I have already sent PR HOT 2
- glslang must really warn when using uninitialized variables
- Conditional compilation is not handled correctly
- Crash on WebASM HOT 6
- error report when use GL_OES_EGL_image_external_essl3 HOT 2
- ABI break in glslang-14.2 HOT 1
- Incorrect SPIR-V can be generated when using samplers in structs with relaxed rules
- Miss glslang_shader_shader_set_entry_point HOT 1
- Location aliasing should allow mismatch in auxiliary qualifier HOT 1
- Usage of `std::filesystem::absolute` in `glslang/Include/InfoSink.h` removes support for macOS < 10.15 and iOS < 13.0 HOT 4
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 glslang.