Update Slang, Vulkan, Gltf and ImGui. Offload natives to sub-packages.

Public-PR: https://github.com/ahwootech/BRUTAL/pull/9
Public-PR: https://github.com/ahwootech/BRUTAL/pull/15
Public-PR: https://github.com/ahwootech/BRUTAL/pull/21
Fixes: ahwootech/BRUTAL#8
Fixes: ahwootech/BRUTAL#22
Co-authored-by: Laurens de Voogd <laurens@devoogd.be>
Co-authored-by: sGo7-Dev <goulax16@gmail.com>
Co-authored-by: Capsup <capsup@live.dk>
This commit is contained in:
BRUTAL release 2026-10-23 15:07:17 +13:00
commit 4ac91e105e

View file

@ -277,6 +277,9 @@ public partial class GlfwBackend : IPlatformBackend
private unsafe byte* GetClipboardText(ImGuiContextPtr context)
{
var str = Glfw.Clipboard;
if (str is null)
return null;
var byteCount = Utf8.GetByteCount(str);
_cachedClipboardText.Count = byteCount + 1;
Utf8.FromUtf16(str, _cachedClipboardText.AsSpan(), out _, out _);