Files
UnrealEngine/Engine/Shaders/Private/Nanite/NaniteHierarchyTraversalCommon.ush
2025-05-18 13:04:45 +08:00

25 lines
577 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "/Engine/Shared/NaniteDefinitions.h"
struct FQueuePassState
{
uint ClusterBatchReadOffset; // Offset in batches
uint ClusterWriteOffset; // Offset in individual clusters
uint NodeReadOffset;
uint NodeWriteOffset;
int NodeCount; // Can temporarily be conservatively higher
};
struct FQueueState
{
uint TotalClusters;
FQueuePassState PassState[2];
};
uint MaxCandidateClusters;
uint GetMaxClusterBatches() { return MaxCandidateClusters / NANITE_PERSISTENT_CLUSTER_CULLING_GROUP_SIZE; }