31 lines
527 B
HLSL
31 lines
527 B
HLSL
#ifndef RAY_TRACE_H
|
|
#define RAY_TRACE_H
|
|
|
|
#ifdef SOFTWARE_RAY_TRACING
|
|
struct funnyAccelerationStructure
|
|
{
|
|
|
|
}
|
|
#else
|
|
struct funnyAccelerationStructure
|
|
{
|
|
RaytracingAccelerationStructure accel;
|
|
}
|
|
#endif
|
|
|
|
struct funnyHitObject
|
|
{
|
|
static funnyHitObject TraceRay<T>(
|
|
funnyAccelerationStructure AccelerationStructure,
|
|
uint RayFlags,
|
|
uint InstanceInclusionMask,
|
|
uint RayContributionToHitGroupIndex,
|
|
uint MultiplierForGeometryContributionToHitGroupIndex,
|
|
uint MissShaderIndex,
|
|
RayDesc Ray,
|
|
inout T Payload
|
|
);
|
|
};
|
|
|
|
#endif
|