void toggleObject() { models.objectIndex++; if (models.objectIndex >= static_cast<uint32_t>(models.objects.size())) { models.objectIndex = 0; } reBuildCommandBuffers(); }
virtual void render() { if (!prepared) return; vkDeviceWaitIdle(device); draw(); vkDeviceWaitIdle(device); if (!paused) { reBuildCommandBuffers(); } }
void togglePipelines() { if (pipelineRight == &pipelines.solid) { pipelineRight = &pipelines.wire; pipelineLeft = &pipelines.wirePassThrough; } else { pipelineRight = &pipelines.solid; pipelineLeft = &pipelines.solidPassThrough; } reBuildCommandBuffers(); }
void toggleSplitScreen() { splitScreen = !splitScreen; reBuildCommandBuffers(); updateUniformBuffers(); }
void toggleSkyBox() { displaySkybox = !displaySkybox; reBuildCommandBuffers(); }
void toggleBloom() { bloom = !bloom; reBuildCommandBuffers(); }
void toggleSampleShading() { useSampleShading = !useSampleShading; reBuildCommandBuffers(); }
void toggleNormals() { displayNormals = !displayNormals; reBuildCommandBuffers(); }