-
Notifications
You must be signed in to change notification settings - Fork 45
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
INIT macro follow-up tasks #427
Comments
Is there a way to know if a struct is output only in |
I don't think so, but we can add it. |
Apparently I did figure this one out, 2.5 years ago. gpuweb/gpuweb#2864 (comment) |
Another missing point (I think):
|
Dec 9 meeting:
(I forgot to suggest |
Does not work in MSVC (#461) so keeping |
Dec 12 meeting:
|
Dec 19 meeting:
|
Opened #471. Nothing left to track here so I'm closing this bug. |
Follow-ups collected from PR #422 (issue #158).
Checkbox = fixed or at least has a PR or issue about it.
Maybe INIT macros should prefer
Undefined
over trivial defaults (e.g./*.dimension=*/WGPUTextureDimension_2D
), in case the JS API changes them from trivial (WebIDL) defaults to non-trivial defaults (non-breakingly for JS, in such a way that they depend on the values of other new members or something, but that would make the INIT macros differ slightly).(I am not sure if we ever discussed this before. I know we said that we should implement all of WebIDL's trivial defaulting in webgpu.h implementations though.)
#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
(requires includingmath.h
). Note the JS API disallows NaN (and Infinity) at the WebIDL levelisnan()
value I think, but maybe it should be!isfinite()
or maybe we should disallow infinities as a validation rule, or clamp them to large finite numbers).depthClearValue is undefined iff NaN #467
Behavior of NaNs and Infinities passed as float/double #466
WGPUCallbackMode
(I can't remember if we wanted to default it or not. Does it even matter since people are probably usually going to use these inline anyway? Maybe they don't need INIT macros?)Default *CallbackInfo.mode to zero (invalid) instead of WaitAnyOnly #471
WGPUAdapterInfo
){0}
? #423)_wgpu_ENUM_ZERO_INIT()
or whatever)?0
but there isn't really a better option for those)Clarify "Defaults to" generated doc #436
The text was updated successfully, but these errors were encountered: