Click or drag to resize

Encoder Structure

An interface for encoding a list of commands from multiple threads. Dispose of the encoder to finish submitting calls from the current thread.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public struct Encoder : IDisposable, IEquatable<Encoder>

The Encoder type exposes the following members.

Methods
  NameDescription
Public methodDiscard
Discards all previously set state for the draw call.
Public methodDispatch(UInt16, Program, IndirectBuffer, Int32, Int32, DiscardFlags)
Dispatches an indirect compute job.
Public methodDispatch(UInt16, Program, Int32, Int32, Int32, DiscardFlags)
Dispatches a compute job.
Public methodDispose
Finishes submission of commands from this encoder.
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Encoder)
Determines whether the specified object is equal to this instance.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetComputeBuffer(Byte, DynamicIndexBuffer, ComputeBufferAccess)
Sets a dynamic index buffer as a compute resource.
Public methodSetComputeBuffer(Byte, DynamicVertexBuffer, ComputeBufferAccess)
Sets a dynamic vertex buffer as a compute resource.
Public methodSetComputeBuffer(Byte, IndexBuffer, ComputeBufferAccess)
Sets an index buffer as a compute resource.
Public methodSetComputeBuffer(Byte, IndirectBuffer, ComputeBufferAccess)
Sets an indirect buffer as a compute resource.
Public methodSetComputeBuffer(Byte, VertexBuffer, ComputeBufferAccess)
Sets a verterx buffer as a compute resource.
Public methodSetComputeImage
Sets a texture mip as a compute image.
Public methodSetDebugMarker
Sets a marker that can be used for debugging purposes.
Public methodSetIndexBuffer(DynamicIndexBuffer)
Sets the index buffer to use for drawing primitives.
Public methodSetIndexBuffer(IndexBuffer)
Sets the index buffer to use for drawing primitives.
Public methodSetIndexBuffer(TransientIndexBuffer)
Sets the index buffer to use for drawing primitives.
Public methodSetIndexBuffer(DynamicIndexBuffer, Int32, Int32)
Sets the index buffer to use for drawing primitives.
Public methodSetIndexBuffer(IndexBuffer, Int32, Int32)
Sets the index buffer to use for drawing primitives.
Public methodSetIndexBuffer(TransientIndexBuffer, Int32, Int32)
Sets the index buffer to use for drawing primitives.
Public methodSetInstanceDataBuffer(DynamicVertexBuffer, Int32, Int32)
Sets instance data to use for drawing primitives.
Public methodSetInstanceDataBuffer(InstanceDataBuffer, Int32, Int32)
Sets instance data to use for drawing primitives.
Public methodSetInstanceDataBuffer(VertexBuffer, Int32, Int32)
Sets instance data to use for drawing primitives.
Public methodSetRenderState(RenderState)
Set rendering states used to draw primitives.
Public methodSetRenderState(RenderState, Int32)
Set rendering states used to draw primitives.
Public methodSetScissor(Int32)
Sets a scissor rectangle from the cache.
Public methodSetScissor(Int32, Int32, Int32, Int32)
Sets the scissor rectangle to use for clipping primitives.
Public methodSetStencil(StencilFlags)
Sets stencil test state.
Public methodSetStencil(StencilFlags, StencilFlags)
Sets stencil test state.
Public methodSetTexture(Byte, Uniform, Texture)
Sets a texture to use for drawing primitives.
Public methodSetTexture(Byte, Uniform, Texture, TextureFlags)
Sets a texture to use for drawing primitives.
Public methodSetTransform(Int32, Int32)
Sets a model transform from the cache.
Public methodSetTransform(Single*, Int32)
Sets the model transform to use for drawing primitives.
Public methodSetUniform(Uniform, IntPtr, Int32)
Sets the value of a uniform parameter.
Public methodSetUniform(Uniform, Single, Int32)
Sets the value of a uniform parameter.
Public methodSetUniform(Uniform, Void*, Int32)
Sets the value of a uniform parameter.
Public methodSetVertexBuffer(Int32, DynamicVertexBuffer)
Sets the vertex buffer to use for drawing primitives.
Public methodSetVertexBuffer(Int32, TransientVertexBuffer)
Sets the vertex buffer to use for drawing primitives.
Public methodSetVertexBuffer(Int32, VertexBuffer)
Sets the vertex buffer to use for drawing primitives.
Public methodSetVertexBuffer(Int32, DynamicVertexBuffer, Int32, Int32)
Sets the vertex buffer to use for drawing primitives.
Public methodSetVertexBuffer(Int32, TransientVertexBuffer, Int32, Int32)
Sets the vertex buffer to use for drawing primitives.
Public methodSetVertexBuffer(Int32, VertexBuffer, Int32, Int32)
Sets the vertex buffer to use for drawing primitives.
Public methodSetVertexCount
Sets the number of auto-generated vertices for use with gl_VertexID.
Public methodSubmit(UInt16, Program, Int32, DiscardFlags)
Submits the current batch of primitives for rendering.
Public methodSubmit(UInt16, Program, OcclusionQuery, Int32, DiscardFlags)
Submits the current batch of primitives for rendering.
Public methodSubmit(UInt16, Program, IndirectBuffer, Int32, Int32, Int32, DiscardFlags)
Submits an indirect batch of drawing commands to be used for rendering.
Public methodToString
Returns a String that represents this instance.
(Overrides ValueTypeToString.)
Public methodTouch
Marks a view as "touched", ensuring that its background is cleared even if nothing is rendered.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the equality operator.
Public operatorStatic memberInequality
Implements the inequality operator.
Top
Extension Methods
See Also