Skip to content

Commit

Permalink
[Release] quick fx for render passes
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrael1 committed Oct 23, 2024
1 parent 13626db commit 6b2faab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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.7")
set(WISDOM_VERSION "0.3.8")
project("Wisdom" VERSION ${WISDOM_VERSION})

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

- 0.3.8

- Fixed render pass for DX12 always clearing, despite of value

- 0.3.7

- Added specific function for creating depth stencil views
Expand Down
2 changes: 1 addition & 1 deletion wisdom/include/wisdom/dx12/impl/dx12_command_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void wis::ImplDX12CommandList::BeginRenderPass(const wis::DX12RenderPassDesc* pa
.Type = convert_dx(target.store_op),
}
};
if (data[i].BeginningAccess.Type = D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR) {
if (data[i].BeginningAccess.Type == D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR) {
std::copy(std::begin(target.clear_value), std::end(target.clear_value), std::begin(data[i].BeginningAccess.Clear.ClearValue.Color));
}
}
Expand Down

0 comments on commit 6b2faab

Please sign in to comment.