third_party/spirv-cross/shaders/vulkan/rchit/hit_attribute_block_in_function.nocompat.vk.rchit
raw| 1 | #version 460 |
| 2 | #extension GL_NV_ray_tracing : require |
| 3 | |
| 4 | layout(location = 0) rayPayloadInNV Foo { float a; float b; } payload; |
| 5 | hitAttributeNV Foo2 { float a; float b; } hit; |
| 6 | |
| 7 | void in_function() |
| 8 | { |
| 9 | payload.a = hit.a; |
| 10 | payload.b = hit.b; |
| 11 | } |
| 12 | |
| 13 | void main() |
| 14 | { |
| 15 | in_function(); |
| 16 | } |