WIP: Vulkan: Workbench #107886

Closed
Jeroen Bakker wants to merge 88 commits from Jeroen-Bakker:vulkan-draw-manager-workbench into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 83b17201e8 - Show all commits

View File

@ -351,11 +351,11 @@ TEST(math_matrix, MatrixMethods)
EXPECT_EQ(to_scale(m), expect_scale);
float4 expect_sz = {3, 2, 2, M_SQRT2};
float4 expect_size = {3, 2, 2, M_SQRT2};
float4 size;
float4x4 m1 = normalize_and_get_size(m, size);
EXPECT_TRUE(is_unit_scale(m1));
EXPECT_V4_NEAR(size, expect_sz, 0.0002f);
EXPECT_V4_NEAR(size, expect_size, 0.0002f);
float4x4 m2 = normalize(m);
EXPECT_TRUE(is_unit_scale(m2));

View File

@ -166,11 +166,11 @@ void main()
EXPECT_NEAR(as_vec4(to_quaternion(m)), as_vec4(expect_qt), 0.0002);
EXPECT_NEAR(to_scale(m), expect_scale, 0.00001);
vec4 expect_sz = vec4(3, 2, 2, M_SQRT2);
vec4 expect_size = vec4(3, 2, 2, M_SQRT2);
vec4 size;
mat4x4 m1 = normalize_and_get_size(m, size);
EXPECT_TRUE(is_unit_scale(m1));
EXPECT_NEAR(size, expect_sz, 0.0002);
EXPECT_NEAR(size, expect_size, 0.0002);
mat4x4 m2 = normalize(m);
EXPECT_TRUE(is_unit_scale(m2));