mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Address nits in #897
This commit is contained in:
parent
dbd6081a8e
commit
5fab78e175
@ -722,7 +722,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
|||||||
bundle_encoder
|
bundle_encoder
|
||||||
.context
|
.context
|
||||||
.check_compatible(&pipeline.pass_context)
|
.check_compatible(&pipeline.pass_context)
|
||||||
.map_err(|e| RenderCommandError::IncompatiblePipeline(e))?;
|
.map_err(RenderCommandError::IncompatiblePipeline)?;
|
||||||
|
|
||||||
//TODO: check read-only depth
|
//TODO: check read-only depth
|
||||||
|
|
||||||
|
|||||||
@ -1018,7 +1018,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
|||||||
|
|
||||||
context
|
context
|
||||||
.check_compatible(&pipeline.pass_context)
|
.check_compatible(&pipeline.pass_context)
|
||||||
.map_err(|e| RenderCommandError::IncompatiblePipeline(e))?;
|
.map_err(RenderCommandError::IncompatiblePipeline)?;
|
||||||
|
|
||||||
if pipeline.flags.contains(PipelineFlags::WRITES_DEPTH_STENCIL)
|
if pipeline.flags.contains(PipelineFlags::WRITES_DEPTH_STENCIL)
|
||||||
&& is_ds_read_only
|
&& is_ds_read_only
|
||||||
@ -1515,7 +1515,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
|||||||
|
|
||||||
context
|
context
|
||||||
.check_compatible(&bundle.context)
|
.check_compatible(&bundle.context)
|
||||||
.map_err(|e| RenderPassError::IncompatibleRenderBundle(e))?;
|
.map_err(RenderPassError::IncompatibleRenderBundle)?;
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
bundle.execute(
|
bundle.execute(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user