File: spv.longVectorBuiltinsError.comp

package info (click to toggle)
glslang 16.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,720 kB
  • sloc: cpp: 92,305; yacc: 4,320; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (38 lines) | stat: -rw-r--r-- 985 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
31
32
33
34
35
36
37
38
#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
#extension GL_EXT_expect_assume : enable

layout (local_size_x = 64, local_size_y = 1, local_size_z = 1) in;

layout(constant_id = 0) const uint32_t c0 = 0;

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;
    vector<float64_t, 5> vf64;
    vector<uint32_t, c0> vuc;

    vf = max(vf, vu);
    vu = max(vu, vector<uint16_t, 5>(0));
    vu = max(vu, i);
    vu = max(vu, f);
    vf = smoothstep(f, f16, vf);
    vf64 = radians(vf64);
    vf64 = sin(vf64);
    vf64 = atanh(vf64);
    vu = abs(vu);
    vu = max(vu, vector<uint32_t, 6>(0));
    vu = max(vu, vuc);
}