Table of Contents

Class DrawCall

Namespace
ValveResourceFormat.Renderer
Assembly
Renderer.dll

Single GPU draw operation with geometry, material, and render state.

public class DrawCall

Inheritance

Inherited Members

Properties

BaseVertex

public int BaseVertex { get; set; }

Property Value

int

DrawBounds

public AABB? DrawBounds { get; set; }

Property Value

AABB?

FirstMeshlet

public int FirstMeshlet { get; set; }

Property Value

int

IndexBuffer

public IndexDrawBuffer IndexBuffer { get; set; }

Property Value

IndexDrawBuffer

IndexCount

public int IndexCount { get; set; }

Property Value

int

IndexSizeInBytes

public int IndexSizeInBytes { get; }

Property Value

int

IndexType

public DrawElementsType IndexType { get; set; }

Property Value

DrawElementsType

Material

public required RenderMaterial Material { get; set; }

Property Value

RenderMaterial

MeshBuffers

public required GPUMeshBufferCache MeshBuffers { get; init; }

Property Value

GPUMeshBufferCache

MeshId

public int MeshId { get; set; }

Property Value

int

MeshName

public string MeshName { get; set; }

Property Value

string

NumMeshlets

public int NumMeshlets { get; set; }

Property Value

int

PrimitiveType

public PrimitiveType PrimitiveType { get; set; }

Property Value

PrimitiveType

StartIndex

public nint StartIndex { get; set; }

Property Value

nint

TintColor

public Vector4 TintColor { get; set; }

Property Value

Vector4

VertexArrayObject

public int VertexArrayObject { get; set; }

Property Value

int

VertexBuffers

public required VertexDrawBuffer[] VertexBuffers { get; init; }

Property Value

VertexDrawBuffer[]

VertexCount

public uint VertexCount { get; set; }

Property Value

uint

VertexIdOffset

public int VertexIdOffset { get; set; }

Property Value

int

Methods

DeleteVertexArrayObject()

public void DeleteVertexArrayObject()

SetNewMaterial(RenderMaterial)

public void SetNewMaterial(RenderMaterial newMaterial)

Parameters

newMaterial RenderMaterial

UpdateVertexArrayObject()

public int UpdateVertexArrayObject()

Returns

int