Table of Contents

Class DrawCallHash

Namespace
Root
Assembly
Game.Core.Rendering.dll
public static class DrawCallHash
Inheritance
object
DrawCallHash

Fields

BitsForMaterial

public const int BitsForMaterial = 10

Field Value

int

BitsForMesh

public const int BitsForMesh = 32

Field Value

int

BitsForPropertyBlockHash

public const int BitsForPropertyBlockHash = 20

Field Value

int

CastShadowsFlag

public const ulong CastShadowsFlag = 9223372036854775808

Field Value

ulong

MaxMaterialId

public const uint MaxMaterialId = 1023

Field Value

uint

MaxMeshId

public const uint MaxMeshId = 4294967295

Field Value

uint

MaxPropertyBlockId

public const uint MaxPropertyBlockId = 1048575

Field Value

uint

ReceiveShadowsFlag

public const ulong ReceiveShadowsFlag = 4611686018427387904

Field Value

ulong

Methods

GenerateHash(MeshInstanceId, MaterialInstanceId, ShadowToken, ShadowToken, PropertyBlockHash)

public static ulong GenerateHash(MeshInstanceId mesh, MaterialInstanceId material, ShadowToken castShadows, ShadowToken receiveShadows, PropertyBlockHash propertyBlockHash = default)

Parameters

mesh MeshInstanceId
material MaterialInstanceId
castShadows ShadowToken
receiveShadows ShadowToken
propertyBlockHash PropertyBlockHash

Returns

ulong