Struct bgfx_sys::bgfx_caps_s

source ·
#[repr(C)]
pub struct bgfx_caps_s { pub rendererType: bgfx_renderer_type_t, pub supported: u64, pub vendorId: u16, pub deviceId: u16, pub homogeneousDepth: bool, pub originBottomLeft: bool, pub numGPUs: u8, pub gpu: [bgfx_caps_gpu_t; 4], pub limits: bgfx_caps_limits_t, pub formats: [u16; 96], }
Expand description

Renderer capabilities.

Fields§

§rendererType: bgfx_renderer_type_t§supported: u64

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

§vendorId: u16§deviceId: u16

Selected GPU vendor PCI id.

§homogeneousDepth: bool

Selected GPU device id.

§originBottomLeft: bool

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

§numGPUs: u8

True when NDC origin is at bottom left.

§gpu: [bgfx_caps_gpu_t; 4]

Number of enumerated GPUs.

§limits: bgfx_caps_limits_t

Enumerated GPUs.

§formats: [u16; 96]

Supported texture format capabilities flags:

  • BGFX_CAPS_FORMAT_TEXTURE_NONE - Texture format is not supported.
  • BGFX_CAPS_FORMAT_TEXTURE_2D - Texture format is supported.
  • BGFX_CAPS_FORMAT_TEXTURE_2D_SRGB - Texture as sRGB format is supported.
  • BGFX_CAPS_FORMAT_TEXTURE_2D_EMULATED - Texture format is emulated.
  • BGFX_CAPS_FORMAT_TEXTURE_3D - Texture format is supported.
  • BGFX_CAPS_FORMAT_TEXTURE_3D_SRGB - Texture as sRGB format is supported.
  • BGFX_CAPS_FORMAT_TEXTURE_3D_EMULATED - Texture format is emulated.
  • BGFX_CAPS_FORMAT_TEXTURE_CUBE - Texture format is supported.
  • BGFX_CAPS_FORMAT_TEXTURE_CUBE_SRGB - Texture as sRGB format is supported.
  • BGFX_CAPS_FORMAT_TEXTURE_CUBE_EMULATED - Texture format is emulated.
  • BGFX_CAPS_FORMAT_TEXTURE_VERTEX - Texture format can be used from vertex shader.
  • BGFX_CAPS_FORMAT_TEXTURE_IMAGE_READ - Texture format can be used as image and read from.
  • BGFX_CAPS_FORMAT_TEXTURE_IMAGE_WRITE - Texture format can be used as image and written to.
  • BGFX_CAPS_FORMAT_TEXTURE_FRAMEBUFFER - Texture format can be used as frame buffer.
  • BGFX_CAPS_FORMAT_TEXTURE_FRAMEBUFFER_MSAA - Texture format can be used as MSAA frame buffer.
  • BGFX_CAPS_FORMAT_TEXTURE_MSAA - Texture can be sampled as MSAA.
  • BGFX_CAPS_FORMAT_TEXTURE_MIP_AUTOGEN - Texture format supports auto-generated mips.

Trait Implementations§

source§

impl Clone for bgfx_caps_s

source§

fn clone(&self) -> bgfx_caps_s

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for bgfx_caps_s

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for bgfx_caps_s

Auto Trait Implementations§

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.