Upgrade asl to 0.1.0
This commit is contained in:
@ -20,7 +20,6 @@ bazel_dep(name = "sdl3_windows", version = "3.2.6")
|
|||||||
bazel_dep(name = "asl")
|
bazel_dep(name = "asl")
|
||||||
git_override(
|
git_override(
|
||||||
module_name = "asl",
|
module_name = "asl",
|
||||||
commit = "8604c98df53486208cdc15424aae9d9b2fef2d8e",
|
commit = "54affafd86e2b7f387345c08e8c7285c775d75e5",
|
||||||
remote = "https://git.stevenlr.com/460nm/asl.git/",
|
remote = "https://git.stevenlr.com/460nm/asl.git/",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -261,8 +261,8 @@ static asl::status_or<VkDevice> create_device(VkPhysicalDevice physical_device,
|
|||||||
|
|
||||||
struct FrameResources : asl::intrusive_list_node<FrameResources>
|
struct FrameResources : asl::intrusive_list_node<FrameResources>
|
||||||
{
|
{
|
||||||
VkFence complete_fence;
|
VkFence complete_fence = VK_NULL_HANDLE;
|
||||||
VkCommandPool command_pool;
|
VkCommandPool command_pool = VK_NULL_HANDLE;
|
||||||
};
|
};
|
||||||
|
|
||||||
class GpuImpl : public Gpu
|
class GpuImpl : public Gpu
|
||||||
@ -280,7 +280,7 @@ class GpuImpl : public Gpu
|
|||||||
asl::buffer<VkImage> m_swapchain_images;
|
asl::buffer<VkImage> m_swapchain_images;
|
||||||
|
|
||||||
VkSemaphore m_swapchain_image_acquire_semaphore = VK_NULL_HANDLE;
|
VkSemaphore m_swapchain_image_acquire_semaphore = VK_NULL_HANDLE;
|
||||||
VkSemaphore m_queue_complete_semaphore = VK_NULL_HANDLE;
|
VkSemaphore m_queue_complete_semaphore = VK_NULL_HANDLE;
|
||||||
|
|
||||||
asl::GlobalHeap m_allocator; // @Todo Make this configurable
|
asl::GlobalHeap m_allocator; // @Todo Make this configurable
|
||||||
asl::IntrusiveList<FrameResources> m_in_flight_frames;
|
asl::IntrusiveList<FrameResources> m_in_flight_frames;
|
||||||
@ -651,7 +651,7 @@ public:
|
|||||||
{
|
{
|
||||||
while (!m_in_flight_frames.is_empty())
|
while (!m_in_flight_frames.is_empty())
|
||||||
{
|
{
|
||||||
auto* frame = m_in_flight_frames.tail();
|
auto* frame = m_in_flight_frames.back();
|
||||||
auto status = vkGetFenceStatus(m_device, frame->complete_fence);
|
auto status = vkGetFenceStatus(m_device, frame->complete_fence);
|
||||||
|
|
||||||
if (status == VK_NOT_READY)
|
if (status == VK_NOT_READY)
|
||||||
|
Reference in New Issue
Block a user