From 60ee22e75fdd22d14ffc66ecc97d72f01e58064d Mon Sep 17 00:00:00 2001 From: Mendy Berger <12537668+MendyBerger@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:42:49 -0400 Subject: [PATCH] fix: conversion of enum --- wgpu/src/backend/wasi_webgpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/src/backend/wasi_webgpu.rs b/wgpu/src/backend/wasi_webgpu.rs index 785108eebc..4ef26f3f25 100644 --- a/wgpu/src/backend/wasi_webgpu.rs +++ b/wgpu/src/backend/wasi_webgpu.rs @@ -2154,7 +2154,7 @@ impl From 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