Skip to content

Commit

Permalink
set BufferImageCopyParams::image_aspect_flag default value to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Morcki committed Jul 13, 2022
1 parent 019834c commit 61f1308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion taichi/rhi/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ struct BufferImageCopyParams {
} image_extent;
uint32_t image_base_layer{0};
uint32_t image_layer_count{1};
uint32_t image_aspect_flag{0};
uint32_t image_aspect_flag{1};
};

struct ImageCopyParams {
Expand Down
2 changes: 1 addition & 1 deletion taichi/ui/backends/vulkan/swap_chain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ uint32_t SwapChain::height() {
taichi::lang::Surface &SwapChain::surface() {
return *(surface_.get());
}
std::vector<float32> &SwapChain::dump_depth_buffer() {
std::vector<float> &SwapChain::dump_depth_buffer() {
auto [w, h] = surface_->get_size();
curr_width_ = w;
curr_height_ = h;
Expand Down

0 comments on commit 61f1308

Please sign in to comment.