From a41f7ea78f4e51888ccaceec30d3b87e5fa4edb1 Mon Sep 17 00:00:00 2001 From: Mikko Lehtonen Date: Thu, 19 Nov 2020 23:37:36 +0200 Subject: [PATCH] Make inner errors pub --- wgpu-core/src/command/compute.rs | 2 +- wgpu-core/src/command/render.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-core/src/command/compute.rs b/wgpu-core/src/command/compute.rs index 56ea40b21..3b164c15a 100644 --- a/wgpu-core/src/command/compute.rs +++ b/wgpu-core/src/command/compute.rs @@ -119,7 +119,7 @@ pub enum DispatchError { /// Error encountered when performing a compute pass. #[derive(Clone, Debug, Error)] -pub(super) enum ComputePassErrorInner { +pub enum ComputePassErrorInner { #[error(transparent)] Encoder(#[from] CommandEncoderError), #[error("bind group {0:?} is invalid")] diff --git a/wgpu-core/src/command/render.rs b/wgpu-core/src/command/render.rs index 6dbdf97ed..4c7182822 100644 --- a/wgpu-core/src/command/render.rs +++ b/wgpu-core/src/command/render.rs @@ -318,7 +318,7 @@ impl State { /// Error encountered when performing a render pass. #[derive(Clone, Debug, Error)] -pub(super) enum RenderPassErrorInner { +pub enum RenderPassErrorInner { #[error(transparent)] Encoder(#[from] CommandEncoderError), #[error("attachment texture view {0:?} is invalid")]