mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
Implement addition and subtraction of float matrices
Bug: tint:316 Change-Id: I3a1082c41c47daacf0220d029cb2a5f118684959 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/52580 Commit-Queue: Antonio Maiorano <amaiorano@google.com> Commit-Queue: David Neto <dneto@google.com> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
34c58a932c
commit
c91f8f2822
@@ -64,6 +64,19 @@ fn scalar_vector_u32() {
|
||||
r = s % v;
|
||||
}
|
||||
|
||||
fn matrix_matrix_f32() {
|
||||
var m34 : mat3x4<f32>;
|
||||
var m43 : mat4x3<f32>;
|
||||
var m33 : mat3x3<f32>;
|
||||
var m44 : mat4x4<f32>;
|
||||
|
||||
m34 = m34 + m34;
|
||||
m34 = m34 - m34;
|
||||
|
||||
m33 = m43 * m34;
|
||||
m44 = m34 * m43;
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn main() -> [[location(0)]] vec4<f32> {
|
||||
return vec4<f32>(0.0,0.0,0.0,0.0);
|
||||
|
||||
Reference in New Issue
Block a user