This commit is contained in:
parent
127ed7b483
commit
9a59b24c8d
6 changed files with 11 additions and 14 deletions
|
|
@ -183,7 +183,7 @@ void VulkanExampleBase::prepare()
|
|||
vulkanDevice,
|
||||
queue,
|
||||
frameBuffers,
|
||||
colorformat,
|
||||
swapChain.colorFormat,
|
||||
depthFormat,
|
||||
&width,
|
||||
&height,
|
||||
|
|
@ -1466,7 +1466,7 @@ void VulkanExampleBase::setupRenderPass()
|
|||
{
|
||||
std::array<VkAttachmentDescription, 2> attachments = {};
|
||||
// Color attachment
|
||||
attachments[0].format = colorformat;
|
||||
attachments[0].format = swapChain.colorFormat;
|
||||
attachments[0].samples = VK_SAMPLE_COUNT_1_BIT;
|
||||
attachments[0].loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR;
|
||||
attachments[0].storeOp = VK_ATTACHMENT_STORE_OP_STORE;
|
||||
|
|
|
|||
|
|
@ -89,10 +89,7 @@ protected:
|
|||
vk::VulkanDevice *vulkanDevice;
|
||||
// Handle to the device graphics queue that command buffers are submitted to
|
||||
VkQueue queue;
|
||||
// Color buffer format
|
||||
VkFormat colorformat = VK_FORMAT_B8G8R8A8_UNORM;
|
||||
// Depth buffer format
|
||||
// Depth format is selected during Vulkan initialization
|
||||
// Depth buffer format (selected during Vulkan initialization)
|
||||
VkFormat depthFormat;
|
||||
// Command buffer pool
|
||||
VkCommandPool cmdPool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue