- transition image layouts and setup pipeline barriers (fixes some errors reported by RenderDoc)

This commit is contained in:
Magnus Norddahl 2019-03-02 16:02:27 +01:00
commit b1f161040d
5 changed files with 25 additions and 8 deletions

View file

@ -213,7 +213,7 @@ void VkRenderState::Apply(int dt)
passKey.VertexFormat = static_cast<VKVertexBuffer*>(mVertexBuffer)->VertexFormat;
passKey.RenderStyle = mRenderStyle;
passKey.DepthTest = mDepthTest;
passKey.DepthWrite = mDepthWrite;
passKey.DepthWrite = mDepthTest && mDepthWrite;
if (mSpecialEffect > EFF_NONE)
{
passKey.SpecialEffect = mSpecialEffect;