mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
Change Err(x)? to return Err(x.into())
This commit is contained in:
1 parent
022f19f94c
commit
3787d3bedb
1 file changed
+2
-2
@@ -3032,7 +3032,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
None => wgt::ShaderStage::VERTEX,
|
||||
};
|
||||
if desc.layout.is_none() && !validated_stages.contains(last_stage) {
|
||||
Err(pipeline::ImplicitLayoutError::ReflectionError(last_stage))?
|
||||
return Err(pipeline::ImplicitLayoutError::ReflectionError(last_stage).into());
|
||||
}
|
||||
|
||||
let primitive_assembler = hal::pso::PrimitiveAssemblerDesc::Vertex {
|
||||
@@ -3307,7 +3307,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
)
|
||||
.map_err(pipeline::CreateComputePipelineError::Stage)?;
|
||||
} else if desc.layout.is_none() {
|
||||
Err(pipeline::ImplicitLayoutError::ReflectionError(flag))?
|
||||
return Err(pipeline::ImplicitLayoutError::ReflectionError(flag).into());
|
||||
}
|
||||
|
||||
let shader = hal::pso::EntryPoint::<B> {
|
||||
|
||||
Reference in new issue
Block a user