yum-mirror/glslang

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

Jeff BolzGL_EXT_long_vector with 2-4 components doesn't require LongVector capability (#4188)09c541ee

main
523 B20 linesraw
1#version 450 core
2#extension GL_EXT_long_vector : enable
3
4layout (local_size_x = 1) in;
5
6// Long vectors with literal 2, 3, 4 components must not require LongVectorEXT capability.
7void main()
8{
9    vector<float, 2> v2 = vector<float, 2>(1.0, 2.0);
10    vector<float, 3> v3 = vector<float, 3>(1.0, 2.0, 3.0);
11    vector<float, 4> v4 = vector<float, 4>(1.0, 2.0, 3.0, 4.0);
12
13    v2 += v2;
14    v3 = v3 * 2.0;
15    v4 = v4 + vector<float, 4>(0.0);
16
17    int n2 = v2.length();
18    int n3 = v3.length();
19    int n4 = v4.length();
20}