#windows #directx #direct3d

dx_core

Core functionality required by all the dx-rs crates. dx-rs is a DirectX wrapper for rust.

11 releases

Uses old Rust 2015

0.3.0 May 26, 2015
0.2.2 May 25, 2015
0.1.6 May 25, 2015

#188 in Windows APIs

Download history 4/week @ 2023-10-22 20/week @ 2023-10-29 2/week @ 2023-11-05 14/week @ 2023-11-12 2/week @ 2023-11-19 47/week @ 2023-11-26 12/week @ 2023-12-03 1/week @ 2023-12-10 12/week @ 2023-12-17 22/week @ 2023-12-24 13/week @ 2023-12-31 2/week @ 2024-01-07 1/week @ 2024-01-14 12/week @ 2024-01-21 34/week @ 2024-01-28 13/week @ 2024-02-04

61 downloads per month

Apache-2.0

14KB
255 lines

dx_core

Build status

DirectX bindings for the rust programming language.

dx_core is the core crate of the dx-rs project. It provides an implementation of the IUnknown trait called Unknown, provides a smart pointer type called ComRef which provides automatic management of the various COM objects returned by the DirectX APIs and will eventually provide other components that are common across the dx-rs family of crates.

Details

The goal of dx-rs is to provide a set of idiomatic bindings to DirectX for the rust programming language. The bindings will not only expose functionality of the different COM objects using traits, but it will also leverage the capabilities of rust to provide automatic lifetime management of all COM objects.

This is currently a work in progress project. The lifetime management of COM objects is complete and may be spun off into a library of its own. The next steps are to parse the DirectX headers and generate all the necessary code to make the bindings work.

The primary goal is to expose the DXGI, Direct3D 11, Direct3D 10, and Direct2D APIs to rust, with plans to expand to the other APIs unrelated to graphics.

The project is licensed under the Apache 2.0 license.

No runtime deps