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

#[spirv(block)] for Block decorations on structs. #295

Merged
merged 1 commit into from
Dec 1, 2020
Merged

#[spirv(block)] for Block decorations on structs. #295

merged 1 commit into from
Dec 1, 2020

Conversation

eddyb
Copy link
Contributor

@eddyb eddyb commented Dec 1, 2020

Fixes #247, but sadly overlaps with #289.

I added a Vulkan validation test to spirv-builder tests, hope reusing spirv_tools through rustc_codegen_spirv is okay.
(Do we care whether that validation is Vulkan 1.2 vs 1.1?)

Also confirmed with spirv-val --target-env vulkan1.1 that the error is gone from sky_shader.spv.

@eddyb eddyb requested a review from khyperia December 1, 2020 14:04
Copy link
Contributor

@khyperia khyperia left a comment

Choose a reason for hiding this comment

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

🎉

#[allow(unused_attributes)]
#[spirv(fragment)]
pub fn main(
#[spirv(push_constant)] constants: PushConstant<ShaderConstants>,
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe #[spirv(push_constant)] does nothing and was erroneously included in the example shader, which I'm assuming you copied this from. Doesn't really matter though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh haha whoops.

@mergify mergify bot merged commit ae42a91 into EmbarkStudios:main Dec 1, 2020
@eddyb eddyb deleted the blox branch December 1, 2020 14:34
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.

sky shader example has validation eror
2 participants