Skip to content

Commit df0c8f6

Browse files
committed
Use USHORT_MAX value for jump flood seed attachment image clear color.
1 parent 18cf961 commit df0c8f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

impl/vulkan/Frame.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ void vk_gltf_viewer::vulkan::Frame::recordScenePrepassCommands(vk::CommandBuffer
15491549
vku::lvalue(vk::RenderingAttachmentInfo {
15501550
*viewport->hoveringNodeJumpFloodSeedAttachmentGroup.seedImageView, vk::ImageLayout::eColorAttachmentOptimal,
15511551
{}, {}, {},
1552-
vk::AttachmentLoadOp::eClear, vk::AttachmentStoreOp::eStore,
1552+
vk::AttachmentLoadOp::eClear, vk::AttachmentStoreOp::eStore, vk::ClearColorValue { 65535U, 65535U, 0U, 0U },
15531553
}),
15541554
&vku::lvalue(vk::RenderingAttachmentInfo {
15551555
*viewport->hoveringNodeJumpFloodSeedAttachmentGroup.depthImageView, vk::ImageLayout::eDepthStencilAttachmentOptimal,
@@ -1591,7 +1591,7 @@ void vk_gltf_viewer::vulkan::Frame::recordScenePrepassCommands(vk::CommandBuffer
15911591
vku::lvalue(vk::RenderingAttachmentInfo {
15921592
*viewport->selectedNodeJumpFloodSeedAttachmentGroup.seedImageView, vk::ImageLayout::eColorAttachmentOptimal,
15931593
{}, {}, {},
1594-
vk::AttachmentLoadOp::eClear, vk::AttachmentStoreOp::eStore,
1594+
vk::AttachmentLoadOp::eClear, vk::AttachmentStoreOp::eStore, vk::ClearColorValue { 65535U, 65535U, 0U, 0U },
15951595
}),
15961596
&vku::lvalue(vk::RenderingAttachmentInfo {
15971597
*viewport->selectedNodeJumpFloodSeedAttachmentGroup.depthImageView, vk::ImageLayout::eDepthStencilAttachmentOptimal,

0 commit comments

Comments
 (0)