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 {