Struct bgfx_sys::bgfx_caps_s[][src]

#[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; 85], }
Expand description

Renderer capabilities.

Fields

rendererType: bgfx_renderer_type_tsupported: u64

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

vendorId: u16deviceId: 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; 85]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.