The changed flag is no longer valid at this point. This could in theory
result in unnecessary CmdPushConstants calls, but in practice they change
for every draw call (if they're used in the first place).
if(!self.uniform_blocks.empty())
{
const PipelineState::BoundUniformBlock &first_block = self.uniform_blocks.front();
- if(first_block.used && first_block.binding==ReflectData::PUSH_CONSTANT && first_block.changed)
+ if(first_block.used && first_block.binding==ReflectData::PUSH_CONSTANT)
{
const UniformBlock &pc_block = *first_block.block;
vk.CmdPushConstants(command_buffer, self.shprog->layout_handle, VK_SHADER_STAGE_ALL,