bgfx_create_frame_buffer_scaled

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

  1. bgfx_frame_buffer_handle_t bgfx_create_frame_buffer_scaled(bgfx_backbuffer_ratio_t _ratio, bgfx_texture_format_t _format, ulong _textureFlags)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    bgfx_create_frame_buffer_scaled
  2. da_bgfx_create_frame_buffer_scaled bgfx_create_frame_buffer_scaled;

Parameters

_ratio bgfx_backbuffer_ratio_t

Frame buffer size in respect to back-buffer size. See: BackbufferRatio::Enum.

_format bgfx_texture_format_t

Texture format. See: TextureFormat::Enum.

_textureFlags ulong

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.

Meta