From 5fee3f93aa0d35e6b261d83177aca992862e0035 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 30 Aug 2022 00:57:33 +0000 Subject: [PATCH] Remove ToSampleTypeBit as it is unused. Bug: dawn:527 Change-Id: I09ce1e7e30b7d1329e3e42db9308f7220199cdd8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/100469 Reviewed-by: Austin Eng Commit-Queue: Corentin Wallez Kokoro: Kokoro --- src/dawn/native/Format.cpp | 15 --------------- src/dawn/native/Format.h | 4 +--- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/dawn/native/Format.cpp b/src/dawn/native/Format.cpp index cbb6d8457f..11de9acabe 100644 --- a/src/dawn/native/Format.cpp +++ b/src/dawn/native/Format.cpp @@ -25,21 +25,6 @@ namespace dawn::native { // Format -// TODO(dawn:527): Remove when unused. -SampleTypeBit ToSampleTypeBit(wgpu::TextureComponentType type) { - switch (type) { - case wgpu::TextureComponentType::Float: - return SampleTypeBit::Float; - case wgpu::TextureComponentType::Sint: - return SampleTypeBit::Sint; - case wgpu::TextureComponentType::Uint: - return SampleTypeBit::Uint; - case wgpu::TextureComponentType::DepthComparison: - return SampleTypeBit::Depth; - } - UNREACHABLE(); -} - SampleTypeBit SampleTypeToSampleTypeBit(wgpu::TextureSampleType sampleType) { switch (sampleType) { case wgpu::TextureSampleType::Float: diff --git a/src/dawn/native/Format.h b/src/dawn/native/Format.h index e192a2ce83..0a5f8f2158 100644 --- a/src/dawn/native/Format.h +++ b/src/dawn/native/Format.h @@ -57,9 +57,7 @@ enum class SampleTypeBit : uint8_t { Uint = 0x10, }; -// Converts an wgpu::TextureComponentType to its bitmask representation. -SampleTypeBit ToSampleTypeBit(wgpu::TextureComponentType type); -// Converts an wgpu::TextureSampleType to its bitmask representation. +// Converts a wgpu::TextureSampleType to its bitmask representation. SampleTypeBit SampleTypeToSampleTypeBit(wgpu::TextureSampleType sampleType); struct TexelBlockInfo {