Type Alias bgfx_sys::bgfx_caps_t

source ·
pub type bgfx_caps_t = bgfx_caps_s;
Expand description

Renderer capabilities.

Aliased Type§

struct bgfx_caps_t {
    pub rendererType: u32,
    pub supported: u64,
    pub vendorId: u16,
    pub deviceId: u16,
    pub homogeneousDepth: bool,
    pub originBottomLeft: bool,
    pub numGPUs: u8,
    pub gpu: [bgfx_caps_gpu_s; 4],
    pub limits: bgfx_caps_limits_s,
    pub formats: [u16; 96],
}

Fields§

§rendererType: u32§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_s; 4]

Number of enumerated GPUs.

§limits: bgfx_caps_limits_s

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.