The buffers and offsets must be filled even if another vertex setup with
the same format has been used before.
{
const PipelineState &self = *static_cast<const PipelineState *>(this);
+ if(self.changes&PipelineState::VERTEX_SETUP)
+ self.vertex_setup->refresh();
+
constexpr unsigned pipeline_mask = PipelineState::SHPROG|PipelineState::VERTEX_SETUP|PipelineState::FACE_CULL|
PipelineState::DEPTH_TEST|PipelineState::STENCIL_TEST|PipelineState::BLEND|PipelineState::PRIMITIVE_TYPE;
if(self.changes&pipeline_mask)
}
if(self.vertex_setup)
- {
- self.vertex_setup->refresh();
pipeline_info->pVertexInputState = reinterpret_cast<const VkPipelineVertexInputStateCreateInfo *>(self.vertex_setup->creation_info.data());
- }
}
uint64_t VulkanPipelineState::compute_descriptor_set_hash(unsigned index) const