Files
UnrealEngine/Engine/Plugins/FX/Niagara/Shaders/Shared/NiagaraStatelessDefinitions.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

20 lines
569 B
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#ifndef GPU_SIMULATION
#define uint uint32
#define uint4 FUintVector4
#endif
// Core random functionality
struct FNiagaraStatelessDefinitions
{
static uint4 MakeRandomSeed(uint EmitterSeed, uint UniqueID, uint ModuleOffset, uint CallOffset) { return uint4(7123u + CallOffset, EmitterSeed, 3581u + UniqueID, 6405u + ModuleOffset); }
static uint4 OffsetRandomSeedForCall(uint4 Seed, uint CallOffset) { Seed[0] += CallOffset; return Seed; }
};
#ifndef GPU_SIMULATION
#undef uint
#undef uint4
#endif