فهرست منبع

Add new validation test and the fromtest parameter

Popov72 4 سال پیش
والد
کامیت
c59beb6ea8

BIN
tests/validation/ReferenceImages/webgpu/custom handling of materials for render target pass.png


+ 7 - 0
tests/validation/index.html

@@ -64,6 +64,13 @@
 								}
 							}
 						}
+						if (qs.fromtest) {
+							for (var index = 0; index < config.tests.length; index++) {
+								if (config.tests[index].title === qs.fromtest) {
+									break;
+								}
+							}
+						}
 
                         await init(qs.engine || "webgl2");
 

+ 1 - 3
tests/validation/validation.js

@@ -237,9 +237,7 @@ function runTest(index, done, listname) {
         }
         else if (test.playgroundId) {
             if (test.playgroundId[0] !== "#" || test.playgroundId.indexOf("#", 1) === -1) {
-                console.error("Invalid playground id");
-                done(false);
-                return;
+                test.playgroundId += "#0";
             }
 
             var snippetUrl = "https://snippet.babylonjs.com";

+ 7 - 2
tests/validation/webgpu.json

@@ -26,7 +26,7 @@
         },
         {
             "title": "sphere with custom shader to display wireframe using glow layer",
-            "playgroundId": "#Y05E2C#1"
+            "playgroundId": "#Y05E2C#3"
         },
         {
             "title": "blur cube with the effect renderer",
@@ -65,7 +65,7 @@
         {
             "title": "procedural texture with node material",
             "renderCount": 10,
-            "playgroundId": "#IA4X0H#0"
+            "playgroundId": "#IA4X0H#1"
         },
         {
             "title": "apply all post processes",
@@ -91,6 +91,11 @@
             "title": "show all procedural textures",
             "renderCount": 5,
             "playgroundId": "#4N0QRP#0"
+        },
+        {
+            "title": "custom handling of materials for render target pass",
+            "renderCount": 30,
+            "playgroundId": "#FIVL25"
         }
     ]
 }