Skip to content

Commit 0106212

Browse files
committed
Refactor multisampling implementation for improved clarity.
Migrated codebase to use `vk::` RAII wrappers, enhanced type safety, and updated Vulkan API conventions. Made textual corrections in documentation for grammatical consistency and clarity. Adjusted resource creation and rendering process to comply with Vulkan's multi-sampling requirements.
1 parent b4796be commit 0106212

File tree

2 files changed

+67
-85
lines changed

2 files changed

+67
-85
lines changed

attachments/30_multisampling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class HelloTriangleApplication {
369369
void createRenderPass() {
370370
vk::AttachmentDescription colorAttachment({}, swapChainImageFormat, msaaSamples, vk::AttachmentLoadOp::eClear,
371371
vk::AttachmentStoreOp::eStore, vk::AttachmentLoadOp::eDontCare, vk::AttachmentStoreOp::eDontCare, vk::ImageLayout::eUndefined,
372-
vk::ImageLayout::ePresentSrcKHR);
372+
vk::ImageLayout::eColorAttachmentOptimal);
373373
vk::AttachmentDescription depthAttachment({}, findDepthFormat(), msaaSamples, vk::AttachmentLoadOp::eClear,
374374
vk::AttachmentStoreOp::eDontCare, vk::AttachmentLoadOp::eDontCare, vk::AttachmentStoreOp::eDontCare, vk::ImageLayout::eUndefined,
375375
vk::ImageLayout::eDepthStencilAttachmentOptimal);

0 commit comments

Comments
 (0)