Skip to content

Commit

Permalink
use correct address computation for image descriptor buffer (KhronosG…
Browse files Browse the repository at this point in the history
…roup#888)

* use correct address computation for image descriptor buffer

* [copyright] update year
  • Loading branch information
4DA authored Feb 12, 2024
1 parent 5177ee6 commit 04091a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2023, Sascha Willems
/* Copyright (c) 2024, Sascha Willems
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down Expand Up @@ -304,7 +304,7 @@ void DescriptorBufferBasic::prepare_descriptor_buffer()
VkDescriptorGetInfoEXT image_descriptor_info{VK_STRUCTURE_TYPE_DESCRIPTOR_GET_INFO_EXT};
image_descriptor_info.type = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
image_descriptor_info.data.pCombinedImageSampler = &image_descriptor;
vkGetDescriptorEXT(get_device().get_handle(), &image_descriptor_info, descriptor_buffer_properties.combinedImageSamplerDescriptorSize, image_descriptor_buf_ptr + i * uniform_binding_descriptor.size + uniform_binding_descriptor.offset);
vkGetDescriptorEXT(get_device().get_handle(), &image_descriptor_info, descriptor_buffer_properties.combinedImageSamplerDescriptorSize, image_descriptor_buf_ptr + i * image_binding_descriptor.size + image_binding_descriptor.offset);
}

// For uniform buffers we only need to put their buffer device addresses into the descriptor buffers
Expand Down

0 comments on commit 04091a4

Please sign in to comment.