2022-11-24 05:25:35 +00:00
|
|
|
#version 310 es
|
|
|
|
#extension GL_AMD_gpu_shader_half_float : require
|
2022-08-03 08:45:25 +00:00
|
|
|
|
2022-11-24 05:25:35 +00:00
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
void unused_entry_point() {
|
|
|
|
return;
|
|
|
|
}
|
2022-08-03 08:45:25 +00:00
|
|
|
struct S {
|
2022-11-24 05:25:35 +00:00
|
|
|
f16vec3 v;
|
|
|
|
};
|
|
|
|
|
|
|
|
layout(binding = 0, std430) buffer U_block_ssbo {
|
|
|
|
S inner;
|
|
|
|
} U;
|
2022-08-03 08:45:25 +00:00
|
|
|
|
2022-11-24 05:25:35 +00:00
|
|
|
void f() {
|
|
|
|
U.inner.v = f16vec3(1.0hf, 2.0hf, 3.0hf);
|
|
|
|
U.inner.v.x = 1.0hf;
|
|
|
|
U.inner.v.y = 2.0hf;
|
|
|
|
U.inner.v.z = 3.0hf;
|
|
|
|
}
|
2022-08-03 08:45:25 +00:00
|
|
|
|