repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
GL_AMD_gpu_shader_half_float: add positive compiler tests
[piglit.git]
/
tests
/
spec
/
amd_gpu_shader_half_float
/
compiler
/
builtin-functions
/
common
/
mod.vert
blob
77f5c80e6c7383ac98cdbe9c20a5935764aafaa0
1
// [config]
2
// expect_result: pass
3
// glsl_version: 4.00
4
// require_extensions: GL_AMD_gpu_shader_half_float
5
// [end config]
6
//
7
// Tests use of half float with mod() builtin
8
9
#version 400
10
#extension GL_AMD_gpu_shader_half_float : enable
11
12
float16_t test() {
13
14
float16_t x = 0.999HF;
15
float16_t y = 0.567HF;
16
17
return mod(x, y);
18
}