#[repr(C)]
pub struct ovrTextureSwapChainDesc { pub Type: ovrTextureType, pub Format: ovrTextureFormat, pub ArraySize: c_int, pub Width: c_int, pub Height: c_int, pub MipLevels: c_int, pub SampleCount: c_int, pub StaticImage: ovrBool, pub MiscFlags: c_uint, pub BindFlags: c_uint, }
Expand description

Description used to create a texture swap chain.

see ovr_CreateTextureSwapChainDX, ovr_CreateTextureSwapChainGL, ovr_CreateTextureSwapChainVk

Fields§

§Type: ovrTextureType§Format: ovrTextureFormat§ArraySize: c_int

Only supported with ovrTexture_2D. Not supported on PC at this time.

§Width: c_int§Height: c_int§MipLevels: c_int§SampleCount: c_int

Current only supported on depth textures

§StaticImage: ovrBool

Not buffered in a chain. For images that don’t change

§MiscFlags: c_uint

ovrTextureFlags

§BindFlags: c_uint

ovrTextureBindFlags. Not used for GL.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.