mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
lint: deno_webgpu & wgpu-core (#2403)
This commit is contained in:
1 parent
f791eda4ca
commit
06a4bce385
2 files changed
+6
-6
No files matched your search
@@ -264,7 +264,7 @@ pub async fn op_webgpu_request_adapter(
|
||||
|
||||
let descriptor = wgpu_core::instance::RequestAdapterOptions {
|
||||
power_preference: match args.power_preference {
|
||||
Some(power_preference) => power_preference.into(),
|
||||
Some(power_preference) => power_preference,
|
||||
None => PowerPreference::default(),
|
||||
},
|
||||
force_fallback_adapter: args.force_fallback_adapter,
|
||||
|
||||
@@ -209,10 +209,10 @@ impl TryFrom<GpuDepthStencilState> for wgpu_types::DepthStencilState {
|
||||
Ok(wgpu_types::DepthStencilState {
|
||||
format: state.format,
|
||||
depth_write_enabled: state.depth_write_enabled,
|
||||
depth_compare: state.depth_compare.into(),
|
||||
depth_compare: state.depth_compare,
|
||||
stencil: wgpu_types::StencilState {
|
||||
front: state.stencil_front.into(),
|
||||
back: state.stencil_back.into(),
|
||||
front: state.stencil_front,
|
||||
back: state.stencil_back,
|
||||
read_mask: state.stencil_read_mask,
|
||||
write_mask: state.stencil_write_mask,
|
||||
},
|
||||
@@ -322,7 +322,7 @@ pub fn op_webgpu_create_render_pipeline(
|
||||
let mut targets = Vec::with_capacity(fragment.targets.len());
|
||||
|
||||
for target in fragment.targets {
|
||||
targets.push(target.try_into()?);
|
||||
targets.push(target);
|
||||
}
|
||||
|
||||
Some(wgpu_core::pipeline::FragmentState {
|
||||
@@ -356,7 +356,7 @@ pub fn op_webgpu_create_render_pipeline(
|
||||
},
|
||||
primitive: args.primitive.into(),
|
||||
depth_stencil: args.depth_stencil.map(TryInto::try_into).transpose()?,
|
||||
multisample: args.multisample.into(),
|
||||
multisample: args.multisample,
|
||||
fragment,
|
||||
multiview: None,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user