Giter VIP home page Giter VIP logo

Comments (2)

jeremyg-lunarg avatar jeremyg-lunarg commented on July 4, 2024

I don't think it would be possible to implement this reliably. Timeline semaphores are limited to increasing values to avoid race conditions between the signaller and the waiter. For example, if arbitrary values were allowed, you could signal 2, 4, 6, 5. Something waiting for 6 might wait forever because it might not 'see' the signal of 6 before 5 is signaled. If the value can only increase then waiting for >= 6 does not have a race condition. Your best bet is to restructure your code to fit with the limitations of timeline semaphores as they are defined in the spec. You may need to use more than one semaphore to achieve what you need.

from vulkan-extensionlayer.

Inori avatar Inori commented on July 4, 2024

Thanks for your reply.
Some console platform implement this simply by a GPU label.
It is just a 4 or 8 bytes memory which will can be write and wait at proper pipeline stages end.
I just guess desktop GPUs should have such simple functionality.
But things seems not as easy as I think.

from vulkan-extensionlayer.

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.