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 vk::LocalSizeId Attribute #7084

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

s-perron
Copy link
Collaborator

In SPIR-V, the number of thread in the group can be specificed using the
LocalSize execution mode. This corresponds nicely with the
numthreads attribute in HLSL.

However there is another way. You can use LocalSizeId, which uses ids
of other instructions. This allows spec constants to be provided as a
dimention on the local size id.

This PR adds a new attribute that can be used instead of the
numthreads attribute. It allows constant expression or spec constants
as parameters.

In SPIR-V, the number of thread in the group can be specificed using the
`LocalSize` execution mode. This corresponds nicely with the
`numthreads` attribute in HLSL.

However there is another way. You can use `LocalSizeId`, which uses ids
of other instructions. This allows spec constants to be provided as a
dimention on the local size id.

This PR adds a new attribute that can be used instead of the
`numthreads` attribute. It allows constant expression or spec constants
as parameters.
Copy link
Contributor

github-actions bot commented Jan 24, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

1 participant