More ray tracing changes

This commit is contained in:
Dynamitos
2024-07-12 13:33:52 +02:00
parent a9089bd997
commit 8387ad6ffe
33 changed files with 527 additions and 292 deletions
@@ -1,7 +1,23 @@
import MaterialParameter;
struct RayTracingParams
{
RaytracingAccelerationStructure scene;
RWTexture2D<float4> image;
StructuredBuffer<uint> indexBuffer;
RWStructuredBuffer<float3> rayDirections;
RWStructuredBuffer<float3> origins;
};
layout(set=5)
ParameterBlock<RayTracingParams> pRayTracingParams;
struct CallablePayload
{
FragmentParameter params;
float3 color;
};
struct RayPayload
{
float3 color;
};