Debian Codegraph @

third_party/spirv-cross/reference/shaders/vulkan/rchit/hit_attribute_struct.nocompat.vk.rchit.vk

raw
1 #version 460
2 #extension GL_NV_ray_tracing : require
3
4 struct Foo
5 {
6 float a;
7 float b;
8 };
9
10 layout(location = 0) rayPayloadInNV Foo payload;
11 hitAttributeNV Foo hit;
12
13 void main()
14 {
15 payload = hit;
16 }
17