GithubHelp home page GithubHelp logo

Comments (6)

tangent-vector avatar tangent-vector commented on July 21, 2024

Just to make sure I get it: NV_X_RIGHT and NV_VIEWPORT_MASK are HLSL semantics, yes? So I need to convert uses of shader outputs with those semantics into uses of the corresponding GLSL builtins.

Do we know if glslang supports the extension?

from slang.

nbentyNV avatar nbentyNV commented on July 21, 2024

Yes.

https://github.com/KhronosGroup/glslang/commits/master?author=chaoc

from slang.

tangent-vector-personal avatar tangent-vector-personal commented on July 21, 2024

I've looked into this a bit:

  • The main challenge is that the mask output is a vector in HLSL, but an (unsized) array in GLSL

  • A secondary challenge is that the mask is given type uint in HLSL and int in GLSL

  • A tertiary challenge is that the HLSL extension just adds a second "right eye" output, and still uses SV_Position while the GLSL extension seems to replace gl_Position with an array of outputs

These are all surmountable, but require a bit more infrastructure for dealing with mapping system-value semantics to gl_* variables that may not match exactly in type.

from slang.

tangent-vector-personal avatar tangent-vector-personal commented on July 21, 2024

Implemented in #129

from slang.

tangent-vector avatar tangent-vector commented on July 21, 2024

Reopening. My current implementing is totally bogus.

from slang.

tangent-vector avatar tangent-vector commented on July 21, 2024

Closing. There is no demand from current users for single-pass stereo.

from slang.

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.