Skip to content

Commit

Permalink
fix: conversion of enum
Browse files Browse the repository at this point in the history
  • Loading branch information
MendyBerger committed Oct 14, 2024
1 parent bc9c0c0 commit 60ee22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu/src/backend/wasi_webgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ impl From<crate::TextureSampleType> for webgpu::GpuTextureSampleType {
fn from(value: crate::TextureSampleType) -> Self {
match value {
wgt::TextureSampleType::Float { filterable: true } => {
webgpu::GpuTextureSampleType::Depth
webgpu::GpuTextureSampleType::Float
}
wgt::TextureSampleType::Float { filterable: false } => {
webgpu::GpuTextureSampleType::UnfilterableFloat
Expand Down

0 comments on commit 60ee22e

Please sign in to comment.