Files
UnrealEngineUWP/Engine/Shaders/Private/RayTracing/RayTracingDebugUtils.ush
xujie chen 20d86bdd33 Debug Visualization: Anyhitshader count, count the number of triangles hit per ray, and generate a heatmap for them
#rb tiago.costa, Tiantian.Xie, aleksander.netzel

[CL 27419469 by xujie chen in ue5-main branch]
2023-08-28 14:49:34 -04:00

23 lines
480 B
Plaintext

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