25 lines
278 B
Plaintext
25 lines
278 B
Plaintext
#version 460
|
|
#extension GL_NV_ray_tracing : require
|
|
|
|
struct Foo
|
|
{
|
|
float a;
|
|
float b;
|
|
};
|
|
|
|
struct Foo2
|
|
{
|
|
float a;
|
|
float b;
|
|
};
|
|
|
|
layout(location = 0) rayPayloadInNV Foo payload;
|
|
hitAttributeNV Foo2 hit;
|
|
|
|
void main()
|
|
{
|
|
payload.a = hit.a;
|
|
payload.b = hit.b;
|
|
}
|
|
|