diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index f7e3a628..7c1372cd 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -80,6 +80,7 @@ std::string VulkanExampleBase::getWindowTitle() std::string device(deviceProperties.deviceName); std::string windowTitle; windowTitle = title + " - " + device + " - " + std::to_string(frameCounter) + " fps"; + windowTitle = title; return windowTitle; } @@ -149,11 +150,8 @@ void VulkanExampleBase::createSetupCommandBuffer() VkResult vkRes = vkAllocateCommandBuffers(device, &cmdBufAllocateInfo, &setupCmdBuffer); assert(!vkRes); - // todo : Command buffer is also started here, better put somewhere else - // todo : Check if necessaray at all... VkCommandBufferBeginInfo cmdBufInfo = {}; cmdBufInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; - // todo : check null handles, flags? vkRes = vkBeginCommandBuffer(setupCmdBuffer, &cmdBufInfo); assert(!vkRes); @@ -181,7 +179,7 @@ void VulkanExampleBase::flushSetupCommandBuffer() assert(!err); vkFreeCommandBuffers(device, cmdPool, 1, &setupCmdBuffer); - setupCmdBuffer = VK_NULL_HANDLE; // todo : check if still necessary + setupCmdBuffer = VK_NULL_HANDLE; } void VulkanExampleBase::createPipelineCache() diff --git a/particlefire/particlefire.cpp b/particlefire/particlefire.cpp index 74c1dca2..49a8b3c7 100644 --- a/particlefire/particlefire.cpp +++ b/particlefire/particlefire.cpp @@ -125,7 +125,7 @@ public: VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) { zoom = -90.0f; - rotation = { -30.0f, 45.0f, 0.0f }; + rotation = { -15.0f, 45.0f, 0.0f }; title = "Vulkan Example - Particle system"; zoomSpeed *= 1.5f; timerSpeed *= 8.0f; @@ -166,6 +166,7 @@ public: VkClearValue clearValues[2]; clearValues[0].color = defaultClearColor; + clearValues[0].color = { {0.0f, 0.0f, 0.0f, 0.0f} }; clearValues[1].depthStencil = { 1.0f, 0 }; VkRenderPassBeginInfo renderPassBeginInfo = vkTools::initializers::renderPassBeginInfo(); diff --git a/screenshots/particlefire.png b/screenshots/particlefire.png new file mode 100644 index 00000000..1eb2467a Binary files /dev/null and b/screenshots/particlefire.png differ