#direct-x #bindings #api

sys directx-sys

Rust FFI bindings for the DirectX API

8 releases

Uses old Rust 2015

0.1.0 Feb 5, 2017
0.0.7 Aug 31, 2015
0.0.6 Jul 16, 2015
0.0.4 Jun 21, 2015

#11 in #direct-x

25 downloads per month
Used in directx

MIT license

360KB
10K SLoC

directx-sys Build Status

Rust FFI bindings for the DirectX API.

Documentation


lib.rs:

directx-sys 0.1.0

Rust FFI bindings for the DirectX API.

Components

  • DXGI - Complete (needs testing)
  • D3D11 - Complete (needs testing)
  • D3D12 - not yet implemented.
  • D3DCompiler - not yet implemented.
  • Direct2D - 1.0 API mostly complete but untested. 1.1/1.2 not yet implemented.
  • DirectWrite - 1.0 API complete but untested. 1.1/1.2 not yet implemented.
  • XAudio2 - not yet implemented.
  • XInput - not yet implemented.

Unsupported components

The following DirectX components are considered deprecated so I will not be writing bindings for them:

  • D3D9/10 - use D3D11 instead.
  • DirectDraw - use Direct2D instead
  • DirectInput - Use XInput instead
  • DirectSound - use XAudio2 instead.

DXGI disabled, enable dxgi feature to use. D3D11 disabled, enable d3d11 feature to use. Direct2D disabled, enable d2d feature to use. DirectWrite disabled, enable dwrite feature to use.

Dependencies

~230KB