25 lines
530 B
HLSL
25 lines
530 B
HLSL
#ifndef RAY_TRACE_H
|
|
#define RAY_TRACE_H
|
|
|
|
#ifdef SOFTWARE_RAY_TRACING
|
|
typedef Buffer<uint8_t> funnyAccelerationStructure
|
|
#else
|
|
typedef RaytracingAccelerationStructure funnyAccelerationStructure
|
|
#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
|