Function bgfx_rs::static_lib::create_frame_buffer_scaled
source · [−]pub fn create_frame_buffer_scaled(
ratio: BackbufferRatio,
format: TextureFormat,
texture_flags: u64
) -> FrameBuffer
Expand description
ratio
: Frame buffer size in respect to back-buffer size. See: BackbufferRatio.format
: Texture format. See: TextureFormat.texture_flags
: Texture creation (see TextureFlags.), and sampler (see SamplerFlags) flags. Default texture sampling mode is linear, and wrap mode is repeat.
- [SamplerFlags::[U/V/W]_[MIRROR/CLAMP]] - Mirror or clamp to edge wrap mode.
- [SamplerFlags::[MIN/MAG/MIP]_[POINT/ANISOTROPIC]] - Point or anisotropic sampling.