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

Bytemuck feature when targeting SPIRV #229

Closed
pema99 opened this issue Aug 24, 2021 · 2 comments · Fixed by #230
Closed

Bytemuck feature when targeting SPIRV #229

pema99 opened this issue Aug 24, 2021 · 2 comments · Fixed by #230

Comments

@pema99
Copy link

pema99 commented Aug 24, 2021

Hey, I'm trying to compile a crate which depends on glam with for SPIRV arch with rust-gpu. I'm getting the error error: bytemuck feature is not supported when building for SPIR-V. I'm curious what the reasoning behind this is? And is there any way around this? Bytemuck is no_std, so what is the issue?

@bitshifter
Copy link
Owner

You would need to ask the rust-gpu folks. They contributed the spir-v code. I'd recommend trying their discord.

@pema99
Copy link
Author

pema99 commented Aug 24, 2021

I'll try the discord, thanks. For anyone viewing this in the future, std::slice::from_raw_parts worked for my use case https://doc.rust-lang.org/std/slice/fn.from_raw_parts.html

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 a pull request may close this issue.

2 participants