oxidx

Crates.iooxidx
lib.rsoxidx
version
sourcesrc
created_at2024-08-06 10:27:59.59741
updated_at2024-10-25 20:48:08.284579
descriptionLow-level D3D12 wrapper for Rust.
homepage
repositoryhttps://github.com/if0ne/oxidx
max_upload_size
id1327132
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Pavel Agafonov (if0ne)

documentation

README

oxidx

This project provides low-level wrapper for D3D12 API.

Features

  • Provides a low-level API around DirectX 12. All methods correspond to DirectX 12 C++ methods, but they are done in a Rust way.
  • Based on official windows crate.
  • No library/runtime validation, only driver validation.
  • PIX methods.
  • D3D12 and DXGI prefixes have been stripped from all types.

Minimum supported Rust version

oxidx's MSRV is 1.80.

Examples

Device creation

let entry = Entry;

let factory: Factory4 = entry.create_factory(FactoryCreationFlags::empty())?;

let adapter = factory.enum_adapters(0)?;

let device: Device = entry
    .create_device(&adapter, FeatureLevel::Level11)
    .unwrap();

Feature fetching

let mut options = Options1Feature::default();
device.check_feature_support(&mut options)?;
Commit count: 298

cargo fmt