Particle fire system minor changes, added screenshot
This commit is contained in:
parent
f621b4c12a
commit
9c891b8273
3 changed files with 4 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
BIN
screenshots/particlefire.png
Normal file
BIN
screenshots/particlefire.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 332 KiB |
Loading…
Add table
Add a link
Reference in a new issue