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