File: spv.longVectorBuiltins.frag

package info (click to toggle)
glslang 16.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,712 kB
  • sloc: cpp: 92,305; yacc: 4,320; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (30 lines) | stat: -rw-r--r-- 683 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#version 450 core
#extension GL_KHR_memory_scope_semantics : enable
#extension GL_EXT_long_vector : enable
#extension GL_EXT_shader_explicit_arithmetic_types : enable
#extension GL_EXT_buffer_reference : enable

void main()
{
    vector<float, 5> vf;
    float f;
    vector<uint32_t, 5> vu;
    uint32_t u;
    vector<int32_t, 5> vi;
    int32_t i;
    vector<float16_t, 5> vf16;
    float16_t f16;
    vector<bool, 5> vb;
    bool b;

    // 8.14
    vf = dFdx(vf);
    vf = dFdy(vf);
    vf = fwidth(vf);
    vf = dFdxFine(vf);
    vf = dFdyFine(vf);
    vf = fwidthFine(vf);
    vf = dFdxCoarse(vf);
    vf = dFdyCoarse(vf);
    vf = fwidthCoarse(vf);
}