Make metal work

This commit is contained in:
Lubos Lenco
2020-05-11 22:50:32 +02:00
parent 2e5ca0fe9f
commit 6f24aafccc
21 changed files with 72 additions and 22 deletions
+10 -3
View File
@@ -83,14 +83,21 @@ class RenderPathPreview {
}
public static function commandsPreview() {
#if kha_metal
path.clearShader = "clear_color_depth_pass/clear_color_depth_pass/clear_color_depth64_pass";
#end
path.setTarget("mgbuffer2");
path.clearTarget(0xff000000);
path.setTarget("mgbuffer0", ["mgbuffer1", "mgbuffer2"]);
#if arm_world
path.clearTarget(0xffffffff, 1.0);
var clearColor = 0xffffffff;
#else
path.clearTarget(null, 1.0);
var clearColor: Null<Int> = null;
#end
path.setTarget("mgbuffer0");
path.clearTarget(clearColor, 1.0);
path.setTarget("mgbuffer0", ["mgbuffer1", "mgbuffer2"]);
path.drawMeshes("mesh");
// ---