mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-12 16:15:55 +00:00
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 <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
59b2ccc09a
commit
5fee3f93aa
@ -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:
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user