yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Jeff BolzImplement GL_EXT_long_vector (#4132)b937eae5

main
683 B30 linesraw
1#version 450 core
2#extension GL_KHR_memory_scope_semantics : enable
3#extension GL_EXT_long_vector : enable
4#extension GL_EXT_shader_explicit_arithmetic_types : enable
5#extension GL_EXT_buffer_reference : enable
6
7void main()
8{
9    vector<float, 5> vf;
10    float f;
11    vector<uint32_t, 5> vu;
12    uint32_t u;
13    vector<int32_t, 5> vi;
14    int32_t i;
15    vector<float16_t, 5> vf16;
16    float16_t f16;
17    vector<bool, 5> vb;
18    bool b;
19
20    // 8.14
21    vf = dFdx(vf);
22    vf = dFdy(vf);
23    vf = fwidth(vf);
24    vf = dFdxFine(vf);
25    vf = dFdyFine(vf);
26    vf = fwidthFine(vf);
27    vf = dFdxCoarse(vf);
28    vf = dFdyCoarse(vf);
29    vf = fwidthCoarse(vf);
30}