bgfx_caps_t

Renderer capabilities.

Members

Variables

deviceId
ushort deviceId;

Selected GPU device id.

formats
ushort[bgfx_texture_format_t.BGFX_TEXTURE_FORMAT_COUNT] formats;

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.

gpu
bgfx_caps_gpu_t[4] gpu;

Enumerated GPUs.

homogeneousDepth
bool homogeneousDepth;

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

limits
bgfx_caps_limits_t limits;

Renderer runtime limits.

numGPUs
byte numGPUs;

Number of enumerated GPUs.

originBottomLeft
bool originBottomLeft;

True when NDC origin is at bottom left.

rendererType
bgfx_renderer_type_t rendererType;

Renderer backend type. See: bgfx::RendererType

supported
ulong supported;

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

vendorId
ushort vendorId;

Selected GPU vendor PCI id.

Meta