#[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: [GPU; 4], pub limits: CapsLimits, pub formats: [u16; 85], }
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: [GPU; 4]

Enumerated GPUs.

limits: CapsLimits

Renderer runtime limits.

formats: [u16; 85]

Supported texture format capabilities flags:

Implementations

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 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.