Gorgon
Show / Hide Table of Contents

Class GorgonDrawCallCommon

Common values for a draw call.

Inheritance
object
GorgonDrawCallCommon
GorgonDrawCall
GorgonDrawIndexCall
Inherited Members
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 abstract class 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) method.

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

Constructors

| Edit this page View Source

GorgonDrawCallCommon()

Initializes a new instance of the GorgonDrawCallCommon class.

Declaration
protected GorgonDrawCallCommon()
See Also
GorgonGraphics

Properties

| Edit this page View Source

DomainShader

Property to return the resources for the domain shader.

Declaration
public GorgonShaderResources DomainShader { get; }
Property Value
Type Description
GorgonShaderResources
See Also
GorgonGraphics
| Edit this page View Source

GeometryShader

Property to return the resources for the geometry shader.

Declaration
public GorgonShaderResources GeometryShader { get; }
Property Value
Type Description
GorgonShaderResources
See Also
GorgonGraphics
| Edit this page View Source

HullShader

Property to return the resources for the hull shader.

Declaration
public GorgonShaderResources HullShader { get; }
Property Value
Type Description
GorgonShaderResources
See Also
GorgonGraphics
| Edit this page View Source

InputLayout

Property to return the input layout for the draw call.

Declaration
public GorgonInputLayout InputLayout { get; }
Property Value
Type Description
GorgonInputLayout
Remarks

This is derived from the VertexBufferBindings passed to the call.

See Also
GorgonGraphics
| Edit this page View Source

PipelineState

Property to return the pipeline state for this draw call.

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

PixelShader

Property to return the resources for the pixel shader.

Declaration
public GorgonShaderResources PixelShader { get; }
Property Value
Type Description
GorgonShaderResources
See Also
GorgonGraphics
| Edit this page View Source

ReadWriteViews

Property to return the list of unordered access views for the shader.

Declaration
public IGorgonReadOnlyArray<GorgonReadWriteViewBinding> ReadWriteViews { get; }
Property Value
Type Description
IGorgonReadOnlyArray<GorgonReadWriteViewBinding>
See Also
GorgonGraphics
| Edit this page View Source

StreamOutBufferBindings

Property to return the stream out buffers bound to the draw call.

Declaration
public IGorgonReadOnlyArray<GorgonStreamOutBinding> StreamOutBufferBindings { get; }
Property Value
Type Description
IGorgonReadOnlyArray<GorgonStreamOutBinding>
See Also
GorgonGraphics
| Edit this page View Source

VertexBufferBindings

Property to return the vertex buffers bound to the draw call.

Declaration
public IGorgonReadOnlyArray<GorgonVertexBufferBinding> VertexBufferBindings { get; }
Property Value
Type Description
IGorgonReadOnlyArray<GorgonVertexBufferBinding>
See Also
GorgonGraphics
| Edit this page View Source

VertexShader

Property to return the resources for the vertex shader.

Declaration
public GorgonShaderResources VertexShader { get; }
Property Value
Type Description
GorgonShaderResources
See Also
GorgonGraphics

Extension Methods

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

See Also

GorgonGraphics
  • 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