Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preload command speedup, Texture/buffer data flush, blit shader fix #30

Merged
merged 2 commits into from
Jun 30, 2024

Conversation

riperiperi
Copy link

@riperiperi riperiperi commented Jun 30, 2024

  • Tie current encoder to command buffer. This allows extra command buffers to mainain their own encoder state without interrupting the main encoder.

    • This fixes an issue where buffer data preload would randomly split the render pass in the main thread.
  • Support background context actions, specifically Texture GetData and SetData methods.

    • Implemented CopyFromOrToBuffer for textures. Should probably use it for other methods to avoid duplication, but it could be error prone so I put it off for now.
  • Fix an issue where helper shaders that used render targets weren't ending their render pass when returning to the main state. Some helpers (clear color/depth) can skip doing this.

  • Doesn't currently support scaled copy from background thread (it's skipped). Required for resolution scale.

@github-actions github-actions bot added the gpu label Jun 30, 2024
@IsaacMarovitz IsaacMarovitz merged commit 65fccc1 into IsaacMarovitz:metal Jun 30, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants