Struct gfx_device_gl::CommandBuffer[][src]

pub struct CommandBuffer {
    pub buf: Vec<Command>,
    pub data: DataBuffer,
    pub display_fb: FrameBuffer,
    // some fields omitted
}

A command buffer abstraction for OpenGL.

Manages a list of commands that will be executed when submitted to a Device. Usually it is best to use a Encoder to manage the command buffer which implements From<CommandBuffer>.

If you want to display your rendered results to a framebuffer created externally, see the display_fb field.

Fields

buf: Vec<Command>data: DataBufferdisplay_fb: FrameBuffer

The framebuffer to use for rendering to the main targets (0 by default).

Use this to set the framebuffer that will be used for the screen display targets created with create_main_targets_raw. Usually you don’t need to set this field directly unless your OS doesn’t provide a default framebuffer with name 0 and you have to render to a different framebuffer object that can be made visible on the screen (iOS/tvOS need this).

This framebuffer must exist and be configured correctly (with renderbuffer attachments, etc.) so that rendering to it can occur immediately.

Implementations

impl CommandBuffer[src]

pub fn new(fbo: FrameBuffer, workarounds: Workarounds) -> CommandBuffer[src]

Trait Implementations

impl Buffer<Resources> for CommandBuffer[src]

Auto Trait Implementations

impl RefUnwindSafe for CommandBuffer

impl Send for CommandBuffer

impl !Sync for CommandBuffer

impl Unpin for CommandBuffer

impl UnwindSafe for CommandBuffer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.