File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ pub struct ShaderError<E> {
69
69
pub label : Option < String > ,
70
70
pub inner : Box < E > ,
71
71
}
72
+
72
73
#[ cfg( feature = "wgsl" ) ]
73
74
impl fmt:: Display for ShaderError < naga:: front:: wgsl:: ParseError > {
74
75
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -77,6 +78,7 @@ impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
77
78
write ! ( f, "\n Shader '{label}' parsing {string}" )
78
79
}
79
80
}
81
+
80
82
impl fmt:: Display for ShaderError < naga:: WithSpan < naga:: valid:: ValidationError > > {
81
83
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
82
84
use codespan_reporting:: {
@@ -108,6 +110,7 @@ impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>>
108
110
)
109
111
}
110
112
}
113
+
111
114
impl < E > Error for ShaderError < E >
112
115
where
113
116
ShaderError < E > : fmt:: Display ,
You can’t perform that action at this time.
0 commit comments