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
impl Clone for bgfx_caps_s
source§fn clone(&self) -> bgfx_caps_s
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for bgfx_caps_s
impl Debug for bgfx_caps_s
impl Copy for bgfx_caps_s
Auto Trait Implementations§
impl Freeze for bgfx_caps_s
impl RefUnwindSafe for bgfx_caps_s
impl Send for bgfx_caps_s
impl Sync for bgfx_caps_s
impl Unpin for bgfx_caps_s
impl UnwindSafe for bgfx_caps_s
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more