oxidx 0.1.1

Mid-level D3D12 bindings/wrapper for Rust.
Documentation

oxidx

This project provides mid-level bindings/wrapper for D3D12 API.

Features

  • Provides a mid-levelish 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.

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 feature = device.check_feature_support::<Options>(())?;