pub struct FrameBuffer { /* private fields */ }

Implementations

  • 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.
  • 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.
  • num: Number of texture handles.
  • handles: Texture attachments.
  • destroy_texture: If true, textures will be destroyed when frame buffer is destroyed.
  • num: Number of attachments.
  • attachment: Attachment texture info. See: bgfx::Attachment.
  • destroy_texture: If true, textures will be destroyed when frame buffer is destroyed.
  • nwh: OS’ target native window handle.
  • width: Window back buffer width.
  • height: Window back buffer height.
  • format: Window back buffer color format.
  • depth_format: Window back buffer depth format.
  • handle: Frame buffer handle.
  • name: Frame buffer name.
  • len: Frame buffer name length (if length is INT32_MAX, it’s expected that _name is zero terminated string.
  • handle: Frame buffer handle.
  • attachment:
  • handle: Frame buffer handle. If handle is ]BGFX_INVALID_HANDLE] request will be made for main window back buffer.
  • file_path: Will be passed to bgfx::CallbackI::screenShot callback.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.