31 lines
716 B
HLSL
31 lines
716 B
HLSL
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "../Common.ush"
|
|
|
|
|
|
//------------------------------------------------------- COMPILER CONFIG
|
|
|
|
// Generate vector truncation warnings to errors.
|
|
#pragma warning(error: 3206)
|
|
|
|
|
|
//------------------------------------------------------- STRUCTURES
|
|
|
|
struct FBloomKernelInfo
|
|
{
|
|
// Total energy at the center of the kernel.
|
|
float4 CenterEnergy;
|
|
|
|
// Total energy of the bloom.
|
|
float4 ScatterDispersionEnergy;
|
|
|
|
// Highest energy per pixel that should clamp with to remove the kernel center
|
|
float4 MaxScatterDispersionEnergy;
|
|
|
|
// Pixel coordinate of the center of the kernel
|
|
uint2 CenterPixelCoord;
|
|
|
|
// Some padding to make vulkan happy
|
|
uint2 _Padding;
|
|
};
|