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

MSL: Support descriptor sets with recursive content when using argument buffers. #2343

Merged
merged 2 commits into from
Jun 17, 2024
Merged

MSL: Support descriptor sets with recursive content when using argument buffers. #2343

merged 2 commits into from
Jun 17, 2024

Conversation

billhollings
Copy link
Contributor

When using argument buffers, handle descriptor set entry points with recursive content, similar to discrete entry points with recursive content.

  • For descriptor sets entry points with recursive content, add descriptor set to recursive_inputs, and create a local var for it.

  • For recursive entry points that are contained in a descriptor set argument buffer, don't add entry point to recursive_inputs, or create a local var for that content entry point.

  • Add test shader.

…nt buffers.

When using argument buffers, handle descriptor set entry points with
recursive content, similar to discrete entry points with recursive content.

- For descriptor sets entry points with recursive content, add
  descriptor set to recursive_inputs, and create a local var for it.

- For recursive entry points that are contained in a descriptor set
  argument buffer, don't add entry point to recursive_inputs, or create
  a local var for that content entry point.

- Add test shader.
spirv_msl.cpp Outdated Show resolved Hide resolved
spirv_msl.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@HansKristian-Work HansKristian-Work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Another silly workaround for the pile :(

@HansKristian-Work HansKristian-Work merged commit ab608ac into KhronosGroup:main Jun 17, 2024
6 checks passed
@billhollings billhollings deleted the recurs-desc-set-arg-buff branch June 18, 2024 15:46
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.

2 participants