2097c30985
Fairly minor differences, so can keep them side by side without too much effort. NV support is effectively deprecated now however. - Add OpConvertUToAccelerationStructureKHR - Ignore/Terminate ray is now a terminator in KHR, but a call in NV. - Fix some bugs with reportIntersection.
25 lines
281 B
Plaintext
25 lines
281 B
Plaintext
#version 460
|
|
#extension GL_EXT_ray_tracing : require
|
|
|
|
struct Foo
|
|
{
|
|
float a;
|
|
float b;
|
|
};
|
|
|
|
struct Foo2
|
|
{
|
|
float a;
|
|
float b;
|
|
};
|
|
|
|
layout(location = 0) rayPayloadInEXT Foo payload;
|
|
hitAttributeEXT Foo2 hit;
|
|
|
|
void main()
|
|
{
|
|
payload.a = hit.a;
|
|
payload.b = hit.b;
|
|
}
|
|
|