Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Separate encoders from underlying command buffers #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fu5ha
Copy link

@fu5ha fu5ha commented Sep 18, 2021

Having entirely separate encoders as "virtual command buffers" should make development of a render graph easier/more effective with the possibility of reordering encoders before recording them into concrete command buffers for submission. Based on my sync changes in #6

@zakarumych
Copy link
Collaborator

Thank you for taking time to make this PR!

Command buffers can be reordered before submission. How reordering encoders before writing them into command buffer would help making render passes?
Initially encoders were made to collect commands and then flush them to command buffer because they were using dynamic dispatch and dispatching each command dynamically would hurt performance.
With current design encoders could record commands into command buffer directly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants