mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
22 lines
256 B
GLSL
22 lines
256 B
GLSL
|
#version 460
|
||
|
|
||
|
#extension GL_NV_mesh_shader: require
|
||
|
|
||
|
layout(location=0)
|
||
|
in B {
|
||
|
perprimitiveNV float f;
|
||
|
};
|
||
|
|
||
|
layout(location=4)
|
||
|
in C {
|
||
|
flat centroid float h;
|
||
|
};
|
||
|
|
||
|
layout(location=8)
|
||
|
out float g;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
g = f + h;
|
||
|
}
|