diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2024-07-04 14:16:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 12:16:42 +0000 |
commit | 99c1f886b8398e73e5af06135f6f357752e2cb16 (patch) | |
tree | 8646e05b890ddbbddf7238a4ab1cfb0278d17ba0 /components/webgpu/script_messages.rs | |
parent | 26624a109f9d94560780b5ca8d08926e855c5987 (diff) | |
download | servo-99c1f886b8398e73e5af06135f6f357752e2cb16.tar.gz servo-99c1f886b8398e73e5af06135f6f357752e2cb16.zip |
webgpu: Update wgpu and revamp RenderPass (#32665)
* Update wgpu and revamp RenderPass
* Set good expectations
* Set one bad expectation
* send_render_command
* small fixups
* docs
* doc
* Put RenderPass inside PassState
* Use Pass enum for ComputePass too
* fix docs
Diffstat (limited to 'components/webgpu/script_messages.rs')
-rw-r--r-- | components/webgpu/script_messages.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/webgpu/script_messages.rs b/components/webgpu/script_messages.rs index 774bfd6cb7c..35571bb9242 100644 --- a/components/webgpu/script_messages.rs +++ b/components/webgpu/script_messages.rs @@ -11,8 +11,9 @@ use crate::gpu_error::Error; use crate::identity::WebGPUDevice; use crate::wgc::id::{ AdapterId, BindGroupId, BindGroupLayoutId, BufferId, CommandBufferId, ComputePassEncoderId, - ComputePipelineId, DeviceId, PipelineLayoutId, QuerySetId, RenderBundleId, RenderPipelineId, - SamplerId, ShaderModuleId, StagingBufferId, SurfaceId, TextureId, TextureViewId, + ComputePipelineId, DeviceId, PipelineLayoutId, QuerySetId, RenderBundleId, RenderPassEncoderId, + RenderPipelineId, SamplerId, ShaderModuleId, StagingBufferId, SurfaceId, TextureId, + TextureViewId, }; /// <https://gpuweb.github.io/gpuweb/#enumdef-gpudevicelostreason> @@ -45,6 +46,7 @@ pub enum WebGPUMsg { FreeStagingBuffer(StagingBufferId), FreeQuerySet(QuerySetId), FreeComputePass(ComputePassEncoderId), + FreeRenderPass(RenderPassEncoderId), UncapturedError { device: WebGPUDevice, pipeline_id: PipelineId, |