Skip to content

Commit

Permalink
[Release] minor fixes to the vulkan
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrael1 committed Oct 31, 2024
1 parent 3dcb71d commit 6cdd204
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

cmake_minimum_required(VERSION 3.22)

set(WISDOM_VERSION "0.3.14")
set(WISDOM_VERSION "0.3.15")
project("Wisdom" VERSION ${WISDOM_VERSION})

set(CMAKE_DEBUG_POSTFIX d)
Expand Down
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Version History

- 0.3.15

- Fixed Vulkan default texture barriers
- Fixed static analysis warning for blending enum, thanks to @jaw

- 0.3.14

- Finally fixed swapchain stutters on VSync for Vulkan, thanks to Sascha Willems for the ship of theseus example
Expand Down
9 changes: 5 additions & 4 deletions wisdom/include/wisdom/vulkan/impl/vk_command_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ inline VkImageMemoryBarrier2 to_vk(wis::TextureBarrier barrier, VkImage texture,
.subresourceRange = {
.aspectMask = aspect_flags(format),
.baseMipLevel = subresource.base_mip_level,
.levelCount = zero_range ? subresource.level_count : VK_REMAINING_MIP_LEVELS,
.levelCount = zero_range ? VK_REMAINING_MIP_LEVELS : subresource.level_count,
.baseArrayLayer = subresource.base_array_layer,
.layerCount = zero_range ? subresource.layer_count : VK_REMAINING_ARRAY_LAYERS,
.layerCount = zero_range ? VK_REMAINING_ARRAY_LAYERS : subresource.layer_count,
}
};
}
Expand Down Expand Up @@ -246,8 +246,9 @@ void wis::ImplVKCommandList::BeginRenderPass(const wis::VKRenderPassDesc* pass_d
auto ds_selector = pass_desc->depth_stencil ? pass_desc->depth_stencil->depth_stencil_select : DSSelect::None;

auto& dtable = device.table();
wis::detail::limited_allocator<VkRenderingAttachmentInfo, 8> allocator(pass_desc->target_count, true);
auto* data = allocator.data();

uint32_t attachment_count = std::min(pass_desc->target_count, 8u);
VkRenderingAttachmentInfo data[8]{};
wis::Size2D extent = std::get<1>(pass_desc->targets[0].target);

for (size_t i = 0; i < pass_desc->target_count; i++) {
Expand Down

0 comments on commit 6cdd204

Please sign in to comment.