Giter Site home page Giter Site logo

Comments (7)

ebkalderon avatar ebkalderon commented on July 22, 2024

Update: The current progress can be followed on the gpures branch.

from amethyst.

ebkalderon avatar ebkalderon commented on July 22, 2024

Idea: GPU resources are a separate concept from state objects, even though both are managed similarly. However, there are some marked differences in their construction and usage, and most next-gen APIs make the same distinction. Below are working definitions of both concepts.

  • Resource
    • Definition: A chunk of structured data that is either pushed to or created directly on the GPU.
    • Examples: Buffer, sampler, render target, unlinked shaders.
  • State Object
    • Definition: A collection of "switches" or "toggles" dictating how a certain piece of the graphics pipeline should process the given resources.
    • Examples: Pipeline state, blend state, depth-stencil state, rasterizer state, etc.

Remaining questions:

  1. Are descriptor sets (basically packets of resources) considered resources themselves?
  2. Should the "factory" be split into two halves, one generating resources and the other generating state objects?

from amethyst.

ebkalderon avatar ebkalderon commented on July 22, 2024

After re-evaluating the goals of the project, I have decided that implementing the gameplay framework is more urgent than completing the renderer at this time. While the renderer is a critical component, this is a game engine, and as such people should be able to make games with it first.

As such, I am shelving this redesign and marking this as "stalled" until further notice. Priority will shift towards the thread-safe ECS implementation. If anyone else wants to work on this while I focus on issue #10, they are welcome to do so.

from amethyst.

kvark avatar kvark commented on July 22, 2024

Did you consider using gfx-rs directly?
Edit: moved to #16

from amethyst.

ebkalderon avatar ebkalderon commented on July 22, 2024

I have indeed. However, I drafted the design of my renderer well before gfx-rs officially rolled out pipeline state object support. Incorporating gfx-rs into the renderer is back on the table, now that PSO support is fully baked. Hopefully, gfx-rs will develop a working Vulkan backend and then the renderer can be greatly simplified.

from amethyst.

ebkalderon avatar ebkalderon commented on July 22, 2024

If the renderer depends on GFX for rendering (issue #16) is implemented, this improvement will be invalidated.

from amethyst.

ebkalderon avatar ebkalderon commented on July 22, 2024

With the recent 0.2.0 release, the renderer now depends on gfx-rs, making this issue invalid. Closing.

from amethyst.

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.