-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add type aliases for pixel types #119
Comments
For all pixel types, for consistency. I haven't seen Just But the naming is such a pain. And to make it worse, new GPU apis and shader languages have chosen to use a suffix instead, so there's So I'm torn between following Rust's naming, and having it weird for everyone else, or having a mishmash of "standard", but non-Rust names. |
The specific naming is indeed a pain. My one strong opinion in on Consistency tells me more explicit is better so But I have very weak feelings about postfix vs prefix for the type letter: |
Having slept on it, I think I'll keep the RGBA8 style aliases, and add RGBA32F. |
That sounds good, strikes a balance between the two approaches. |
This seems fixed in 30db416 |
From #64:
Some more questions might be whether we provide these aliases for all pixel types or just
Rgb
andRgba
? and for how many integer types,u8
,u16
,isize
? And from #25 whether we go withRgb8
orRgbU8
?The text was updated successfully, but these errors were encountered: