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

Add new use resources methods #228

Merged
merged 3 commits into from
Feb 13, 2022
Merged

Add new use resources methods #228

merged 3 commits into from
Feb 13, 2022

Conversation

mxpv
Copy link
Contributor

@mxpv mxpv commented Feb 6, 2022

This PR:

  • Changes MTLRenderStages to bitflags as there are cases when we want to combine stages (below).
  • Current useResource method is deprecated. The new one includes stages param.
  • Adds useResources and useHeaps to pass slices of resources.
  • Updates argument-buffer example to demonstrate how to use use_resources.
  • Adds new bindless example that demonstrates how to bind lots of textures all at once with argument buffers.

@mxpv mxpv changed the title Add new 'use resource' methods Add new use resources methods Feb 6, 2022
src/encoder.rs Outdated Show resolved Hide resolved
@kvark kvark merged commit d0454a0 into gfx-rs:master Feb 13, 2022
@mxpv mxpv deleted the use branch February 13, 2022 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants