[−][src]Struct gli_rs::dx::DxConverter
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
impl RefUnwindSafe for DxConverter
impl Send for DxConverter
impl Sync for DxConverter
impl Unpin for DxConverter
impl UnwindSafe for DxConverter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,