diff options
Diffstat (limited to 'components/webgpu/script_messages.rs')
-rw-r--r-- | components/webgpu/script_messages.rs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/components/webgpu/script_messages.rs b/components/webgpu/script_messages.rs index 74a827d6dd1..7142641a466 100644 --- a/components/webgpu/script_messages.rs +++ b/components/webgpu/script_messages.rs @@ -7,20 +7,13 @@ use base::id::PipelineId; use serde::{Deserialize, Serialize}; +use crate::gpu_error::Error; use crate::identity::WebGPUDevice; use crate::wgc::id::{ AdapterId, BindGroupId, BindGroupLayoutId, BufferId, CommandBufferId, ComputePipelineId, DeviceId, PipelineLayoutId, QuerySetId, RenderBundleId, RenderPipelineId, SamplerId, ShaderModuleId, StagingBufferId, SurfaceId, TextureId, TextureViewId, }; -use crate::ErrorScopeId; - -#[derive(Clone, Debug, Deserialize, Serialize)] -pub enum WebGPUOpResult { - ValidationError(String), - OutOfMemoryError, - Success, -} #[derive(Clone, Debug, Deserialize, Serialize)] pub enum WebGPUMsg { @@ -41,15 +34,14 @@ pub enum WebGPUMsg { FreeRenderBundle(RenderBundleId), FreeStagingBuffer(StagingBufferId), FreeQuerySet(QuerySetId), - WebGPUOpResult { + CleanDevice { device: WebGPUDevice, - scope_id: Option<ErrorScopeId>, pipeline_id: PipelineId, - result: WebGPUOpResult, }, - CleanDevice { + UncapturedError { device: WebGPUDevice, pipeline_id: PipelineId, + error: Error, }, Exit, } |