Struct bgfx_rs::static_lib::Caps

source ·
#[repr(C)]
pub struct Caps { pub renderer_type: RendererType, pub supported: u64, pub vendor_id: u16, pub device_id: u16, pub homogeneous_depth: bool, pub origin_bottom_left: bool, pub num_gp_us: u8, pub gpu: [CapsGPU; 4], pub limits: CapsLimits, pub formats: [u16; 88], }
Expand description

Renderer capabilities.

Fields§

§renderer_type: RendererType

Renderer backend type. See: bgfx::RendererType

§supported: u64

Supported functionality. @attention See CapsFlags flags at https://bkaradzic.github.io/bgfx/bgfx.html#available-caps

§vendor_id: u16

Selected GPU vendor PCI id.

§device_id: u16

Selected GPU device id.

§homogeneous_depth: bool

True when NDC depth is in [-1, 1] range, otherwise its [0, 1].

§origin_bottom_left: bool

True when NDC origin is at bottom left.

§num_gp_us: u8

Number of enumerated GPUs.

§gpu: [CapsGPU; 4]

Enumerated GPUs.

§limits: CapsLimits

Renderer runtime limits.

§formats: [u16; 88]

Supported texture format capabilities flags:

Implementations§

source§

impl Caps

source

pub fn new() -> Caps

Auto Trait Implementations§

§

impl Freeze for Caps

§

impl RefUnwindSafe for Caps

§

impl Send for Caps

§

impl Sync for Caps

§

impl Unpin for Caps

§

impl UnwindSafe for Caps

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.