Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Laszlo Agocs
qtrhi
Commits
49827169
Commit
49827169
authored
Mar 20, 2019
by
Laszlo Agocs
Browse files
Track resolveTexture usage correctly
parent
60983959
Changes
2
Show whitespace changes
Inline
Side-by-side
src/rhi/qrhimetal.mm
View file @
49827169
...
@@ -1546,6 +1546,8 @@ void QRhiMetal::beginPass(QRhiCommandBuffer *cb,
...
@@ -1546,6 +1546,8 @@ void QRhiMetal::beginPass(QRhiCommandBuffer *cb,
QRHI_RES
(
QMetalTexture
,
colorAttachment
.
texture
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
QRHI_RES
(
QMetalTexture
,
colorAttachment
.
texture
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
else
if
(
colorAttachment
.
renderBuffer
())
else
if
(
colorAttachment
.
renderBuffer
())
QRHI_RES
(
QMetalRenderBuffer
,
colorAttachment
.
renderBuffer
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
QRHI_RES
(
QMetalRenderBuffer
,
colorAttachment
.
renderBuffer
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
if
(
colorAttachment
.
resolveTexture
())
QRHI_RES
(
QMetalTexture
,
colorAttachment
.
resolveTexture
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
}
}
if
(
rtTex
->
m_desc
.
depthStencilBuffer
())
if
(
rtTex
->
m_desc
.
depthStencilBuffer
())
QRHI_RES
(
QMetalRenderBuffer
,
rtTex
->
m_desc
.
depthStencilBuffer
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
QRHI_RES
(
QMetalRenderBuffer
,
rtTex
->
m_desc
.
depthStencilBuffer
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
...
...
src/rhi/qrhivulkan.cpp
View file @
49827169
...
@@ -1833,6 +1833,8 @@ void QRhiVulkan::activateTextureRenderTarget(QRhiCommandBuffer *, QRhiTextureRen
...
@@ -1833,6 +1833,8 @@ void QRhiVulkan::activateTextureRenderTarget(QRhiCommandBuffer *, QRhiTextureRen
rbD
->
backingTexture
->
layout
=
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL
;
rbD
->
backingTexture
->
layout
=
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL
;
rbD
->
lastActiveFrameSlot
=
currentFrameSlot
;
rbD
->
lastActiveFrameSlot
=
currentFrameSlot
;
}
}
if
(
colorAttachment
.
resolveTexture
())
QRHI_RES
(
QVkTexture
,
colorAttachment
.
resolveTexture
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
}
}
if
(
rtD
->
m_desc
.
depthStencilBuffer
())
if
(
rtD
->
m_desc
.
depthStencilBuffer
())
QRHI_RES
(
QVkRenderBuffer
,
rtD
->
m_desc
.
depthStencilBuffer
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
QRHI_RES
(
QVkRenderBuffer
,
rtD
->
m_desc
.
depthStencilBuffer
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment