diff --git a/assets/gui.frag.spv b/assets/gui.frag.spv index 642d426..fc0c95d 100644 Binary files a/assets/gui.frag.spv and b/assets/gui.frag.spv differ diff --git a/assets/gui.vert.spv b/assets/gui.vert.spv index 7565cdd..72d0979 100644 Binary files a/assets/gui.vert.spv and b/assets/gui.vert.spv differ diff --git a/build.sh b/build.sh index 3bfa50a..2878705 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ set -eu # SHADERS shader_compiler="glslc" -shader_flags="--target-spv=spv1.5 -std=460 --target-env=vulkan1.2" +shader_flags="-std=460 -O --target-env=vulkan1.2" shader_out="-oassets/" mkdir -p build diff --git a/dub.json b/dub.json index ee30fc8..b449e9e 100644 --- a/dub.json +++ b/dub.json @@ -13,10 +13,10 @@ "sourcePaths": ["src/editor", "src/dlib", "src/dlib/external/xxhash", "src/VulkanRenderer"], "libs-linux": ["xcb", "X11", "X11-xcb", "vulkan", "stdc++", "xcb-xfixes", "freetype"], "libs-windows": [], - "versions": [], + "versions": ["VULKAN_DEBUG"], "preGenerateCommands-linux": ["./build.sh"], "preGenerateCommands-windows": [], - "dflags": ["-Xcc=-mno-sse", "-P-I/usr/include/freetype2", "-Jbuild", "-Jassets"], + "dflags": ["-Xcc=-mno-sse", "-P-I/usr/include/freetype2", "-Jbuild", "-Jassets", "-g"], "dflags-dmd": ["-P=-DSTBI_NO_SIMD"] }, ] diff --git a/src/VulkanRenderer b/src/VulkanRenderer index 7a77505..fa33e37 160000 --- a/src/VulkanRenderer +++ b/src/VulkanRenderer @@ -1 +1 @@ -Subproject commit 7a77505fc100da21a5bf804e415be8eb1f36ba19 +Subproject commit fa33e37c002b4ef98ab9d4d88f551c440be4436f diff --git a/src/editor/editor.d b/src/editor/editor.d index ae6c80e..e0516de 100644 --- a/src/editor/editor.d +++ b/src/editor/editor.d @@ -285,10 +285,13 @@ AddEditor(EditorCtx* ctx, UIPanel* target, Axis2D axis) SetFocusedPanel(second); - panels[panel_count+0] = first; - panels[panel_count+1] = second; + debug + { + panels[panel_count+0] = first; + panels[panel_count+1] = second; - panel_count += 2; + panel_count += 2; + } } else if(target.parent.axis == axis) { @@ -316,7 +319,7 @@ AddEditor(EditorCtx* ctx, UIPanel* target, Axis2D axis) } } - for(u64 i = 0; i < panel_count; i += 1) + debug for(u64 i = 0; i < panel_count; i += 1) { bool root_found = false; for(UIPanel* p = panels[i]; !Nil(p); p = p.parent)