Added HLSL shaders for ray tracing callable sample

Minor cleanup
This commit is contained in:
Sascha Willems 2021-03-06 16:21:09 +01:00
parent 35288a6f2b
commit 5db9781d52
14 changed files with 168 additions and 63 deletions

View file

@ -0,0 +1,12 @@
// Copyright 2021 Sascha Willems
struct Payload
{
[[vk::location(0)]] float3 hitValue;
};
[shader("miss")]
void main(inout Payload p)
{
p.hitValue = float3(0.0, 0.0, 0.2);
}