Ashwin Lele | ff1783d | 2018-10-22 16:41:44 -0700 | [diff] [blame] | 1 | #version 460 |
2 | #extension GL_NV_ray_tracing : enable | ||||
3 | layout(location = 0) callableDataNV vec4 data0; | ||||
4 | layout(location = 1) callableDataInNV dataBlock { | ||||
5 | uint data1; | ||||
6 | }; | ||||
7 | void main() | ||||
8 | { | ||||
9 | uvec3 id = gl_LaunchIDNV; | ||||
10 | uvec3 size = gl_LaunchSizeNV; | ||||
11 | uint curFlags = gl_IncomingRayFlagsNV; | ||||
12 | curFlags = curFlags & gl_RayFlagsOpaqueNV; | ||||
13 | data1 = 256U; | ||||
14 | executeCallableNV(2,1); | ||||
15 | } |