yum-mirror/glslang

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

Jeff BolzImplement GL_EXT_ocp_microscaling_types62f5430e

main
1.4 KiB40 linesraw
1#version 450 core
2
3#extension GL_EXT_float_e2m1 : require
4#extension GL_EXT_shader_explicit_arithmetic_types : enable
5
6layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
7
8void main()
9{
10    {
11        floate2m1_t c000_0 = 0.0fe2m1;
12        floate2m1_t c000_1 = 0.5fe2m1;
13        floate2m1_t c001_0 = 1.0fe2m1;
14        floate2m1_t c001_1 = 1.5fe2m1;
15        floate2m1_t c010_0 = 2.0fe2m1;
16        floate2m1_t c010_1 = 3.0fe2m1;
17        floate2m1_t c011_0 = 4.0fe2m1;
18        floate2m1_t c011_1 = 6.0fe2m1;
19    }
20    {
21        floate2m1_t c000_0 = floate2m1_t(0.0f);
22        floate2m1_t c000_1 = floate2m1_t(0.5f);
23        floate2m1_t c001_0 = floate2m1_t(1.0f);
24        floate2m1_t c001_1 = floate2m1_t(1.5f);
25        floate2m1_t c010_0 = floate2m1_t(2.0f);
26        floate2m1_t c010_1 = floate2m1_t(3.0f);
27        floate2m1_t c011_0 = floate2m1_t(4.0f);
28        floate2m1_t c011_1 = floate2m1_t(6.0f);
29        floate2m1_t c100_0 = floate2m1_t(-0.0f);
30        floate2m1_t c100_1 = floate2m1_t(-0.5f);
31        floate2m1_t c101_0 = floate2m1_t(-1.0f);
32        floate2m1_t c101_1 = floate2m1_t(-1.5f);
33        floate2m1_t c110_0 = floate2m1_t(-2.0f);
34        floate2m1_t c110_1 = floate2m1_t(-3.0f);
35        floate2m1_t c111_0 = floate2m1_t(-4.0f);
36        floate2m1_t c111_1 = floate2m1_t(-6.0f);
37    }
38    const float f = 1.1;
39    floate2m1_t c = floate2m1_t(f);
40}