-
-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(WebGPU): support more data types for volume rendering #2069
Conversation
f6f6945
to
39fcfb3
Compare
@jourdain PTAL mainly at the typescript stuff |
*/ | ||
|
||
/** | ||
* Convert a Base64 string to an ArrayBuffer. |
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.
Is that the real description?
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.
See that is why I have you review it :-) But really I was worried about the types I chose to use.
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.
number is fine, but now, I just noticed that you export both function as default.
That is wrong. You should export your function as-is (no default keyword).
Then add at the bottom
export default {
toHalf,
fromHalf,
};
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.
By doing that also in your JS you should export your function as well. That would allow someone to import them individually to match the TS description.
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.
or maybe
export declare const HalfFloat: {
toHalf: typeof toHalf;
fromHalf: typeof fromHalf;
}
export default HalfFloat;
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.
Does that look OK?
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.
yes it is.
39fcfb3
to
d6c9772
Compare
Use half float to support types other than uint8 Fix a matrix computation that impacts imageData that has a direction in its transformations.
d6c9772
to
f7c05b3
Compare
🎉 This PR is included in version 19.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Use half float to support types other than uint8
Fix a matrix computation that impacts imageData that
has a direction in its transformations.