Coder Social home page Coder Social logo

Comments (3)

tangent-vector-personal avatar tangent-vector-personal commented on May 20, 2024

Hard-coded yes. Does it lead to compilation failures?
I can compute a non-colliding binding for it.

Have you found that if needs a sampler bound?

from slang.

nbentyNV avatar nbentyNV commented on May 20, 2024

No, is successfully compiles to SPIR-V.
I don't see anything in the Vulkan spec that forbids such behavior. vkUpdateDescriptorSets accepts the descriptor type, so perhaps a bind-location is defined by the index and the type, but I couldn't find it in the spec.

The problem is that the debug layer spits an error. Perhaps it's a bug in their code.

As for the other question - I don't see it in the reflection and I don't bind anything to that slot, so I guess it's not an issue

from slang.

tangent-vector-personal avatar tangent-vector-personal commented on May 20, 2024

We now generate a unique binding for this "hack" sampler, and report it through reflection.

I'm going to close this specific issue, but it is clear that long term we need to eliminate the need for this sampler altogether, which requires work inside glslang (see glslang issue 1003)

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.