aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpubuffer.rs
Commit message (Collapse)AuthorAgeFilesLines
* Codegen support multiple interfaces in single webidl file & WebGPU single ↵Samson2023-09-301-2/+3
| | | | | | | | | webidl (#30448) * Codegen support multiple interfaces in single webidl file * Merge GPU*.webidl into WebGPU.webidl * Update gpu files to use WebGPUBinding module file
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-15/+14
| | | | | * strict imports formatting * Reformat all imports
* Upgrade whole webgpu stack (#29795)Samson2023-08-201-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow noidl files in script/dom/webidls * Upgrade wgpu to 0.16 and refresh whole webgpu implementation * Update WebGPU test expectations * misc * MutNullableDom -> DomRefCell<Option<Dom for GPUTexture * Direct use of GPUTextureDescriptor * Remove config from GPUCanvasContext * misc * finally blue color * gpubuffer "handle" error * GPU object have non-null label * gpu limits and info * use buffer_size * fix warnings * Cleanup * device destroy * fallback adapter * mach update-webgpu write webgpu commit hash in file * Mising deps in CI for webgpu tests * Updated expectations * Fixups * early reject * DomRefCell<Option<Dom -> MutNullableDom for GPUTexture
* No tracing of nop traceable fields (#29926)Samson2023-08-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `no_trace` option to JSTraceable derive * NoTrace wrapper * Port some types to no_trace schematics * Fixing my unsafe mistakes (not tracing traceables) * Add docs & safety guards for no_trace Safety guards (trait shenanigans) guarantees safety usage of `no_trace` * Port canvas_traits to no_trace * Port servo_media to no_trace * Port net_traits to no_trace * Port style to no_trace * Port webgpu to no_trace * Port script_traits to no_trace * Port canvas_traits, devtools_traits, embedder_traits, profile_traits to no_trace * unrooted_must_root lint in seperate file * Add trace_in_no_trace_lint as script_plugin * Composable types in must_not_have_traceable * Introduced HashMapTracedValues wrapper * `HashMap<NoTrace<K>,V>`->`HashMapTracedValues<K,V>` * Port rest of servo's types to no_trace * Port html5ever, euclid, mime and http to no_trace * Port remaining externals to no_trace * Port webxr and Arc<Mutex<_>> * Fix spelling in notrace doc
* Remove global argument from Promise::new_in_current_realm.Josh Matthews2023-05-201-2/+1
|
* Make GlobalScope.get_cx a static method.Josh Matthews2023-05-201-1/+1
|
* Prevent redundant texture and buffer destroy callsKunal Mohan2020-08-251-0/+1
|
* Change ErrorScopeId type to NonZeroU64Kunal Mohan2020-08-031-18/+24
| | | | And extract it from WebGPURequest
* Record validation error in mapAsync()Kunal Mohan2020-08-021-6/+18
|
* Error handling for promise returning operationsKunal Mohan2020-08-021-21/+35
|
* Report errors from void returning operationsKunal Mohan2020-08-011-8/+9
|
* Implement GPURenderBundleEncoder and GPURenderBundleKunal Mohan2020-07-241-2/+4
|
* Update GPUObjectBase webidl and cleanup valid flagsKunal Mohan2020-07-201-13/+5
|
* WebGPU update presentation data asynchronouslyKunal Mohan2020-07-031-2/+3
|
* Encapsulate buffer map fields in a separate structKunal Mohan2020-07-011-70/+58
|
* Implement GPUBuffer.getMappedRange()Kunal Mohan2020-07-011-68/+117
|
* Fix ArrayBuffer creation in buffer mappingKunal Mohan2020-06-271-6/+4
|
* Ensure proper unmap of bufferKunal Mohan2020-06-271-11/+11
|
* address review commentsKunal Mohan2020-06-271-26/+32
|
* Implement GPUBuffer.mapAsync and update wgpu-coreKunal Mohan2020-06-271-56/+160
|
* Add GPUSampler and GPUTextureView to BindingResourceKunal Mohan2020-06-171-1/+1
| | | | Add validation for BindGroups
* Update wgpu-core and wgpu-typesKunal Mohan2020-06-041-2/+2
|
* Make WebGPU resource creation fully asyncKunal Mohan2020-05-261-2/+8
| | | | | Remove some garbage code in adapter id checks Prevent panic during shutdown if using WebGPU
* Upgrade wgpu-core version to 0.5.0 and implement server-side logic for wgpu ↵Kunal Mohan2020-05-211-97/+2
| | | | | | id recycling Remove current implementation of MapReadAsync
* Validate copybuffertobuffer() + some spec updateKunal Mohan2020-05-151-5/+9
| | | | | The spec update includes renaming bindings to entries and adding CommandEncoderState.
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-4/+1
|
* Fixing some style related issues in WebGPU.Istvan Miklos2020-02-271-12/+12
| | | | | | 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.
* Implement mapReadAsync function of GPUBufferIstvan Miklos2020-02-251-11/+163
| | | | | | 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.
* Initial implementation of GPUQueueZakor2020-02-131-1/+6
| | | | | Added WebIDL bindings for `GPUQueue`. Implemented the `submit` function of `GPUQueue` and `defaultQueue` function of `GPUDevice`.
* Initial implementation of GPUBindGroup for WebGPUIstvan Miklos2020-01-301-0/+14
| | | | | Added WebIDL bindings for `GPUBindGroup`. Implemented the `createBindGroup` function of `GPUDevice`
* Only start WebGPU thread if an adapter is requestedZakor Gyula2020-01-131-5/+6
|
* Initial implementation of GPUBuffer for WebGPUIstvan Miklos2019-12-171-0/+120
Added WebIDL bindings for GPUBuffer, GPUBufferDescriptor, GPUBufferUsage Implemented the `createBuffer` and `createBufferMapped` functions of GPUDevice