mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-02 04:31:26 +00:00
Shuffle the transform orders to ensure that these are embedded in a structure before running the Std140 transform. Add more end-to-end tests for these. As pointed out in tint:1673, arrays of matrices are not correctly decomposed by the Std140 transform. This will be addressed by a later change. Bug: tint:1673 Change-Id: I47c93e458ff48578922d576819792e8ed3a5723c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/102541 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Zhaoming Jiang <zhaoming.jiang@intel.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com>
26 lines
415 B
GLSL
26 lines
415 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
|
|
layout(binding = 0, std140) uniform S_std140_ubo {
|
|
vec2 matrix_0;
|
|
vec2 matrix_1;
|
|
vec2 matrix_2;
|
|
uint pad;
|
|
uint pad_1;
|
|
vec3 vector;
|
|
uint pad_2;
|
|
} data;
|
|
|
|
mat3x2 load_data_matrix() {
|
|
return mat3x2(data.matrix_0, data.matrix_1, data.matrix_2);
|
|
}
|
|
|
|
void tint_symbol() {
|
|
vec2 x = (load_data_matrix() * data.vector);
|
|
}
|
|
|
|
void main() {
|
|
tint_symbol();
|
|
return;
|
|
}
|