We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b37863 commit f8f69e8Copy full SHA for f8f69e8
3 files changed
engine/CMakeLists.txt
@@ -84,6 +84,8 @@ set(COMMON_SOURCES
84
engine/src/assets/AssetImporterContext.cpp
85
engine/src/assets/Assets/Model/ModelImporter.cpp
86
engine/src/assets/Assets/Texture/TextureImporter.cpp
87
+ engine/src/assets/ValidatedName.cpp
88
+ engine/src/utils/ImageProcessing.cpp
89
engine/src/scripting/native/Scripting.cpp
90
engine/src/scripting/native/HostString.cpp
91
engine/src/scripting/native/NativeApi.cpp
tests/engine/assets/TextureParameters.test.cpp
@@ -105,6 +105,7 @@ TEST_F(TextureParametersJsonTest, FromJsonRestoresValues) {
105
{"convertToSRGB", false},
106
{"flipVertically", false},
107
{"format", 2}, // RGBA
108
+ {"minFilter", 1}, // Bilinear
109
{"maxSize", 1024},
110
{"compressionQuality", 0.75f}
111
};
@@ -297,6 +298,7 @@ TEST_F(TextureParametersEdgeCasesTest, JsonWithExtraFieldsIgnored) {
297
298
299
{"flipVertically", true},
300
{"format", 1},
301
+ {"minFilter", 1},
302
{"maxSize", 2048},
303
{"compressionQuality", 0.8f},
304
{"extraField", "should be ignored"},
@@ -335,6 +337,7 @@ TEST_F(TextureParametersEdgeCasesTest, JsonWithInvalidFormatValueAccepted) {
335
337
{"convertToSRGB", true},
336
338
339
{"format", 99}, // Invalid format value
340
341
{"maxSize", 4096},
342
{"compressionQuality", 0.9f}
343
tests/engine/renderer/DrawCommand.test.cpp
@@ -22,8 +22,12 @@ TEST_F(CommandTypeEnumTest, MeshValueIs0) {
22
EXPECT_EQ(static_cast<int>(CommandType::MESH), 0);
23
}
24
25
-TEST_F(CommandTypeEnumTest, FullScreenValueIs1) {
26
- EXPECT_EQ(static_cast<int>(CommandType::FULL_SCREEN), 1);
+TEST_F(CommandTypeEnumTest, LineValueIs1) {
+ EXPECT_EQ(static_cast<int>(CommandType::LINE), 1);
27
+}
28
+
29
+TEST_F(CommandTypeEnumTest, FullScreenValueIs2) {
30
+ EXPECT_EQ(static_cast<int>(CommandType::FULL_SCREEN), 2);
31
32
33
TEST_F(CommandTypeEnumTest, ValuesAreDistinct) {
0 commit comments