[go: up one dir, main page]

Enum gfx::device::command::Command [] [src]

pub enum Command<R: Resources> {
    BindProgram(R::Program),
    BindArrayBuffer(R::ArrayBuffer),
    BindAttribute(AttributeSlot, R::Buffer, Format),
    BindIndex(R::Buffer),
    BindFrameBuffer(Access, R::FrameBuffer, Gamma),
    UnbindTarget(AccessTarget),
    BindTargetSurface(AccessTarget, R::Surface),
    BindTargetTexture(AccessTarget, R::Texture, LevelOption<Layer>),
    BindUniformBlock(R::Program, UniformBufferSlotUniformBlockIndex, R::Buffer),
    BindUniform(LocationUniformValue),
    BindTexture(TextureSlotKind, R::Texture, Option<(R::Sampler, SamplerInfo)>),
    SetDrawColorBuffers(usize),
    SetPrimitiveState(Primitive),
    SetViewport(Rect),
    SetMultiSampleState(Option<MultiSample>),
    SetScissor(Option<Rect>),
    SetDepthStencilState(Option<Depth>, Option<Stencil>, CullFace),
    SetBlendState(Option<Blend>),
    SetColorMask(ColorMask),
    UpdateBuffer(R::Buffer, DataPointerusize),
    UpdateTexture(Kind, R::Texture, ImageInfoDataPointer),
    Clear(ClearDataMask),
    Draw(PrimitiveTypeVertexCountVertexCountInstanceOption),
    DrawIndexed(PrimitiveTypeIndexTypeVertexCountVertexCountVertexCountInstanceOption),
    Blit(RectRectMirrorMask),
}

Serialized device command.

Variants

BindProgram(R::Program)BindArrayBuffer(R::ArrayBuffer)BindAttribute(AttributeSlot, R::Buffer, Format)BindIndex(R::Buffer)BindFrameBuffer(Access, R::FrameBuffer, Gamma)UnbindTarget(AccessTarget)BindTargetSurface(AccessTarget, R::Surface)BindTargetTexture(AccessTarget, R::Texture, LevelOption<Layer>)BindUniformBlock(R::Program, UniformBufferSlotUniformBlockIndex, R::Buffer)BindUniform(LocationUniformValue)BindTexture(TextureSlotKind, R::Texture, Option<(R::Sampler, SamplerInfo)>)SetDrawColorBuffers(usize)SetPrimitiveState(Primitive)SetViewport(Rect)SetMultiSampleState(Option<MultiSample>)SetScissor(Option<Rect>)SetDepthStencilState(Option<Depth>, Option<Stencil>, CullFace)SetBlendState(Option<Blend>)SetColorMask(ColorMask)UpdateBuffer(R::Buffer, DataPointerusize)UpdateTexture(Kind, R::Texture, ImageInfoDataPointer)Clear(ClearDataMask)Draw(PrimitiveTypeVertexCountVertexCountInstanceOption)DrawIndexed(PrimitiveTypeIndexTypeVertexCountVertexCountVertexCountInstanceOption)Blit(RectRectMirrorMask)

Trait Implementations

impl<R: Debug + Resources> Debug for Command<R> where R::Program: Debug, R::ArrayBuffer: Debug, R::Buffer: Debug, R::FrameBuffer: Debug, R::Surface: Debug, R::Texture: Debug, R::Sampler: Debug
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<R: Clone + Resources> Clone for Command<R> where R::Program: Clone, R::ArrayBuffer: Clone, R::Buffer: Clone, R::FrameBuffer: Clone, R::Surface: Clone, R::Texture: Clone, R::Sampler: Clone
[src]

fn clone(&self) -> Command<R>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<R: Copy + Resources> Copy for Command<R> where R::Program: Copy, R::ArrayBuffer: Copy, R::Buffer: Copy, R::FrameBuffer: Copy, R::Surface: Copy, R::Texture: Copy, R::Sampler: Copy
[src]