mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Merge #902
902: Address nits in #897 r=cwfitzgerald a=scoopr Co-authored-by: Mikko Lehtonen <scoopr@iki.fi>
This commit is contained in:
@@ -722,7 +722,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
bundle_encoder
|
||||
.context
|
||||
.check_compatible(&pipeline.pass_context)
|
||||
.map_err(|e| RenderCommandError::IncompatiblePipeline(e))?;
|
||||
.map_err(RenderCommandError::IncompatiblePipeline)?;
|
||||
|
||||
//TODO: check read-only depth
|
||||
|
||||
|
||||
@@ -1018,7 +1018,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
|
||||
context
|
||||
.check_compatible(&pipeline.pass_context)
|
||||
.map_err(|e| RenderCommandError::IncompatiblePipeline(e))?;
|
||||
.map_err(RenderCommandError::IncompatiblePipeline)?;
|
||||
|
||||
if pipeline.flags.contains(PipelineFlags::WRITES_DEPTH_STENCIL)
|
||||
&& is_ds_read_only
|
||||
@@ -1515,7 +1515,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
|
||||
context
|
||||
.check_compatible(&bundle.context)
|
||||
.map_err(|e| RenderPassError::IncompatibleRenderBundle(e))?;
|
||||
.map_err(RenderPassError::IncompatibleRenderBundle)?;
|
||||
|
||||
unsafe {
|
||||
bundle.execute(
|
||||
|
||||
Reference in New Issue
Block a user