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

Additional operands support (from BitEnum and ValueEnum) #185

Merged
merged 3 commits into from
Feb 11, 2021

Conversation

Jasper-Bekkers
Copy link
Collaborator

Previously in PR #183 we added required_capabilities and required_extension to spirv_headers. This PR moves those into dr::Operand and adds additional_operands.

additional_operands is needed because some enum operands to instructions can specify additional operands that need parsing. Case in point would be an OpDecorate which only has one operand by default and the remaining operands are specified through that. So to properly parse OpDecorate DescriptorSet 0 one needs to have called this additional_operands function to know what follows after DescriptorSet.

@Jasper-Bekkers Jasper-Bekkers changed the title Metadata Additional operands support (from BitEnum and ValueEnum) Feb 11, 2021
@Jasper-Bekkers Jasper-Bekkers merged commit 279cc51 into master Feb 11, 2021
@kvark kvark deleted the metadata branch August 18, 2021 04:05
@kvark
Copy link
Member

kvark commented Aug 18, 2021

It's unfortunate that required_xxx now requires rspirv itself rather than the headers.

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.

3 participants