23 lines
478 B
HLSL
23 lines
478 B
HLSL
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "/Engine/Shared/RayTracingPayloadType.h"
|
|
#include "RayTracingCommon.ush"
|
|
|
|
struct FRayTracingDebugPayload : FMinimalPayload
|
|
{
|
|
uint InstanceHash;
|
|
uint TriangleIndex;
|
|
uint InstanceIndex;
|
|
uint GeometryIndex;
|
|
|
|
float3 WorldNormal;
|
|
|
|
uint TriangleHitCountPerRay;
|
|
uint ScenePrimitiveIndex;
|
|
};
|
|
#if IS_PAYLOAD_ENABLED(RT_PAYLOAD_TYPE_RAYTRACING_DEBUG)
|
|
CHECK_RT_PAYLOAD_SIZE(FRayTracingDebugPayload)
|
|
#endif
|