Code Monkey home page Code Monkey logo

gfx-render's Introduction

Attention

This project is discontinued in favor of rendy.

gfx-render

This crates adds basic functionality around gfx-hal through two primary types Factory and Renderer that can be instantiated together by init function.

Factory's functionality:

  1. Allocating wrapped buffers and images using gfx-memory's SmartAllocator. Wrapper will release resource automatically on drop. Also supports manual deallocation with less overhead than automatic.
  2. Preserving deallocated buffers and images until they are not references by GPU's in-progress commands. Simply by waiting for all jobs that were recording or in-progress at the moment of deallocation to complete.
  3. Uploading data to buffers and images with method chosen based on memory properties.
  4. Report features and limits of physical device and capabilities and formats for the surface.
  5. Substitute B::Device in generic code. Factory<B> implements Device<B>.

Renderer's functionality:

  1. Creating rendering targets. Currently only surfaces from winit::Window. But headless mode is planned.
  2. Instantiating custom Render implementation for each target. Designed to be compatible with xfg crate but not limiting to.
  3. Kicking off rendering jobs and managing completion through fences.

License

This repository is licensed under either of

at your option.

Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

What else

Other crates that aim to simplify usage of gfx-hal:

  • gfx-memory - memory allocators. Used in gfx-render internally but Factory can give access to the underlying allocator.
  • gfx-chain - automatic synchronization. Requires up front dependencies declaration.
  • gfx-mesh - create meshes from vertex and index data with easy-to-use API. Dependes on gfx-render.

gfx-render's People

Contributors

eddyb avatar norman784 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gfx-render's Issues

Project status

Hi,

What's the status of gfx-render? Are there any examples? Should I try to use it now for a new project, or it's better to start with gfx-hal directly?

Thanks

Provide a way to select adapter

Currently the adapter is hardcoded to the first available one. In my case this doesn't work, since the integrated GPU shows up before the discrete. It would be helpful to provide some way of selecting a different adapter.

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.