Skip to content

ICE on bool Input params #790

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

Closed
khyperia opened this issue Nov 3, 2021 · 1 comment
Closed

ICE on bool Input params #790

khyperia opened this issue Nov 3, 2021 · 1 comment
Labels
t: bug Something isn't working

Comments

@khyperia
Copy link
Contributor

khyperia commented Nov 3, 2021

#[spirv(vertex)]
pub fn vertex(
    #[spirv(front_facing)] front_facing: bool,
    #[spirv(fully_covered_ext)] fully_covered_ext: bool,
    #[spirv(helper_invocation)] helper_invocation: bool,
) {}
thread 'rustc' panicked at 'Expected types to be equal:
u8
==
bool', crates/rustc_codegen_spirv/src/builder/builder_methods.rs:2182:13

Those three are required (by the builtin) to be actual proper bools, so can't work around using ints. Found in #789

Outputs, etc., are also probably broken.

@khyperia khyperia added the t: bug Something isn't working label Nov 3, 2021
@khyperia
Copy link
Contributor Author

khyperia commented Dec 1, 2021

Fixed by #809

@khyperia khyperia closed this as completed Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant