More ray tracing changes

This commit is contained in:
Dynamitos committed 2024-07-12 13:33:52 +02:00
1 parent a9089bd997
commit 8387ad6ffe
33 files changed
+527 -292

No files matched your search

@@ -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;
};