mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Error handling for promise returning operations
This commit is contained in:
parent
8cb5fad828
commit
cd8d9162e6
5 changed files with 93 additions and 55 deletions
|
@ -5,8 +5,8 @@
|
|||
// https://gpuweb.github.io/gpuweb/#gpubuffer
|
||||
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
|
||||
interface GPUBuffer {
|
||||
Promise<void> mapAsync(GPUMapModeFlags mode, optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
|
||||
[Throws] ArrayBuffer getMappedRange(optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
|
||||
Promise<void> mapAsync(GPUMapModeFlags mode, optional GPUSize64 offset = 0, optional GPUSize64 size);
|
||||
[Throws] ArrayBuffer getMappedRange(optional GPUSize64 offset = 0, optional GPUSize64 size);
|
||||
void unmap();
|
||||
|
||||
void destroy();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue