From a5b3b7ce6a49d552de2aa4af8d9dad160efd6256 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Tue, 4 Feb 2025 00:38:49 +0100 Subject: Upgrade asl --- MODULE.bazel | 2 +- hk21/game/gpu.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 141b761..fe49455 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -15,7 +15,7 @@ bazel_dep(name = "sdl3_windows", version = "3.2.0") bazel_dep(name = "asl") git_override( module_name = "asl", - commit = "a89e72929ed047344e221f65542e763e3f6ac3de", + commit = "3d5a45b283d2a59211f9e24f100b95169375213d", remote = "https://git.stevenlr.com/460nm/asl.git/", ) diff --git a/hk21/game/gpu.cpp b/hk21/game/gpu.cpp index d8533be..3fe0a8b 100644 --- a/hk21/game/gpu.cpp +++ b/hk21/game/gpu.cpp @@ -180,8 +180,7 @@ static asl::status_or find_physical_device(VkInstance instan VkPhysicalDeviceProperties prps; vkGetPhysicalDeviceProperties(physical_device, &prps); - // @Todo(asl) Add from_zstr to asl::string_view - asl::string_view name{prps.deviceName, asl::strlen(prps.deviceName)}; + auto name = asl::string_view::from_zstr(prps.deviceName); if (prps.apiVersion < kTargetVersion) { -- cgit