-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Labels
has resolutionIssue is resolved, just needs to be doneIssue is resolved, just needs to be donepresentationPresenting images to surfaces like windows and canvasesPresenting images to surfaces like windows and canvases
Description
There's just one error case in getCurrentTexture()
in the JS spec:
- If this.[[configuration]] is null:
- Throw an InvalidStateError and stop.
We don't have a WGPUSurfaceGetCurrentTextureStatus
to represent this currently.
typedef enum WGPUSurfaceGetCurrentTextureStatus {
WGPUSurfaceGetCurrentTextureStatus_Success = 0x00000000,
WGPUSurfaceGetCurrentTextureStatus_Timeout = 0x00000001,
WGPUSurfaceGetCurrentTextureStatus_Outdated = 0x00000002,
WGPUSurfaceGetCurrentTextureStatus_Lost = 0x00000003,
WGPUSurfaceGetCurrentTextureStatus_OutOfMemory = 0x00000004,
WGPUSurfaceGetCurrentTextureStatus_DeviceLost = 0x00000005,
WGPUSurfaceGetCurrentTextureStatus_Force32 = 0x7FFFFFFF
} WGPUSurfaceGetCurrentTextureStatus WGPU_ENUM_ATTRIBUTE;
Should we add a new one, or merge with one of those?
Followup issue to #203. cc @rajveermalviya @Kangz @eliemichel
Metadata
Metadata
Assignees
Labels
has resolutionIssue is resolved, just needs to be doneIssue is resolved, just needs to be donepresentationPresenting images to surfaces like windows and canvasesPresenting images to surfaces like windows and canvases