Particle fire system minor changes, added screenshot

This commit is contained in:
saschawillems 2016-03-19 20:02:08 +01:00
parent f621b4c12a
commit 9c891b8273
3 changed files with 4 additions and 5 deletions

View file

@ -80,6 +80,7 @@ std::string VulkanExampleBase::getWindowTitle()
std::string device(deviceProperties.deviceName); std::string device(deviceProperties.deviceName);
std::string windowTitle; std::string windowTitle;
windowTitle = title + " - " + device + " - " + std::to_string(frameCounter) + " fps"; windowTitle = title + " - " + device + " - " + std::to_string(frameCounter) + " fps";
windowTitle = title;
return windowTitle; return windowTitle;
} }
@ -149,11 +150,8 @@ void VulkanExampleBase::createSetupCommandBuffer()
VkResult vkRes = vkAllocateCommandBuffers(device, &cmdBufAllocateInfo, &setupCmdBuffer); VkResult vkRes = vkAllocateCommandBuffers(device, &cmdBufAllocateInfo, &setupCmdBuffer);
assert(!vkRes); assert(!vkRes);
// todo : Command buffer is also started here, better put somewhere else
// todo : Check if necessaray at all...
VkCommandBufferBeginInfo cmdBufInfo = {}; VkCommandBufferBeginInfo cmdBufInfo = {};
cmdBufInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; cmdBufInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;
// todo : check null handles, flags?
vkRes = vkBeginCommandBuffer(setupCmdBuffer, &cmdBufInfo); vkRes = vkBeginCommandBuffer(setupCmdBuffer, &cmdBufInfo);
assert(!vkRes); assert(!vkRes);
@ -181,7 +179,7 @@ void VulkanExampleBase::flushSetupCommandBuffer()
assert(!err); assert(!err);
vkFreeCommandBuffers(device, cmdPool, 1, &setupCmdBuffer); vkFreeCommandBuffers(device, cmdPool, 1, &setupCmdBuffer);
setupCmdBuffer = VK_NULL_HANDLE; // todo : check if still necessary setupCmdBuffer = VK_NULL_HANDLE;
} }
void VulkanExampleBase::createPipelineCache() void VulkanExampleBase::createPipelineCache()

View file

@ -125,7 +125,7 @@ public:
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
{ {
zoom = -90.0f; zoom = -90.0f;
rotation = { -30.0f, 45.0f, 0.0f }; rotation = { -15.0f, 45.0f, 0.0f };
title = "Vulkan Example - Particle system"; title = "Vulkan Example - Particle system";
zoomSpeed *= 1.5f; zoomSpeed *= 1.5f;
timerSpeed *= 8.0f; timerSpeed *= 8.0f;
@ -166,6 +166,7 @@ public:
VkClearValue clearValues[2]; VkClearValue clearValues[2];
clearValues[0].color = defaultClearColor; clearValues[0].color = defaultClearColor;
clearValues[0].color = { {0.0f, 0.0f, 0.0f, 0.0f} };
clearValues[1].depthStencil = { 1.0f, 0 }; clearValues[1].depthStencil = { 1.0f, 0 };
VkRenderPassBeginInfo renderPassBeginInfo = vkTools::initializers::renderPassBeginInfo(); VkRenderPassBeginInfo renderPassBeginInfo = vkTools::initializers::renderPassBeginInfo();

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB