2021-11-16 15:15:36 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
|
2022-11-02 02:25:38 +00:00
|
|
|
struct S {
|
|
|
|
mat3x2 matrix;
|
|
|
|
uint pad;
|
|
|
|
uint pad_1;
|
|
|
|
vec3 vector;
|
|
|
|
uint pad_2;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct S_std140 {
|
2022-09-01 22:12:19 +00:00
|
|
|
vec2 matrix_0;
|
|
|
|
vec2 matrix_1;
|
|
|
|
vec2 matrix_2;
|
2022-09-13 19:48:51 +00:00
|
|
|
uint pad;
|
|
|
|
uint pad_1;
|
2021-11-16 15:15:36 +00:00
|
|
|
vec3 vector;
|
2022-09-13 19:48:51 +00:00
|
|
|
uint pad_2;
|
2022-11-02 02:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
layout(binding = 0, std140) uniform data_block_std140_ubo {
|
|
|
|
S_std140 inner;
|
2021-11-16 15:15:36 +00:00
|
|
|
} data;
|
|
|
|
|
2022-11-02 02:25:38 +00:00
|
|
|
mat3x2 load_data_inner_matrix() {
|
|
|
|
return mat3x2(data.inner.matrix_0, data.inner.matrix_1, data.inner.matrix_2);
|
2022-09-01 22:12:19 +00:00
|
|
|
}
|
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
void tint_symbol() {
|
2022-11-02 02:25:38 +00:00
|
|
|
vec2 x = (load_data_inner_matrix() * data.inner.vector);
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
void main() {
|
|
|
|
tint_symbol();
|
2022-01-28 22:36:58 +00:00
|
|
|
return;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|