Adding a simple example demonstrating how to use SBT record data
This commit is contained in:
parent
d02a039188
commit
9e58ad5377
14 changed files with 1078 additions and 0 deletions
12
data/shaders/hlsl/raytracingsbtdata/miss.rmiss
Normal file
12
data/shaders/hlsl/raytracingsbtdata/miss.rmiss
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright 2020 Google LLC
|
||||
|
||||
struct Payload
|
||||
{
|
||||
[[vk::location(0)]] float3 hitValue;
|
||||
};
|
||||
|
||||
[shader("miss")]
|
||||
void main(inout Payload p)
|
||||
{
|
||||
// for now, we do nothing in the miss program
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue