Files
UnrealEngine/Engine/Shaders/Private/PostProcessEyeAdaptationUtils.usf
2025-05-18 13:04:45 +08:00

17 lines
384 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Common.ush"
StructuredBuffer<float4> EyeAdaptationBuffer;
#if COMPUTESHADER
RWTexture2D<float4> RWEyeAdaptationTexture;
[numthreads(1, 1, 1)]
void CopyEyeAdaptationToTextureCS(uint2 DispatchThreadId : SV_DispatchThreadID)
{
RWEyeAdaptationTexture[DispatchThreadId] = EyeAdaptationBuffer[0];
}
#endif // COMPUTESHADER