-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Impl ShaderType for LinearRgba #12137
Impl ShaderType for LinearRgba #12137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me, just a minor suggestion around including the glam
feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading over https://docs.rs/encase/latest/encase/trait.ShaderType.html and https://gpuweb.github.io/gpuweb/wgsl/#host-shareable-types, I'm happy with this set of changes.
Co-authored-by: Zachary Harrold <zac@harrold.com.au>
# Objective - LinearRgba is the color type intended for shaders but using it for shaders is currently not easy because it doesn't implement ShaderType ## Solution - add encase as a dependency and impl the required traits. --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Zachary Harrold <zac@harrold.com.au>
Objective
Solution