Struct bgfx_rs::static_lib::Caps
source · [−]#[repr(C)]pub struct Caps {
pub renderer_type: RendererType,
pub supported: u64,
pub vendor_id: u16,
pub device_id: u16,
pub homogeneous_depth: bool,
pub origin_bottom_left: bool,
pub num_gp_us: u8,
pub gpu: [GPU; 4],
pub limits: CapsLimits,
pub formats: [u16; 85],
}
Expand description
Renderer capabilities.
Fields
renderer_type: RendererType
Renderer backend type. See: bgfx::RendererType
supported: u64
Supported functionality. @attention See CapsFlags flags at https://bkaradzic.github.io/bgfx/bgfx.html#available-caps
vendor_id: u16
Selected GPU vendor PCI id.
device_id: u16
Selected GPU device id.
homogeneous_depth: bool
True when NDC depth is in [-1, 1] range, otherwise its [0, 1].
origin_bottom_left: bool
True when NDC origin is at bottom left.
num_gp_us: u8
Number of enumerated GPUs.
gpu: [GPU; 4]
Enumerated GPUs.
limits: CapsLimits
Renderer runtime limits.
formats: [u16; 85]
Supported texture format capabilities flags:
- CapsFormatFlags::TEXTURE_NONE - Texture format is not supported.
- [CapsFormatFlags::TEXTURE_2D] - Texture format is supported.
- [CapsFormatFlags::TEXTURE_2D_SRGB] - Texture as sRGB format is supported.
- [CapsFormatFlags::TEXTURE_2D_EMULATED] - Texture format is emulated.
- [CapsFormatFlags::TEXTURE_3D] - Texture format is supported.
- [CapsFormatFlags::TEXTURE_3D_SRGB] - Texture as sRGB format is supported.
- [CapsFormatFlags::TEXTURE_3D_EMULATED] - Texture format is emulated.
- CapsFormatFlags::TEXTURE_CUBE - Texture format is supported.
- CapsFormatFlags::TEXTURE_CUBE_SRGB - Texture as sRGB format is supported.
- CapsFormatFlags::TEXTURE_CUBE_EMULATED - Texture format is emulated.
- CapsFormatFlags::TEXTURE_VERTEX - Texture format can be used from vertex shader.
- CapsFormatFlags::TEXTURE_IMAGE_READ - Texture format can be used as image and read from.
- CapsFormatFlags::TEXTURE_IMAGE_WRITE - Texture format can be used as image and written to.
- CapsFormatFlags::TEXTURE_FRAMEBUFFER - Texture format can be used as frame buffer.
- CapsFormatFlags::TEXTURE_FRAMEBUFFER_MSAA - Texture format can be used as MSAA frame buffer.
- CapsFormatFlags::TEXTURE_MSAA - Texture can be sampled as MSAA.
- CapsFormatFlags::TEXTURE_MIP_AUTOGEN - Texture format supports auto-generated mips.
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Caps
impl Send for Caps
impl Sync for Caps
impl Unpin for Caps
impl UnwindSafe for Caps
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more