a bit of stuff, time to add spirv-link into this project
This commit is contained in:
30
funnyassets/shaders/ray_trace.hlsl
Normal file
30
funnyassets/shaders/ray_trace.hlsl
Normal file
@@ -0,0 +1,30 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user