| Encoder Structure | 
Namespace: Internal.SharpBgfx
 Syntax
Syntaxpublic struct Encoder : IDisposable, IEquatable<Encoder>
The Encoder type exposes the following members.
 Methods
Methods| Name | Description | |
|---|---|---|
|  | Discard | 
            Discards all previously set state for the draw call.
             | 
|  | Dispatch(UInt16, Program, IndirectBuffer, Int32, Int32, DiscardFlags) | 
            Dispatches an indirect compute job.
             | 
|  | Dispatch(UInt16, Program, Int32, Int32, Int32, DiscardFlags) | 
            Dispatches a compute job.
             | 
|  | Dispose | 
            Finishes submission of commands from this encoder.
             | 
|  | Equals(Object) | 
            Determines whether the specified Object is equal to this instance.
            (Overrides ValueTypeEquals(Object).) | 
|  | Equals(Encoder) | 
            Determines whether the specified object is equal to this instance.
             | 
|  | GetHashCode | 
            Returns a hash code for this instance.
            (Overrides ValueTypeGetHashCode.) | 
|  | GetType | Gets the Type of the current instance.(Inherited from Object.) | 
|  | SetComputeBuffer(Byte, DynamicIndexBuffer, ComputeBufferAccess) | 
            Sets a dynamic index buffer as a compute resource.
             | 
|  | SetComputeBuffer(Byte, DynamicVertexBuffer, ComputeBufferAccess) | 
            Sets a dynamic vertex buffer as a compute resource.
             | 
|  | SetComputeBuffer(Byte, IndexBuffer, ComputeBufferAccess) | 
            Sets an index buffer as a compute resource.
             | 
|  | SetComputeBuffer(Byte, IndirectBuffer, ComputeBufferAccess) | 
            Sets an indirect buffer as a compute resource.
             | 
|  | SetComputeBuffer(Byte, VertexBuffer, ComputeBufferAccess) | 
            Sets a verterx buffer as a compute resource.
             | 
|  | SetComputeImage | 
            Sets a texture mip as a compute image.
             | 
|  | SetDebugMarker | 
            Sets a marker that can be used for debugging purposes.
             | 
|  | SetIndexBuffer(DynamicIndexBuffer) | 
            Sets the index buffer to use for drawing primitives.
             | 
|  | SetIndexBuffer(IndexBuffer) | 
            Sets the index buffer to use for drawing primitives.
             | 
|  | SetIndexBuffer(TransientIndexBuffer) | 
            Sets the index buffer to use for drawing primitives.
             | 
|  | SetIndexBuffer(DynamicIndexBuffer, Int32, Int32) | 
            Sets the index buffer to use for drawing primitives.
             | 
|  | SetIndexBuffer(IndexBuffer, Int32, Int32) | 
            Sets the index buffer to use for drawing primitives.
             | 
|  | SetIndexBuffer(TransientIndexBuffer, Int32, Int32) | 
            Sets the index buffer to use for drawing primitives.
             | 
|  | SetInstanceDataBuffer(DynamicVertexBuffer, Int32, Int32) | 
            Sets instance data to use for drawing primitives.
             | 
|  | SetInstanceDataBuffer(InstanceDataBuffer, Int32, Int32) | 
            Sets instance data to use for drawing primitives.
             | 
|  | SetInstanceDataBuffer(VertexBuffer, Int32, Int32) | 
            Sets instance data to use for drawing primitives.
             | 
|  | SetRenderState(RenderState) | 
            Set rendering states used to draw primitives.
             | 
|  | SetRenderState(RenderState, Int32) | 
            Set rendering states used to draw primitives.
             | 
|  | SetScissor(Int32) | 
            Sets a scissor rectangle from the cache.
             | 
|  | SetScissor(Int32, Int32, Int32, Int32) | 
            Sets the scissor rectangle to use for clipping primitives.
             | 
|  | SetStencil(StencilFlags) | 
            Sets stencil test state.
             | 
|  | SetStencil(StencilFlags, StencilFlags) | 
            Sets stencil test state.
             | 
|  | SetTexture(Byte, Uniform, Texture) | 
            Sets a texture to use for drawing primitives.
             | 
|  | SetTexture(Byte, Uniform, Texture, TextureFlags) | 
            Sets a texture to use for drawing primitives.
             | 
|  | SetTransform(Int32, Int32) | 
            Sets a model transform from the cache.
             | 
|  | SetTransform(Single*, Int32) | 
            Sets the model transform to use for drawing primitives.
             | 
|  | SetUniform(Uniform, IntPtr, Int32) | 
            Sets the value of a uniform parameter.
             | 
|  | SetUniform(Uniform, Single, Int32) | 
            Sets the value of a uniform parameter.
             | 
|  | SetUniform(Uniform, Void*, Int32) | 
            Sets the value of a uniform parameter.
             | 
|  | SetVertexBuffer(Int32, DynamicVertexBuffer) | 
            Sets the vertex buffer to use for drawing primitives.
             | 
|  | SetVertexBuffer(Int32, TransientVertexBuffer) | 
            Sets the vertex buffer to use for drawing primitives.
             | 
|  | SetVertexBuffer(Int32, VertexBuffer) | 
            Sets the vertex buffer to use for drawing primitives.
             | 
|  | SetVertexBuffer(Int32, DynamicVertexBuffer, Int32, Int32) | 
            Sets the vertex buffer to use for drawing primitives.
             | 
|  | SetVertexBuffer(Int32, TransientVertexBuffer, Int32, Int32) | 
            Sets the vertex buffer to use for drawing primitives.
             | 
|  | SetVertexBuffer(Int32, VertexBuffer, Int32, Int32) | 
            Sets the vertex buffer to use for drawing primitives.
             | 
|  | SetVertexCount | 
            Sets the number of auto-generated vertices for use with gl_VertexID.
             | 
|  | Submit(UInt16, Program, Int32, DiscardFlags) | 
            Submits the current batch of primitives for rendering.
             | 
|  | Submit(UInt16, Program, OcclusionQuery, Int32, DiscardFlags) | 
            Submits the current batch of primitives for rendering.
             | 
|  | Submit(UInt16, Program, IndirectBuffer, Int32, Int32, Int32, DiscardFlags) | 
            Submits an indirect batch of drawing commands to be used for rendering.
             | 
|  | ToString | 
            Returns a String that represents this instance.
            (Overrides ValueTypeToString.) | 
|  | Touch | 
            Marks a view as "touched", ensuring that its background is cleared even if nothing is rendered.
             | 
 Operators
Operators| Name | Description | |
|---|---|---|
|   | Equality | 
            Implements the equality operator.
             | 
|   | Inequality | 
            Implements the inequality operator.
             | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | MethodInvoke | 
            Calls the object method by name.
            (Defined by ObjectEx.) | 
|  | PropertyGet(String, Object, Boolean) | Overloaded. 
            Gets the value of the object property by name.
            (Defined by ObjectEx.) | 
|  | PropertyGetT(String, Object, Boolean) | Overloaded. 
            Gets the value of the object property by name.
            (Defined by ObjectEx.) | 
|  | PropertySet | 
            Sets the value of the object property by name.
            (Defined by ObjectEx.) | 
 See Also
See Also