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