Git Product home page Git Product logo

Comments (8)

ready4droid avatar ready4droid commented on May 23, 2024

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.

ready4droid avatar ready4droid commented on May 23, 2024

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.

baldurk avatar baldurk commented on May 23, 2024

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.

ready4droid avatar ready4droid commented on May 23, 2024

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.

johnkslang avatar johnkslang commented on May 23, 2024

FYI, I updated the binaries at Khronos, but yes, they are generally updated less frequently than the source here at GitLab.

from glslang.

ready4droid avatar ready4droid commented on May 23, 2024

from glslang.

baldurk avatar baldurk commented on May 23, 2024

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.

ready4droid avatar ready4droid commented on May 23, 2024

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)

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.