mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 12:00:05 +00:00
25 lines
612 B
Plaintext
25 lines
612 B
Plaintext
|
#version 460
|
||
|
#extension GL_EXT_ray_tracing : enable
|
||
|
#extension GL_NV_shader_invocation_reorder : enable
|
||
|
|
||
|
|
||
|
hitObjectNV hObjGlob; // OK
|
||
|
uniform hitObjectNV uHitObj; // ERROR
|
||
|
|
||
|
layout(location=0) in hitObjectNV hobjIn; // ERROR
|
||
|
out hitObjectNV hobjOut; // ERROR
|
||
|
|
||
|
struct hObjWrapper{
|
||
|
hitObjectNV objField;
|
||
|
vec3 v;
|
||
|
};
|
||
|
|
||
|
void foo(hitObjectNV hObjArg) {} // OK
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
hObjWrapper wrapper; // ERROR
|
||
|
hitObjectNV localHitObj; // OK
|
||
|
foo(localHitObj); // OK
|
||
|
}
|