updating sbt record data example to also cover miss sbt data
This commit is contained in:
parent
e8270a7b38
commit
3a4ea2b697
11 changed files with 90 additions and 29 deletions
|
|
@ -5,8 +5,18 @@ struct Payload
|
|||
[[vk::location(0)]] float3 hitValue;
|
||||
};
|
||||
|
||||
struct SBT {
|
||||
float r;
|
||||
float g;
|
||||
float b;
|
||||
};
|
||||
[[vk::shader_record_ext]]
|
||||
ConstantBuffer<SBT> sbt;
|
||||
|
||||
[shader("miss")]
|
||||
void main(inout Payload p)
|
||||
{
|
||||
// for now, we do nothing in the miss program
|
||||
// Update the hit value to the hit record SBT data associated with this
|
||||
// miss record
|
||||
p.hitValue = float3(sbt.r, sbt.g, sbt.g);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue