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
/
derivative
/
fwidthFine-f16vec4.frag
blob
1537ac480c3db59aefc170f8252fb21ab65e0f6a
1
// [config]
2
// expect_result: pass
3
// glsl_version: 4.50
4
// require_extensions: GL_AMD_gpu_shader_half_float
5
// [end config]
6
//
7
// Tests use of half float with fwidthFine() builtin
8
9
#version 450
10
#extension GL_AMD_gpu_shader_half_float : enable
11
12
f16vec4 test() {
13
14
float16_t p = 0.567HF;
15
16
return fwidthFine(f16vec4(p));
17
}