Sign in
fuchsia
/
third_party
/
glslang
/
refs/heads/upstream/GL_EXT_buffer_reference_uvec2
/
.
/
Test
/
hlsl.nonint-index.frag
blob: c7a751e306aaa8f7b8fd3e44fddcb72be10066f3 [
file
] [
log
] [
blame
] [
edit
]
static
const
float
array
[
3
]
=
{
1
,
2
,
3
};
float
main
(
float
input
:
IN
)
:
SV_Target0
{
// non-integer indexes get converted to uints:
// uint(input) 3.0 2.0 1.0
return
array
[
input
]
+
array
[
2.0
]
+
array
[
true
]
+
array
[
false
];
}