Function bgfx_rs::static_lib::create_frame_buffer
source · [−]pub fn create_frame_buffer(
width: u16,
height: u16,
format: TextureFormat,
texture_flags: u64
) -> FrameBuffer
Expand description
width
: Texture width.height
: Texture height.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.