ray_tracing__advance/raytrace.cpp
void Raytracer::updateRtDescriptorSet(const VkImageView& outputImage)
{
  VkDescriptorImageInfo imageInfo{{}, outputImage, VK_IMAGE_LAYOUT_GENERAL};
  VkWriteDescriptorSet  wds = m_rtDescSetLayoutBind.makeWrite(m_rtDescSet, RtxBindings::eOutImage, &imageInfo);
  vkUpdateDescriptorSets(m_device, 1, &wds, 0, nullptr);
}
//--------------------------------------------------------------------------------------------------
// Writes the output image to the descriptor set
// - Required when changing resolution
//
Writes the output image to the descriptor set
Required when changing resolution
Writes the output image to the descriptor set Required when changing resolution
void Raytracer::updateRtDescriptorSet(const VkImageView& outputImage)
{
  VkDescriptorImageInfo imageInfo{{}, outputImage, VK_IMAGE_LAYOUT_GENERAL};
  VkWriteDescriptorSet  wds = m_rtDescSetLayoutBind.makeWrite(m_rtDescSet, RtxBindings::eOutImage, &imageInfo);
  vkUpdateDescriptorSets(m_device, 1, &wds, 0, nullptr);
}
void Raytracer :: updateRtDescriptorSet ( const VkImageView & outputImage ) { VkDescriptorImageInfo imageInfo { { } , outputImage , VK_IMAGE_LAYOUT_GENERAL } ; VkWriteDescriptorSet wds = m_rtDescSetLayoutBind . makeWrite ( m_rtDescSet , RtxBindings :: eOutImage , & imageInfo ) ; vkUpdateDescriptorSets ( m_device , 1 , & wds , 0 , nullptr ) ; }
Writes the output image to the descriptor set
 Required when changing resolution
Writes the output image to the descriptor set Required when changing resolution