mirror of
https://github.com/KhronosGroup/glslang
synced 2024-09-19 12:19:53 +00:00
15 lines
266 B
GLSL
15 lines
266 B
GLSL
|
#version 460 core
|
||
|
|
||
|
#extension GL_EXT_spirv_intrinsics: enable
|
||
|
|
||
|
layout(constant_id = 9) const int size = 9;
|
||
|
|
||
|
#define EmptyStruct spirv_type(id = 30)
|
||
|
void func(EmptyStruct emptyStruct) {}
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
EmptyStruct dummy[size];
|
||
|
func(dummy[1]);
|
||
|
}
|