[][src]Struct gli_rs::dx::DxConverter

#[repr(transparent)]
pub struct DxConverter { /* fields omitted */ }

Translation class to convert GLI enums into DirectX enums.

Methods

impl DxConverter[src]

pub fn new() -> DxConverter[src]

pub fn translate(&self, format: Format) -> DxFormat[src]

Convert GLI formats into Direct3D formats.

pub fn find_dx9(&self, d3d_fmt: D3DFormat) -> Format[src]

Convert a Direct3D 9 format into a GLI format.

pub fn find_dx10(&self, d3d_fmt: D3DFormat, dxgi_fmt: DXGIFormat) -> Format[src]

Convert a Direct3D 10 format into a GLI format.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.