Fixed HLSL shaders (mostly ray tracing related)

Updated HLSL compile script
This commit is contained in:
Sascha Willems 2023-10-13 17:26:51 +02:00
parent cb836dd6d0
commit 66dce3c991
14 changed files with 53 additions and 28 deletions

View file

@ -1,7 +1,13 @@
// Copyright 2020 Google LLC
[shader("miss")]
void main([[vk::location(0)]] in float3 hitValue)
struct Payload
{
hitValue = float3(0.0, 0.0, 0.2);
[[vk::location(0)]] float3 hitValue;
[[vk::location(1)]] bool shadowed;
};
[shader("miss")]
void main(inout Payload payload)
{
payload.hitValue = float3(0.0, 0.0, 0.2);
}