Skip to content

Begin/EndRenderPass with CLEAR and STORE, but no draw calls won't actually clear and store [fixed] #85

@EvilTrev

Description

@EvilTrev

I don't know if this is a complete fix, but these are the changes that I found to fix the most common case:

void StreamEncoder::CmdBeginRenderPass(const VezRenderPassBeginInfo* pBeginInfo)

        SubpassDesc firstSubpass = {};
        for (auto i = 0U; i < pBeginInfo->attachmentCount; ++i)
        {
			........

			// This is a condition that should at least mark the output attachment... right?
			if ( attachment.loadOp == VK_ATTACHMENT_LOAD_OP_CLEAR && attachment.storeOp == VK_ATTACHMENT_STORE_OP_STORE )
			{
				firstSubpass.outputAttachments.emplace( i );
			}
        }

I know this is not a maintained project anymore, I'm adding on the off chance someone else has a similar issue or knows more and wants to weigh in on this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions