Gorgon
Show / Hide Table of Contents

Class GorgonDrawCall

A draw call that draws only using a set of vertices.

Inheritance
object
GorgonDrawCallCommon
GorgonDrawCall
Inherited Members
GorgonDrawCallCommon.PipelineState
GorgonDrawCallCommon.VertexBufferBindings
GorgonDrawCallCommon.StreamOutBufferBindings
GorgonDrawCallCommon.InputLayout
GorgonDrawCallCommon.PixelShader
GorgonDrawCallCommon.VertexShader
GorgonDrawCallCommon.GeometryShader
GorgonDrawCallCommon.DomainShader
GorgonDrawCallCommon.HullShader
GorgonDrawCallCommon.ReadWriteViews
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonDrawCall : GorgonDrawCallCommon
Remarks

A draw call is an immutable object that contains all of the state required to render mesh information. For each mesh an application needs to render, an single draw call should be issued via the Submit(GorgonDrawCall, in GorgonColor?, int, int) methods.

State management is handled internally by Gorgon so that duplicate states are not set and thus, performance is not impacted by redundant states.

Because a draw call is immutable, it is not possible to modify a draw call after it's been created. However, a copy of a draw call can be created using the ResetTo(TDc) method on this object. Or, the builder can be modified after the creation of your draw call that needs to be updated and a new call may be built then.

Properties

| Edit this page View Source

VertexCount

Property to return the number of vertices to draw.

Declaration
public int VertexCount { get; set; }
Property Value
Type Description
int
See Also
GorgonGraphics
GorgonPipelineState
GorgonDrawCallBuilder
| Edit this page View Source

VertexStartIndex

Property to return the vertex index to start at within the vertex buffer.

Declaration
public int VertexStartIndex { get; set; }
Property Value
Type Description
int
See Also
GorgonGraphics
GorgonPipelineState
GorgonDrawCallBuilder

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)

See Also

GorgonGraphics
GorgonPipelineState
GorgonDrawCallBuilder
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author