Bulk update nvpro-samples 03/10/22

This commit is contained in:
Mathias Heyer 2022-03-10 23:08:32 -08:00
parent 7a2e7e6837
commit 08dab08b0b
7 changed files with 7 additions and 7 deletions

View file

@ -56,7 +56,7 @@ void Offscreen::destroy()
//--------------------------------------------------------------------------------------------------
// Creating an offscreen frame buffer and the associated render pass
//
void Offscreen::createFramebuffer(VkExtent2D& size)
void Offscreen::createFramebuffer(const VkExtent2D& size)
{
m_alloc->destroy(m_colorTexture);
m_alloc->destroy(m_depthTexture);

View file

@ -34,7 +34,7 @@ public:
void setup(const VkDevice& device, const VkPhysicalDevice& physicalDevice, nvvk::ResourceAllocator* allocator, uint32_t queueFamily);
void destroy();
void createFramebuffer(VkExtent2D& size);
void createFramebuffer(const VkExtent2D& size);
void createPipeline(VkRenderPass& renderPass);
void createDescriptor();
void updateDescriptorSet();