Kunal Mohan
3661aa3d8c
Use Device limits and features provided by user
...
Spec update
2020-09-23 11:37:03 +05:30
Kunal Mohan
a68e3920e5
update wgpu
2020-09-22 11:34:27 +05:30
Kunal Mohan
9c3967158a
defer encoding errors to finish()
2020-08-22 17:43:10 +05:30
Kunal Mohan
e1bfc7aa0d
upgrade wgpu to v0.6
2020-08-22 17:42:40 +05:30
Kunal Mohan
f082a507da
Implement GPUPipelineBase for implicit pipeline layouts
2020-08-19 16:44:26 +05:30
Kunal Mohan
8c576bb02b
update wgpu and some cleanup
2020-08-17 13:33:54 +05:30
Kunal Mohan
732efdacbd
update wgpu
2020-08-16 12:35:38 +05:30
Kunal Mohan
7f53339d78
Implement GPUUncapturedErrorEvent
2020-08-11 14:24:58 +05:30
Kunal Mohan
78c9466fdb
fix ErrorScope model
2020-08-07 11:35:50 +05:30
Kunal Mohan
072770dbc0
Register invalid resources separately
2020-08-06 10:48:17 +05:30
Kunal Mohan
ce6e09a3aa
Change ErrorScopeId type to NonZeroU64
...
And extract it from WebGPURequest
2020-08-03 01:45:29 +05:30
Kunal Mohan
8cb5fad828
Report errors from void returning operations
2020-08-01 16:32:37 +05:30
Kunal Mohan
4e38633009
Refactor and improve GPUErrorScopes
...
Remove use of equivalent BGLs
2020-07-30 23:36:58 +05:30
Kunal Mohan
aff22db33f
Implement GPURenderBundleEncoder and GPURenderBundle
2020-07-24 12:45:23 +05:30
Kunal Mohan
75abccb16b
update wgpu, use serializable descriptors
2020-07-22 23:22:13 +05:30
Kunal Mohan
5285c07f1f
Implement GPUCommandEncoder.copy commands
2020-07-21 21:00:23 +05:30
Kunal Mohan
cdc0a75fe4
Update GPUObjectBase webidl and cleanup valid flags
2020-07-20 23:03:53 +05:30
Kunal Mohan
37d606621d
address review comments
2020-07-17 02:23:39 +05:30
Kunal Mohan
d1c13e8df7
Use existing BindGroupLayout if an equivalent BGL already exists
2020-07-16 23:21:09 +05:30
Kunal Mohan
0dc1514d57
Implement Async Error reporting for WebGPU and update wgpu-core
2020-07-16 23:21:09 +05:30
Kunal Mohan
fae66089fa
Implement GPUQueue.writeBuffer and GPUQueue.writeTexture
2020-07-04 21:49:32 +05:30
Kunal Mohan
891a3bd30e
Encapsulate buffer map fields in a separate struct
2020-07-01 23:58:55 +05:30
Kunal Mohan
575036bb88
Implement GPUBuffer.getMappedRange()
2020-07-01 20:37:17 +05:30
Kunal Mohan
db2d313a1b
Fix ArrayBuffer creation in buffer mapping
2020-06-27 21:32:18 +05:30
Kunal Mohan
ef3b141406
address review comments
2020-06-27 20:27:18 +05:30
Kunal Mohan
b74cea3a46
Implement GPUBuffer.mapAsync and update wgpu-core
2020-06-27 20:27:17 +05:30
Kunal Mohan
f973099020
Remove validation for GPUBindGroup, GPUBindGroupLayout, GPUPipelineLayout
2020-06-19 21:35:30 +05:30
Kunal Mohan
48ef306bd3
Update wgpu-core and wgpu-types
2020-06-19 11:12:50 +05:30
Kunal Mohan
00b3f785c4
Add GPUSampler and GPUTextureView to BindingResource
...
Add validation for BindGroups
2020-06-17 12:45:40 +05:30
Kunal Mohan
71401e0855
Implement GPUSwapChain and GPUCanvasContext and interface with Webrender
2020-06-13 17:46:12 +05:30
Kunal Mohan
3b5ede153d
Update wgpu-core and wgpu-types
2020-06-04 01:19:13 +05:30
Kunal Mohan
1d4efb48ba
Implement GPURenderPassEncoder
...
Add webidls for GPURenderPassEncoder and GPURenderEncoderBase and
implement relevant methods.
2020-06-04 00:27:58 +05:30
Kunal Mohan
af95d92231
Implement GPUTexture and GPUTextureView
2020-06-01 23:28:12 +05:30
Kunal Mohan
130de8b8e6
Implement GPURenderPipeline
...
Add webidl for GPURenderPipeline and implement GPUDevice.createRenderPipeline()
2020-05-30 11:38:32 +05:30
Kunal Mohan
f4d0183568
Make WebGPU resource creation fully async
...
Remove some garbage code in adapter id checks
Prevent panic during shutdown if using WebGPU
2020-05-26 19:16:46 +05:30
Kunal Mohan
dd04716b85
Add GPUSampler to WebGPU implementation
...
Add dom_struct and webidl for GPUSampler, implement GPUDevice.createSampler() method.
2020-05-26 00:00:35 +05:30
Kunal Mohan
a4f911699a
Upgrade wgpu-core version to 0.5.0 and implement server-side logic for wgpu id recycling
...
Remove current implementation of MapReadAsync
2020-05-21 18:28:49 +05:30
Kunal Mohan
1aeae47299
Validate copybuffertobuffer() + some spec update
...
The spec update includes renaming bindings to entries and
adding CommandEncoderState.
2020-05-15 22:55:08 +05:30
Kunal Mohan
e5065c7eb2
Share single gpu_id_hub among all threads in a process
2020-05-15 01:15:01 +05:30
YUAN LYU
3ea6d87bcc
Add trait DomObjectWrap to provide WRAP function
2020-03-20 22:16:56 -04:00
Istvan Miklos
000a5d543d
Fixing some style related issues in WebGPU.
...
Changed the Requests/Response from tuples to named struct variants and also sorted in alphabetical order.
Replaced the ID generator functions from `globalscope` with a single function,
which returns a `RefMut` and can call the appropriate method to generate resource IDs.
2020-02-27 15:10:24 +01:00
Istvan Miklos
2df4d9fce4
Implement mapReadAsync function of GPUBuffer
...
Implemented the `mapReadAsync` and fixed the `unmap` functions of `GPUBuffer`.
Added `mapped` internal slot for tracking the ArrayBuffer/Promise.
Added more states to the `GPUBufferState` enum.
2020-02-25 10:18:36 +01:00
Zakor
a3c6810b18
Initial implementation of GPUQueue
...
Added WebIDL bindings for `GPUQueue`.
Implemented the `submit` function of `GPUQueue` and `defaultQueue` function of `GPUDevice`.
2020-02-13 14:37:25 +01:00
Zakor Gyula
4facd3d4d2
Initial implementation of GPUCommandEncoder
...
Added WebIDL bindings for `GPUCommandEncoder`, `GPUCommandBuffer`, `GPUComputePassEncoder`, `GPUProgrammablePassEncoder`.
Implemented the `beginComputePass`, `copyBufferToBuffer` and `finish` functions of `GPUCommandEncoder`.
Implemented the `createCommandEncoder` function of `GPUDevice`.
2020-02-11 10:20:34 +01:00
Istvan Miklos
9031369c19
Initial implementation of GPUComputePipeline
...
Added WebIDL bindings for `GPUComputePipeline`.
Implemented the `createComputePipeline` function of `GPUDevice`.
2020-02-11 10:15:03 +01:00
Istvan Miklos
a8621c4ed9
Initial implementation of GPUShaderModule
...
Added WebIDL bindings for `GPUShaderModule`.
Implemented the `createShaderModule` function of `GPUDevice`.
2020-02-11 10:12:20 +01:00
Istvan Miklos
3cefc5f3a1
Initial implementation of GPUBindGroup for WebGPU
...
Added WebIDL bindings for `GPUBindGroup`.
Implemented the `createBindGroup` function of `GPUDevice`
2020-01-30 14:45:01 +01:00
Istvan Miklos
dbed5f1364
Support worker for WebGPU
...
To create resource ids for the WebGPU we need to access the `IdentityHub`.
In order to access the `IdentityHub` from a `Window` or a `Worker` as well, I've moved the `IdentityHub` to the `GlobalScope` from the `Navigator`.
2020-01-23 10:51:21 +01:00
Istvan Miklos
d33a4d29a0
Initial implementation of GPUPipelineLayout for WebGPU
...
Added WebIDL bindings for `GPUPipelineLayout`.
Implemented the createPipelineLayout function of `GPUDevice`.
2020-01-21 14:47:38 +01:00
Kunal Mohan
f7db4b7f80
Modify script
to prevent further violations of snake_case
2020-01-18 14:22:15 +05:30