Run ./tools/format
Change-Id: I4a9f375f5c383d02917c2ade4c83c3d4fc458165 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110102 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
543dd18d3c
commit
0d2aedf097
|
@ -70,8 +70,7 @@ class DAWN_WIRE_EXPORT WireClient : public CommandHandler {
|
|||
|
||||
const volatile char* HandleCommands(const volatile char* commands, size_t size) override;
|
||||
|
||||
ReservedTexture ReserveTexture(WGPUDevice device,
|
||||
const WGPUTextureDescriptor* descriptor);
|
||||
ReservedTexture ReserveTexture(WGPUDevice device, const WGPUTextureDescriptor* descriptor);
|
||||
ReservedSwapChain ReserveSwapChain(WGPUDevice device);
|
||||
ReservedDevice ReserveDevice();
|
||||
ReservedInstance ReserveInstance();
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace dawn::native {
|
|||
class CommandEncoder;
|
||||
struct BeginComputePassCmd;
|
||||
struct BeginRenderPassCmd;
|
||||
}
|
||||
} // namespace dawn::native
|
||||
|
||||
namespace dawn::native::metal {
|
||||
|
||||
|
|
|
@ -1090,8 +1090,7 @@ MaybeError TextureView::Initialize(const TextureViewDescriptor* descriptor) {
|
|||
if (@available(macOS 10.12, iOS 10.0, *)) {
|
||||
if (textureFormat == MTLPixelFormatDepth32Float_Stencil8) {
|
||||
viewFormat = MTLPixelFormatX32_Stencil8;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
UNREACHABLE();
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -471,9 +471,9 @@ class DepthStencilSamplingTest : public DawnTestWithParams<DepthStencilSamplingT
|
|||
void DoSamplingExtraStencilComponentsRenderTest(TestAspectAndSamplerType aspectAndSamplerType,
|
||||
wgpu::TextureFormat format,
|
||||
std::vector<uint8_t> textureValues) {
|
||||
DoSamplingTestImpl(aspectAndSamplerType,
|
||||
CreateSamplingRenderPipeline({TestAspectAndSamplerType::StencilAsUint},
|
||||
{0, 1, 2, 3}),
|
||||
DoSamplingTestImpl(
|
||||
aspectAndSamplerType,
|
||||
CreateSamplingRenderPipeline({TestAspectAndSamplerType::StencilAsUint}, {0, 1, 2, 3}),
|
||||
format, textureValues, 4, [&](uint32_t expected, wgpu::Buffer buffer) {
|
||||
EXPECT_BUFFER(buffer, 0, 4 * sizeof(uint32_t),
|
||||
new ExtraStencilComponentsExpectation(expected));
|
||||
|
@ -483,9 +483,9 @@ class DepthStencilSamplingTest : public DawnTestWithParams<DepthStencilSamplingT
|
|||
void DoSamplingExtraStencilComponentsComputeTest(TestAspectAndSamplerType aspectAndSamplerType,
|
||||
wgpu::TextureFormat format,
|
||||
std::vector<uint8_t> textureValues) {
|
||||
DoSamplingTestImpl(aspectAndSamplerType,
|
||||
CreateSamplingComputePipeline({TestAspectAndSamplerType::StencilAsUint},
|
||||
{0, 1, 2, 3}),
|
||||
DoSamplingTestImpl(
|
||||
aspectAndSamplerType,
|
||||
CreateSamplingComputePipeline({TestAspectAndSamplerType::StencilAsUint}, {0, 1, 2, 3}),
|
||||
format, textureValues, 4, [&](uint32_t expected, wgpu::Buffer buffer) {
|
||||
EXPECT_BUFFER(buffer, 0, 4 * sizeof(uint32_t),
|
||||
new ExtraStencilComponentsExpectation(expected));
|
||||
|
|
|
@ -219,7 +219,6 @@ TEST_F(TextureInternalUsageValidationTest, InternalUsagesAreNotReflected) {
|
|||
ASSERT_EQ(texture.GetUsage(), wgpu::TextureUsage::CopySrc);
|
||||
}
|
||||
|
||||
|
||||
// Test the validation of internal usages against command encoders with and without
|
||||
// useInternalUsages.
|
||||
TEST_F(TextureInternalUsageValidationTest, CommandValidation) {
|
||||
|
|
|
@ -35,5 +35,4 @@ EntryPoint::EntryPoint(EntryPoint&) = default;
|
|||
EntryPoint::EntryPoint(EntryPoint&&) = default;
|
||||
EntryPoint::~EntryPoint() = default;
|
||||
|
||||
|
||||
} // namespace tint::inspector
|
||||
|
|
Loading…
Reference in New Issue