UBO consolidation (#3089)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -253,6 +253,13 @@ void Drawable::draw(PaintParameters& parameters) const {
|
||||
if (!bindAttributes(encoder)) return;
|
||||
if (!bindDescriptors(encoder)) return;
|
||||
|
||||
commandBuffer->pushConstants(
|
||||
context.getGeneralPipelineLayout().get(),
|
||||
vk::ShaderStageFlags() | vk::ShaderStageFlagBits::eVertex | vk::ShaderStageFlagBits::eFragment,
|
||||
0,
|
||||
sizeof(uboIndex),
|
||||
&uboIndex);
|
||||
|
||||
if (is3D) {
|
||||
impl->pipelineInfo.setDepthMode(impl->depthFor3D);
|
||||
impl->pipelineInfo.setStencilMode(impl->stencilFor3D);
|
||||
|
||||
Reference in New Issue
Block a user