[WIP] Refactor creation of descriptorsets
This commit is contained in:
@@ -24,7 +24,7 @@ namespace openVulkanoCpp::Vulkan
|
||||
texture->updated = false;
|
||||
}
|
||||
|
||||
void Record(vk::CommandBuffer& cmdBuffer, uint32_t bufferId) override
|
||||
void Record(VulkanDrawContext* context) override
|
||||
{
|
||||
//cmdBuffer.bindDescriptorSets(vk::PipelineBindPoint::eGraphics, )
|
||||
}
|
||||
@@ -42,15 +42,15 @@ namespace openVulkanoCpp::Vulkan
|
||||
lastUpdate = -1;
|
||||
}
|
||||
|
||||
void Record(vk::CommandBuffer& cmdBuffer, uint32_t bufferId) override
|
||||
void Record(VulkanDrawContext* context) override
|
||||
{
|
||||
if(bufferId != lastUpdate && m_texture->updated)
|
||||
/*if(bufferId != lastUpdate && m_texture->updated)
|
||||
{
|
||||
lastUpdate = bufferId;
|
||||
resourceManager->CopyDataToImage(m_texture->size, m_texture->textureBuffer, this);
|
||||
m_texture->updated = false;
|
||||
}
|
||||
VulkanTexture::Record(cmdBuffer, bufferId);
|
||||
VulkanTexture::Record(cmdBuffer, bufferId);*/
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user