Remove Depth24Unorm-stencil8 from IsDepthOrStencilFormat
This patch removes Depth24Unorm-stencil8 from IsDepthOrStencilFormat to resolve a compilation error in latest Dawn. Bug: 1459 Change-Id: Ic9a4aa669f28803eeeeea5280ad26d54897b35d3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/93740 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
parent
314840bba1
commit
6d200d53ee
|
@ -136,7 +136,6 @@ bool IsDepthOrStencilFormat(wgpu::TextureFormat textureFormat) {
|
||||||
case wgpu::TextureFormat::Depth24Plus:
|
case wgpu::TextureFormat::Depth24Plus:
|
||||||
case wgpu::TextureFormat::Depth32Float:
|
case wgpu::TextureFormat::Depth32Float:
|
||||||
case wgpu::TextureFormat::Depth24PlusStencil8:
|
case wgpu::TextureFormat::Depth24PlusStencil8:
|
||||||
case wgpu::TextureFormat::Depth24UnormStencil8:
|
|
||||||
case wgpu::TextureFormat::Depth32FloatStencil8:
|
case wgpu::TextureFormat::Depth32FloatStencil8:
|
||||||
case wgpu::TextureFormat::Stencil8:
|
case wgpu::TextureFormat::Stencil8:
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include "dawn/common/Assert.h"
|
#include "dawn/common/Assert.h"
|
||||||
|
|
||||||
namespace utils {
|
namespace utils {
|
||||||
static constexpr std::array<wgpu::TextureFormat, 95> kAllTextureFormats = {
|
static constexpr std::array<wgpu::TextureFormat, 94> kAllTextureFormats = {
|
||||||
wgpu::TextureFormat::R8Unorm,
|
wgpu::TextureFormat::R8Unorm,
|
||||||
wgpu::TextureFormat::R8Snorm,
|
wgpu::TextureFormat::R8Snorm,
|
||||||
wgpu::TextureFormat::R8Uint,
|
wgpu::TextureFormat::R8Uint,
|
||||||
|
|
Loading…
Reference in New Issue