Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.
/ redirect Public archive

DirectX 12 wrapper for Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

DaseinPhaos/redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redirect

Crates.io

Documentation

redirect aims to be a lightweight and type-safe wrapper around the DirectX12 API for the Rust Programming Language.

This is a Windows 10 only crate. Using under other toolchains would be a no-op.

Why Bother

  • folks want to work with D3D12
  • the Win32 API is ugly to use directly, we want a rusty solution
  • wrapping can provide more type safety guarantees

Current Status

Most of the core API has been ported. Main leftovers include TiledResource, Marker and some other related stuff. redirect can now be used to draw a triangle! Checkout ./examples/triangle.rs.

WIP

  • figure out a way to deal with resources more safely. Status: v0.3.0 introduces some type safe buffer/texture types above resource::RawTexture. Future Work: add more type safe textures?

What's Next

  • reduce vertex definition boilerplate.
  • figure out a simple way to do more compile time checking around root signature and pso.
  • reconsider safety guarantees.
  • introduce a more solid example that covers more API use case.

License

This project is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Contribution

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.

About

DirectX 12 wrapper for Rust

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages