-
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
Status enums still have too many values #401
Comments
Forgot the synchronous statuses WGPUWaitStatus and WGPUSurfaceGetCurrentTextureStatus. Added above. |
All So my suggestion would be to keep just |
IIRC, when the wire connection drops, the current implementation uses |
Dropping the wire is kind of like dropping the instance, in that you no longer really hold a reference to the (server-side) instance, except that it can happen outside of our control (e.g. server process crashes). Losing the wire connection doesn't totally kill futures though, we still track them client side and can still pretend they succeed or whatever. So I think it makes more sense to do that rather than return InstanceDropped on disconnect? |
Just a note, |
While we can still track the futures on the client side, they will never be completed anymore, which is why I used |
Couldn't we just as well pretend they succeed just like we do on device loss, and call the callback with |
Hmm, we could? But it'll be a silent failure since I think we said we wanted the |
I think a silent failure makes sense. We do that on device loss, we just have another channel for reporting the device loss happened. Probably we would report device loss if the wire disconnects, too. |
Dec 9 meeting:
|
Opened two PRs for the remaining things, I'll just close this and use those to track work. |
Following on #396 we should check if there are any other extraneous status values. Checked box = definitely good, or we decided what to do about it.
These look good:
WGPUPopErrorScopeStatus
WGPUErrorType (not really a status but we'll include it)
Undefined=0
but I don't think there's any real reason to do that.WGPUAdapterType (this really isn't a status but it also has an "unknown")
Undefined=0
WGPUDeviceLostReason (also not technically a status) (see also Review entire header for design consistency #299 (comment))
WGPUWaitStatus
These I'm not sure about:
WGPURequestAdapterStatus
Keep
Remove
WGPURequestDeviceStatus
Remove
WGPUQueueWorkDoneStatus
invalid
. I don't think this is possible now; it will be, but should we keep this status in the meantime?Remove
Remove
WGPUMapAsyncStatus
Remove
WGPUCompilationInfoRequestStatus
Remove
Remove
WGPUCreatePipelineAsyncStatus
Remove
WGPUSurfaceGetCurrentTextureStatus
Remove probably
The text was updated successfully, but these errors were encountered: