Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
deqp-deps
/
glslang
/
a9b00ac5d58878c6e67cb50c2af93c170648d6c9
/
.
/
Test
/
spv.pushConstantAnon.vert
blob: c4438b7c86589cb1c88287fea7b3a1e085f10290 [
file
] [
log
] [
blame
]
#version 400
layout
(
push_constant
)
uniform
Material
{
int
kind
;
float
fa
[
3
];
};
out
vec4 color
;
void
main
()
{
switch
(
kind
)
{
case
1
:
color
=
vec4
(
0.2
);
break
;
case
2
:
color
=
vec4
(
0.5
);
break
;
default
:
color
=
vec4
(
fa
[
1
]);
break
;
}
}