pub unsafe extern "C" fn bgfx_create_frame_buffer_scaled(
    _ratio: bgfx_backbuffer_ratio_t,
    _format: bgfx_texture_format_t,
    _textureFlags: u64
) -> bgfx_frame_buffer_handle_t
Expand description

Create frame buffer with size based on back-buffer ratio. Frame buffer will maintain ratio if back buffer resolution changes.

@param[in] _ratio Frame buffer size in respect to back-buffer size. See: BackbufferRatio::Enum. @param[in] _format Texture format. See: TextureFormat::Enum. @param[in] _textureFlags Texture creation (see BGFX_TEXTURE_*.), and sampler (see BGFX_SAMPLER_*) flags. Default texture sampling mode is linear, and wrap mode is repeat.

  • BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP] - Mirror or clamp to edge wrap mode.
  • BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC] - Point or anisotropic sampling.

@returns Frame buffer handle.