From 13e9699b1c96bf80779946a5946006dc806b67e4 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Wed, 20 Apr 2022 00:58:34 +0000 Subject: [PATCH] Fix build/include_what_you_use This CL adds the needed headers to pass the include what you use lint check. Bug: dawn:1339 Change-Id: Ib8df68e51b2c3711169b400e84768d4804568580 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86941 Reviewed-by: Corentin Wallez Commit-Queue: Dan Sinclair Auto-Submit: Dan Sinclair --- src/dawn/CPPLINT.cfg | 1 - src/dawn/common/DynamicLib.cpp | 2 ++ src/dawn/common/Log.cpp | 1 + src/dawn/common/SerialQueue.h | 1 + src/dawn/common/StackContainer.h | 1 + src/dawn/common/SystemUtils.h | 1 + src/dawn/common/TypedInteger.h | 2 +- src/dawn/common/ityp_array.h | 2 ++ src/dawn/common/ityp_stack_vec.h | 3 +++ src/dawn/common/ityp_vector.h | 1 + src/dawn/fuzzers/DawnWireServerAndD3D12BackendFuzzer.cpp | 3 ++- src/dawn/fuzzers/DawnWireServerAndFrontendFuzzer.cpp | 3 ++- .../fuzzers/DawnWireServerAndVulkanBackendFuzzer.cpp | 3 ++- src/dawn/fuzzers/DawnWireServerFuzzer.cpp | 1 + src/dawn/native/Adapter.cpp | 3 +++ src/dawn/native/AsyncTask.cpp | 2 ++ src/dawn/native/BackendConnection.h | 1 + src/dawn/native/BindGroup.h | 1 + src/dawn/native/BindGroupLayout.cpp | 3 ++- src/dawn/native/BindGroupLayout.h | 2 ++ src/dawn/native/BindingInfo.h | 1 + src/dawn/native/BuddyMemoryAllocator.cpp | 2 ++ src/dawn/native/Buffer.cpp | 1 + src/dawn/native/CallbackTaskManager.cpp | 2 ++ src/dawn/native/CommandAllocator.h | 1 + src/dawn/native/CommandBufferStateTracker.h | 2 ++ src/dawn/native/CommandEncoder.cpp | 3 +++ src/dawn/native/CommandEncoder.h | 1 + src/dawn/native/CommandValidation.cpp | 4 ++++ src/dawn/native/Commands.h | 1 + src/dawn/native/ComputePassEncoder.h | 3 +++ src/dawn/native/CopyTextureForBrowserHelper.cpp | 1 + src/dawn/native/CreatePipelineAsyncTask.cpp | 2 ++ src/dawn/native/CreatePipelineAsyncTask.h | 3 +++ src/dawn/native/DawnNative.cpp | 2 ++ src/dawn/native/Device.cpp | 1 + src/dawn/native/Device.h | 3 +++ src/dawn/native/DynamicUploader.cpp | 3 +++ src/dawn/native/DynamicUploader.h | 3 +++ src/dawn/native/EncodingContext.h | 3 +++ src/dawn/native/Error.h | 2 ++ src/dawn/native/ErrorData.cpp | 2 ++ src/dawn/native/ErrorScope.cpp | 2 ++ src/dawn/native/ExternalTexture.cpp | 2 ++ src/dawn/native/Features.cpp | 4 +++- src/dawn/native/Features.h | 1 + src/dawn/native/IndirectDrawValidationEncoder.cpp | 4 ++++ src/dawn/native/Instance.cpp | 2 ++ src/dawn/native/Instance.h | 1 + src/dawn/native/PassResourceUsageTracker.h | 2 ++ src/dawn/native/PersistentCache.h | 2 ++ src/dawn/native/Pipeline.cpp | 4 ++++ src/dawn/native/Pipeline.h | 3 +++ src/dawn/native/PipelineLayout.cpp | 4 ++++ src/dawn/native/PipelineLayout.h | 2 ++ src/dawn/native/PooledResourceMemoryAllocator.cpp | 3 +++ src/dawn/native/PooledResourceMemoryAllocator.h | 1 + src/dawn/native/QueryHelper.cpp | 1 + src/dawn/native/QuerySet.h | 2 ++ src/dawn/native/Queue.cpp | 3 +++ src/dawn/native/Queue.h | 2 ++ src/dawn/native/RenderBundle.cpp | 2 ++ src/dawn/native/RenderBundleEncoder.cpp | 2 ++ src/dawn/native/RenderEncoderBase.cpp | 1 + src/dawn/native/RenderPassEncoder.cpp | 1 + src/dawn/native/RenderPassEncoder.h | 2 ++ src/dawn/native/RenderPipeline.cpp | 1 + src/dawn/native/RenderPipeline.h | 1 + src/dawn/native/RingBufferAllocator.cpp | 2 ++ src/dawn/native/ShaderModule.cpp | 1 + src/dawn/native/ShaderModule.h | 3 +++ src/dawn/native/SpirvValidation.cpp | 2 ++ src/dawn/native/Toggles.h | 1 + src/dawn/native/d3d12/BackendD3D12.cpp | 2 ++ src/dawn/native/d3d12/BackendD3D12.h | 3 +++ src/dawn/native/d3d12/BindGroupD3D12.cpp | 2 ++ src/dawn/native/d3d12/BindGroupLayoutD3D12.cpp | 2 ++ src/dawn/native/d3d12/BindGroupLayoutD3D12.h | 2 ++ src/dawn/native/d3d12/BufferD3D12.cpp | 2 ++ src/dawn/native/d3d12/BufferD3D12.h | 2 ++ src/dawn/native/d3d12/CommandBufferD3D12.cpp | 4 ++++ src/dawn/native/d3d12/CommandRecordingContext.cpp | 4 ++++ src/dawn/native/d3d12/CommandRecordingContext.h | 1 + src/dawn/native/d3d12/ComputePipelineD3D12.cpp | 3 +++ src/dawn/native/d3d12/D3D11on12Util.cpp | 3 ++- src/dawn/native/d3d12/D3D12Backend.cpp | 3 +++ src/dawn/native/d3d12/D3D12Info.cpp | 2 ++ src/dawn/native/d3d12/DeviceD3D12.cpp | 3 +++ src/dawn/native/d3d12/DeviceD3D12.h | 2 ++ src/dawn/native/d3d12/HeapAllocatorD3D12.cpp | 3 +++ src/dawn/native/d3d12/HeapAllocatorD3D12.h | 2 ++ src/dawn/native/d3d12/HeapD3D12.cpp | 2 ++ src/dawn/native/d3d12/PageableD3D12.cpp | 2 ++ src/dawn/native/d3d12/PipelineLayoutD3D12.cpp | 2 ++ src/dawn/native/d3d12/PipelineLayoutD3D12.h | 2 ++ src/dawn/native/d3d12/PlatformFunctions.cpp | 3 +++ src/dawn/native/d3d12/PlatformFunctions.h | 2 ++ src/dawn/native/d3d12/QuerySetD3D12.cpp | 2 ++ src/dawn/native/d3d12/RenderPassBuilderD3D12.cpp | 3 ++- src/dawn/native/d3d12/RenderPipelineD3D12.cpp | 3 +++ src/dawn/native/d3d12/ResidencyManagerD3D12.cpp | 3 +++ src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.cpp | 3 +++ src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.h | 1 + src/dawn/native/d3d12/SamplerD3D12.cpp | 2 ++ src/dawn/native/d3d12/SamplerHeapCacheD3D12.cpp | 2 ++ src/dawn/native/d3d12/SamplerHeapCacheD3D12.h | 1 + src/dawn/native/d3d12/ShaderModuleD3D12.cpp | 4 ++++ .../d3d12/ShaderVisibleDescriptorAllocatorD3D12.cpp | 5 +++++ .../native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.h | 1 + .../native/d3d12/StagingDescriptorAllocatorD3D12.cpp | 6 ++++-- src/dawn/native/d3d12/StagingDescriptorAllocatorD3D12.h | 3 ++- src/dawn/native/d3d12/SwapChainD3D12.cpp | 2 ++ src/dawn/native/d3d12/SwapChainD3D12.h | 2 ++ src/dawn/native/d3d12/TextureD3D12.cpp | 3 +++ src/dawn/native/d3d12/TextureD3D12.h | 2 ++ src/dawn/native/d3d12/UtilsD3D12.cpp | 2 ++ src/dawn/native/d3d12/UtilsD3D12.h | 2 ++ src/dawn/native/metal/BackendMTL.h | 2 ++ src/dawn/native/metal/ComputePipelineMTL.h | 2 ++ src/dawn/native/metal/ShaderModuleMTL.h | 3 +++ src/dawn/native/null/DeviceNull.cpp | 3 +++ src/dawn/native/null/DeviceNull.h | 3 +++ src/dawn/native/opengl/BackendGL.cpp | 2 ++ src/dawn/native/opengl/BackendGL.h | 2 ++ src/dawn/native/opengl/BufferGL.cpp | 4 ++++ src/dawn/native/opengl/CommandBufferGL.cpp | 2 ++ src/dawn/native/opengl/DeviceGL.h | 2 ++ src/dawn/native/opengl/OpenGLFunctions.h | 1 + src/dawn/native/opengl/OpenGLVersion.cpp | 1 + src/dawn/native/opengl/PipelineGL.cpp | 1 + src/dawn/native/opengl/ShaderModuleGL.cpp | 1 + src/dawn/native/opengl/ShaderModuleGL.h | 5 +++++ src/dawn/native/opengl/TextureGL.cpp | 2 ++ src/dawn/native/vulkan/AdapterVk.cpp | 3 +++ src/dawn/native/vulkan/BackendVk.cpp | 3 +++ src/dawn/native/vulkan/BackendVk.h | 2 ++ src/dawn/native/vulkan/BindGroupLayoutVk.cpp | 1 + src/dawn/native/vulkan/BufferVk.cpp | 3 +++ src/dawn/native/vulkan/CommandBufferVk.cpp | 1 + src/dawn/native/vulkan/CommandRecordingContext.h | 3 ++- src/dawn/native/vulkan/ComputePipelineVk.cpp | 2 ++ src/dawn/native/vulkan/DescriptorSetAllocator.cpp | 2 ++ src/dawn/native/vulkan/DeviceVk.h | 3 ++- src/dawn/native/vulkan/NativeSwapChainImplVk.h | 3 ++- src/dawn/native/vulkan/QuerySetVk.cpp | 3 +++ src/dawn/native/vulkan/RenderPipelineVk.cpp | 4 ++++ src/dawn/native/vulkan/ResourceMemoryAllocatorVk.cpp | 3 +++ src/dawn/native/vulkan/SamplerVk.cpp | 2 ++ src/dawn/native/vulkan/ShaderModuleVk.cpp | 3 ++- src/dawn/native/vulkan/ShaderModuleVk.h | 1 + src/dawn/native/vulkan/SwapChainVk.cpp | 2 ++ src/dawn/native/vulkan/TextureVk.cpp | 2 ++ src/dawn/native/vulkan/TextureVk.h | 4 +++- src/dawn/native/vulkan/UtilsVulkan.h | 3 +++ src/dawn/native/vulkan/VulkanExtensions.h | 1 + src/dawn/native/vulkan/VulkanFunctions.cpp | 2 ++ src/dawn/native/vulkan/VulkanInfo.cpp | 3 +++ .../vulkan/external_memory/MemoryServiceDmaBuf.cpp | 2 ++ .../vulkan/external_semaphore/SemaphoreServiceFD.cpp | 2 ++ .../external_semaphore/SemaphoreServiceZirconHandle.cpp | 2 ++ src/dawn/native/webgpu_absl_format.cpp | 2 ++ src/dawn/node/Module.cpp | 5 +++++ src/dawn/node/binding/AsyncRunner.h | 2 +- src/dawn/node/binding/Converter.h | 5 ++++- src/dawn/node/binding/Errors.h | 2 ++ src/dawn/node/binding/GPU.cpp | 3 +++ src/dawn/node/binding/GPUAdapter.cpp | 1 + src/dawn/node/binding/GPUAdapter.h | 3 ++- src/dawn/node/binding/GPUBindGroup.cpp | 2 ++ src/dawn/node/binding/GPUBindGroup.h | 3 ++- src/dawn/node/binding/GPUBindGroupLayout.cpp | 2 ++ src/dawn/node/binding/GPUBindGroupLayout.h | 3 ++- src/dawn/node/binding/GPUBuffer.cpp | 1 + src/dawn/node/binding/GPUBuffer.h | 5 ++++- src/dawn/node/binding/GPUCommandBuffer.cpp | 2 ++ src/dawn/node/binding/GPUCommandBuffer.h | 3 ++- src/dawn/node/binding/GPUCommandEncoder.cpp | 2 ++ src/dawn/node/binding/GPUCommandEncoder.h | 3 ++- src/dawn/node/binding/GPUComputePassEncoder.cpp | 2 ++ src/dawn/node/binding/GPUComputePassEncoder.h | 4 +++- src/dawn/node/binding/GPUComputePipeline.cpp | 2 ++ src/dawn/node/binding/GPUComputePipeline.h | 3 ++- src/dawn/node/binding/GPUDevice.cpp | 2 ++ src/dawn/node/binding/GPUDevice.h | 4 +++- src/dawn/node/binding/GPUPipelineLayout.cpp | 2 ++ src/dawn/node/binding/GPUPipelineLayout.h | 3 ++- src/dawn/node/binding/GPUQuerySet.cpp | 2 ++ src/dawn/node/binding/GPUQuerySet.h | 3 ++- src/dawn/node/binding/GPUQueue.cpp | 1 + src/dawn/node/binding/GPUQueue.h | 5 ++++- src/dawn/node/binding/GPURenderBundle.cpp | 2 ++ src/dawn/node/binding/GPURenderBundle.h | 3 ++- src/dawn/node/binding/GPURenderBundleEncoder.cpp | 2 ++ src/dawn/node/binding/GPURenderBundleEncoder.h | 4 +++- src/dawn/node/binding/GPURenderPassEncoder.cpp | 2 ++ src/dawn/node/binding/GPURenderPassEncoder.h | 4 +++- src/dawn/node/binding/GPURenderPipeline.cpp | 2 ++ src/dawn/node/binding/GPURenderPipeline.h | 3 ++- src/dawn/node/binding/GPUSampler.cpp | 2 ++ src/dawn/node/binding/GPUSampler.h | 3 ++- src/dawn/node/binding/GPUShaderModule.cpp | 2 ++ src/dawn/node/binding/GPUShaderModule.h | 4 +++- src/dawn/node/binding/GPUSupportedLimits.cpp | 2 ++ src/dawn/node/binding/GPUTexture.cpp | 2 ++ src/dawn/node/binding/GPUTexture.h | 3 ++- src/dawn/node/binding/GPUTextureView.cpp | 2 ++ src/dawn/node/binding/GPUTextureView.h | 3 ++- src/dawn/node/interop/Core.h | 3 ++- src/dawn/node/utils/Debug.h | 1 + src/dawn/platform/DawnPlatform.cpp | 4 +++- src/dawn/platform/WorkerThread.h | 2 ++ src/dawn/samples/ComputeBoids.cpp | 1 + src/dawn/samples/ManualSwapChainTest.cpp | 3 +++ src/dawn/samples/SampleUtils.cpp | 3 +++ src/dawn/tests/DawnNativeTest.cpp | 2 ++ src/dawn/tests/DawnNativeTest.h | 3 ++- src/dawn/tests/DawnTest.cpp | 1 + src/dawn/tests/DawnTest.h | 2 ++ src/dawn/tests/MockCallback.h | 3 ++- src/dawn/tests/ParamGenerator.h | 1 + src/dawn/tests/end2end/AdapterDiscoveryTests.cpp | 3 +++ src/dawn/tests/end2end/BindGroupTests.cpp | 3 +++ src/dawn/tests/end2end/BufferTests.cpp | 2 ++ src/dawn/tests/end2end/BufferZeroInitTests.cpp | 3 ++- src/dawn/tests/end2end/ColorStateTests.cpp | 3 ++- src/dawn/tests/end2end/CompressedTextureFormatTests.cpp | 3 ++- src/dawn/tests/end2end/ComputeDispatchTests.cpp | 2 +- .../tests/end2end/ComputeLayoutMemoryBufferTests.cpp | 4 +++- .../tests/end2end/ComputeStorageBufferBarrierTests.cpp | 3 ++- src/dawn/tests/end2end/CopyTests.cpp | 3 ++- src/dawn/tests/end2end/CopyTextureForBrowserTests.cpp | 3 ++- src/dawn/tests/end2end/CreatePipelineAsyncTests.cpp | 3 ++- src/dawn/tests/end2end/D3D12CachingTests.cpp | 7 ++++++- src/dawn/tests/end2end/D3D12ResourceWrappingTests.cpp | 5 ++++- src/dawn/tests/end2end/DepthBiasTests.cpp | 3 +++ src/dawn/tests/end2end/DepthStencilCopyTests.cpp | 3 ++- src/dawn/tests/end2end/DepthStencilLoadOpTests.cpp | 4 +++- src/dawn/tests/end2end/DepthStencilSamplingTests.cpp | 3 +++ src/dawn/tests/end2end/DepthStencilStateTests.cpp | 3 ++- src/dawn/tests/end2end/DestroyTests.cpp | 3 ++- src/dawn/tests/end2end/DeviceInitializationTests.cpp | 3 +++ src/dawn/tests/end2end/DeviceLostTests.cpp | 4 ++-- src/dawn/tests/end2end/DrawIndexedIndirectTests.cpp | 3 ++- src/dawn/tests/end2end/DynamicBufferOffsetTests.cpp | 4 +++- src/dawn/tests/end2end/FirstIndexOffsetTests.cpp | 3 ++- src/dawn/tests/end2end/GpuMemorySynchronizationTests.cpp | 3 +++ src/dawn/tests/end2end/MaxLimitTests.cpp | 5 ++++- src/dawn/tests/end2end/MultisampledRenderingTests.cpp | 3 ++- src/dawn/tests/end2end/MultisampledSamplingTests.cpp | 3 ++- src/dawn/tests/end2end/NonzeroTextureCreationTests.cpp | 4 +++- src/dawn/tests/end2end/OpArrayLengthTests.cpp | 3 ++- src/dawn/tests/end2end/PrimitiveStateTests.cpp | 3 ++- src/dawn/tests/end2end/PrimitiveTopologyTests.cpp | 3 ++- src/dawn/tests/end2end/QueryTests.cpp | 3 ++- src/dawn/tests/end2end/QueueTests.cpp | 3 ++- src/dawn/tests/end2end/QueueTimelineTests.cpp | 4 +++- .../end2end/ReadOnlyDepthStencilAttachmentTests.cpp | 3 ++- src/dawn/tests/end2end/RequiredBufferSizeInCopyTests.cpp | 4 +++- src/dawn/tests/end2end/SamplerFilterAnisotropicTests.cpp | 2 +- src/dawn/tests/end2end/ShaderFloat16Tests.cpp | 3 ++- src/dawn/tests/end2end/ShaderTests.cpp | 2 +- src/dawn/tests/end2end/StorageTextureTests.cpp | 4 +++- .../tests/end2end/SubresourceRenderAttachmentTests.cpp | 3 ++- src/dawn/tests/end2end/Texture3DTests.cpp | 3 ++- src/dawn/tests/end2end/TextureFormatTests.cpp | 4 +++- src/dawn/tests/end2end/TextureViewTests.cpp | 4 +++- src/dawn/tests/end2end/TextureZeroInitTests.cpp | 4 +++- src/dawn/tests/end2end/VertexFormatTests.cpp | 5 ++++- src/dawn/tests/end2end/VertexStateTests.cpp | 3 ++- src/dawn/tests/end2end/VideoViewsTests.cpp | 3 ++- src/dawn/tests/end2end/VideoViewsTests.h | 1 + src/dawn/tests/end2end/VideoViewsTests_gbm.cpp | 6 +++++- src/dawn/tests/end2end/VideoViewsTests_mac.cpp | 5 ++++- src/dawn/tests/end2end/VideoViewsTests_win.cpp | 5 ++++- src/dawn/tests/end2end/ViewportTests.cpp | 3 ++- src/dawn/tests/end2end/WindowSurfaceTests.cpp | 2 +- src/dawn/tests/perf_tests/BufferUploadPerf.cpp | 3 ++- src/dawn/tests/perf_tests/DawnPerfTest.cpp | 1 + src/dawn/tests/perf_tests/DawnPerfTest.h | 3 +++ src/dawn/tests/perf_tests/DawnPerfTestPlatform.cpp | 1 + src/dawn/tests/perf_tests/DawnPerfTestPlatform.h | 1 + src/dawn/tests/perf_tests/DrawCallPerf.cpp | 4 +++- src/dawn/tests/perf_tests/ShaderRobustnessPerf.cpp | 4 +++- src/dawn/tests/unittests/AsyncTaskTests.cpp | 7 +++++-- src/dawn/tests/unittests/BitSetIteratorTests.cpp | 3 ++- src/dawn/tests/unittests/BuddyAllocatorTests.cpp | 4 +++- src/dawn/tests/unittests/BuddyMemoryAllocatorTests.cpp | 3 ++- src/dawn/tests/unittests/CommandAllocatorTests.cpp | 3 ++- src/dawn/tests/unittests/ConcurrentCacheTests.cpp | 4 +++- src/dawn/tests/unittests/ErrorTests.cpp | 3 ++- src/dawn/tests/unittests/FeatureTests.cpp | 3 ++- src/dawn/tests/unittests/GetProcAddressTests.cpp | 6 +++++- src/dawn/tests/unittests/ITypVectorTests.cpp | 3 ++- src/dawn/tests/unittests/LinkedListTests.cpp | 4 ++-- src/dawn/tests/unittests/MathTests.cpp | 3 +-- src/dawn/tests/unittests/ObjectBaseTests.cpp | 3 ++- src/dawn/tests/unittests/PlacementAllocatedTests.cpp | 5 +++-- src/dawn/tests/unittests/RefBaseTests.cpp | 4 +++- src/dawn/tests/unittests/RefCountedTests.cpp | 3 ++- src/dawn/tests/unittests/ResultTests.cpp | 5 ++++- src/dawn/tests/unittests/RingBufferAllocatorTests.cpp | 3 ++- src/dawn/tests/unittests/SerialMapTests.cpp | 4 +++- src/dawn/tests/unittests/SerialQueueTests.cpp | 4 +++- src/dawn/tests/unittests/SlabAllocatorTests.cpp | 4 +++- src/dawn/tests/unittests/StackContainerTests.cpp | 2 +- src/dawn/tests/unittests/SubresourceStorageTests.cpp | 6 +++--- src/dawn/tests/unittests/SystemUtilsTests.cpp | 5 +++-- src/dawn/tests/unittests/TypedIntegerTests.cpp | 3 ++- src/dawn/tests/unittests/VersionTests.cpp | 5 +++-- src/dawn/tests/unittests/d3d12/CopySplitTests.cpp | 3 ++- src/dawn/tests/unittests/native/CacheKeyTests.cpp | 6 +++--- .../unittests/native/CommandBufferEncodingTests.cpp | 4 +++- src/dawn/tests/unittests/native/DeviceCreationTests.cpp | 3 ++- src/dawn/tests/unittests/native/mocks/DeviceMock.h | 3 ++- .../unittests/validation/BindGroupValidationTests.cpp | 5 ++++- .../tests/unittests/validation/BufferValidationTests.cpp | 2 +- .../unittests/validation/CopyCommandsValidationTests.cpp | 2 ++ .../tests/unittests/validation/DeviceValidationTests.cpp | 3 ++- .../DrawVertexAndIndexBufferOOBValidationTests.cpp | 3 ++- .../validation/DynamicStateCommandValidationTests.cpp | 2 +- .../unittests/validation/ErrorScopeValidationTests.cpp | 3 ++- .../validation/MinimumBufferSizeValidationTests.cpp | 4 +++- .../validation/OverridableConstantsValidationTests.cpp | 2 ++ .../tests/unittests/validation/QueryValidationTests.cpp | 3 ++- .../QueueOnSubmittedWorkDoneValidationTests.cpp | 3 ++- .../validation/QueueWriteTextureValidationTests.cpp | 3 ++- .../validation/RenderPipelineValidationTests.cpp | 3 ++- .../unittests/validation/ResourceUsageTrackingTests.cpp | 4 +++- .../unittests/validation/ShaderModuleValidationTests.cpp | 2 +- .../validation/StorageTextureValidationTests.cpp | 2 ++ .../tests/unittests/validation/ToggleValidationTests.cpp | 2 ++ .../unittests/validation/UnsafeAPIValidationTests.cpp | 3 ++- src/dawn/tests/unittests/validation/ValidationTest.cpp | 4 ++-- src/dawn/tests/unittests/validation/ValidationTest.h | 4 +++- .../unittests/validation/VertexStateValidationTests.cpp | 4 +++- .../unittests/validation/VideoViewsValidationTests.cpp | 3 ++- src/dawn/tests/unittests/validation/WriteBufferTests.cpp | 3 ++- src/dawn/tests/unittests/wire/WireArgumentTests.cpp | 2 +- src/dawn/tests/unittests/wire/WireBufferMappingTests.cpp | 4 +++- .../unittests/wire/WireCreatePipelineAsyncTests.cpp | 3 ++- src/dawn/tests/unittests/wire/WireErrorCallbackTests.cpp | 3 ++- .../unittests/wire/WireMemoryTransferServiceTests.cpp | 4 +++- src/dawn/tests/unittests/wire/WireQueueTests.cpp | 3 ++- src/dawn/tests/unittests/wire/WireShaderModuleTests.cpp | 3 ++- src/dawn/tests/white_box/D3D12DescriptorHeapTests.cpp | 5 ++++- .../white_box/D3D12GPUTimestampCalibrationTests.cpp | 3 ++- src/dawn/tests/white_box/D3D12ResourceHeapTests.cpp | 3 ++- src/dawn/tests/white_box/EGLImageWrappingTests.cpp | 4 +++- .../white_box/InternalStorageBufferBindingTests.cpp | 3 ++- src/dawn/tests/white_box/QueryInternalShaderTests.cpp | 3 ++- src/dawn/tests/white_box/VulkanImageWrappingTests.cpp | 3 ++- .../tests/white_box/VulkanImageWrappingTests_DmaBuf.cpp | 9 +++++++-- .../white_box/VulkanImageWrappingTests_OpaqueFD.cpp | 8 +++++--- src/dawn/utils/GLFWUtils.cpp | 2 +- src/dawn/utils/TestUtils.cpp | 4 ++-- src/dawn/utils/WireHelper.cpp | 4 ++-- src/dawn/utils/WireHelper.h | 1 + src/dawn/wire/ChunkedCommandHandler.cpp | 1 + src/dawn/wire/ChunkedCommandHandler.h | 1 + src/dawn/wire/ChunkedCommandSerializer.h | 1 + src/dawn/wire/client/Buffer.cpp | 3 +++ src/dawn/wire/client/Buffer.h | 3 ++- src/dawn/wire/client/Client.h | 3 ++- .../wire/client/ClientInlineMemoryTransferService.cpp | 2 ++ src/dawn/wire/client/Device.cpp | 2 ++ src/dawn/wire/client/ObjectAllocator.h | 1 + src/dawn/wire/client/RequestTracker.h | 1 + src/dawn/wire/server/ObjectStorage.h | 3 +++ src/dawn/wire/server/Server.h | 3 +++ src/dawn/wire/server/ServerAdapter.cpp | 3 ++- src/dawn/wire/server/ServerBuffer.cpp | 1 + .../wire/server/ServerInlineMemoryTransferService.cpp | 1 + src/dawn/wire/server/ServerInstance.cpp | 2 +- src/dawn/wire/server/ServerQueue.cpp | 2 ++ 374 files changed, 833 insertions(+), 184 deletions(-) diff --git a/src/dawn/CPPLINT.cfg b/src/dawn/CPPLINT.cfg index d263a48146..6c1f701a08 100644 --- a/src/dawn/CPPLINT.cfg +++ b/src/dawn/CPPLINT.cfg @@ -1,4 +1,3 @@ -filter=-build/include_what_you_use filter=-build/namespaces filter=-readability/casting filter=-readability/namespace diff --git a/src/dawn/common/DynamicLib.cpp b/src/dawn/common/DynamicLib.cpp index ab4f2d795d..182673ecda 100644 --- a/src/dawn/common/DynamicLib.cpp +++ b/src/dawn/common/DynamicLib.cpp @@ -14,6 +14,8 @@ #include "dawn/common/DynamicLib.h" +#include + #include "dawn/common/Platform.h" #if DAWN_PLATFORM_WINDOWS diff --git a/src/dawn/common/Log.cpp b/src/dawn/common/Log.cpp index 9e6edbe255..18d4af22bf 100644 --- a/src/dawn/common/Log.cpp +++ b/src/dawn/common/Log.cpp @@ -15,6 +15,7 @@ #include "dawn/common/Log.h" #include +#include #include "dawn/common/Assert.h" #include "dawn/common/Platform.h" diff --git a/src/dawn/common/SerialQueue.h b/src/dawn/common/SerialQueue.h index e065254969..d3d4f4feb5 100644 --- a/src/dawn/common/SerialQueue.h +++ b/src/dawn/common/SerialQueue.h @@ -15,6 +15,7 @@ #ifndef SRC_DAWN_COMMON_SERIALQUEUE_H_ #define SRC_DAWN_COMMON_SERIALQUEUE_H_ +#include #include #include "dawn/common/SerialStorage.h" diff --git a/src/dawn/common/StackContainer.h b/src/dawn/common/StackContainer.h index e4b3584fe5..db0bf91599 100644 --- a/src/dawn/common/StackContainer.h +++ b/src/dawn/common/StackContainer.h @@ -8,6 +8,7 @@ #define SRC_DAWN_COMMON_STACKCONTAINER_H_ #include +#include #include #include "dawn/common/Compiler.h" diff --git a/src/dawn/common/SystemUtils.h b/src/dawn/common/SystemUtils.h index 3a05ae7e11..ddb74e4467 100644 --- a/src/dawn/common/SystemUtils.h +++ b/src/dawn/common/SystemUtils.h @@ -17,6 +17,7 @@ #include #include +#include #include "dawn/common/Platform.h" diff --git a/src/dawn/common/TypedInteger.h b/src/dawn/common/TypedInteger.h index 3ee9724617..4844419034 100644 --- a/src/dawn/common/TypedInteger.h +++ b/src/dawn/common/TypedInteger.h @@ -118,7 +118,7 @@ namespace detail { } constexpr TypedIntegerImpl& operator--() { - assert(this->mValue > std::numeric_limits::min()); + ASSERT(this->mValue > std::numeric_limits::min()); --this->mValue; return *this; } diff --git a/src/dawn/common/ityp_array.h b/src/dawn/common/ityp_array.h index 11f06bf794..2624ee842a 100644 --- a/src/dawn/common/ityp_array.h +++ b/src/dawn/common/ityp_array.h @@ -17,7 +17,9 @@ #include #include +#include #include +#include #include "dawn/common/TypedInteger.h" #include "dawn/common/UnderlyingType.h" diff --git a/src/dawn/common/ityp_stack_vec.h b/src/dawn/common/ityp_stack_vec.h index f1f260111c..fb3fcf7a0c 100644 --- a/src/dawn/common/ityp_stack_vec.h +++ b/src/dawn/common/ityp_stack_vec.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_COMMON_ITYP_STACK_VEC_H_ #define SRC_DAWN_COMMON_ITYP_STACK_VEC_H_ +#include +#include + #include "dawn/common/Assert.h" #include "dawn/common/StackContainer.h" #include "dawn/common/UnderlyingType.h" diff --git a/src/dawn/common/ityp_vector.h b/src/dawn/common/ityp_vector.h index a1ff2e0da0..2088c4f2a6 100644 --- a/src/dawn/common/ityp_vector.h +++ b/src/dawn/common/ityp_vector.h @@ -15,6 +15,7 @@ #ifndef SRC_DAWN_COMMON_ITYP_VECTOR_H_ #define SRC_DAWN_COMMON_ITYP_VECTOR_H_ +#include #include #include diff --git a/src/dawn/fuzzers/DawnWireServerAndD3D12BackendFuzzer.cpp b/src/dawn/fuzzers/DawnWireServerAndD3D12BackendFuzzer.cpp index 2eff9b4c62..a2cb8e2bc3 100644 --- a/src/dawn/fuzzers/DawnWireServerAndD3D12BackendFuzzer.cpp +++ b/src/dawn/fuzzers/DawnWireServerAndD3D12BackendFuzzer.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "DawnWireServerFuzzer.h" +#include +#include "DawnWireServerFuzzer.h" #include "dawn/native/DawnNative.h" #include "testing/libfuzzer/libfuzzer_exports.h" diff --git a/src/dawn/fuzzers/DawnWireServerAndFrontendFuzzer.cpp b/src/dawn/fuzzers/DawnWireServerAndFrontendFuzzer.cpp index 26e1cce09c..86a2b6bc4b 100644 --- a/src/dawn/fuzzers/DawnWireServerAndFrontendFuzzer.cpp +++ b/src/dawn/fuzzers/DawnWireServerAndFrontendFuzzer.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "DawnWireServerFuzzer.h" +#include +#include "DawnWireServerFuzzer.h" #include "dawn/common/Assert.h" #include "dawn/native/DawnNative.h" #include "testing/libfuzzer/libfuzzer_exports.h" diff --git a/src/dawn/fuzzers/DawnWireServerAndVulkanBackendFuzzer.cpp b/src/dawn/fuzzers/DawnWireServerAndVulkanBackendFuzzer.cpp index 157ce01dc1..1e55f06ff4 100644 --- a/src/dawn/fuzzers/DawnWireServerAndVulkanBackendFuzzer.cpp +++ b/src/dawn/fuzzers/DawnWireServerAndVulkanBackendFuzzer.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "DawnWireServerFuzzer.h" +#include +#include "DawnWireServerFuzzer.h" #include "dawn/native/DawnNative.h" #include "testing/libfuzzer/libfuzzer_exports.h" diff --git a/src/dawn/fuzzers/DawnWireServerFuzzer.cpp b/src/dawn/fuzzers/DawnWireServerFuzzer.cpp index 8b895047c6..5250d69cca 100644 --- a/src/dawn/fuzzers/DawnWireServerFuzzer.cpp +++ b/src/dawn/fuzzers/DawnWireServerFuzzer.cpp @@ -15,6 +15,7 @@ #include "dawn/fuzzers/DawnWireServerFuzzer.h" #include +#include #include #include "dawn/common/Assert.h" diff --git a/src/dawn/native/Adapter.cpp b/src/dawn/native/Adapter.cpp index 4c000ac1bf..c6b1039fbf 100644 --- a/src/dawn/native/Adapter.cpp +++ b/src/dawn/native/Adapter.cpp @@ -14,6 +14,9 @@ #include "dawn/native/Adapter.h" +#include +#include + #include "dawn/common/Constants.h" #include "dawn/native/Device.h" #include "dawn/native/Instance.h" diff --git a/src/dawn/native/AsyncTask.cpp b/src/dawn/native/AsyncTask.cpp index 2f764ef556..b1af966153 100644 --- a/src/dawn/native/AsyncTask.cpp +++ b/src/dawn/native/AsyncTask.cpp @@ -14,6 +14,8 @@ #include "dawn/native/AsyncTask.h" +#include + #include "dawn/platform/DawnPlatform.h" namespace dawn::native { diff --git a/src/dawn/native/BackendConnection.h b/src/dawn/native/BackendConnection.h index 26725dcbd3..d9f5dacdb2 100644 --- a/src/dawn/native/BackendConnection.h +++ b/src/dawn/native/BackendConnection.h @@ -16,6 +16,7 @@ #define SRC_DAWN_NATIVE_BACKENDCONNECTION_H_ #include +#include #include "dawn/native/Adapter.h" #include "dawn/native/DawnNative.h" diff --git a/src/dawn/native/BindGroup.h b/src/dawn/native/BindGroup.h index 839b71ef1e..482613655e 100644 --- a/src/dawn/native/BindGroup.h +++ b/src/dawn/native/BindGroup.h @@ -16,6 +16,7 @@ #define SRC_DAWN_NATIVE_BINDGROUP_H_ #include +#include #include "dawn/common/Constants.h" #include "dawn/common/Math.h" diff --git a/src/dawn/native/BindGroupLayout.cpp b/src/dawn/native/BindGroupLayout.cpp index 8774e007f2..742b8e8f6e 100644 --- a/src/dawn/native/BindGroupLayout.cpp +++ b/src/dawn/native/BindGroupLayout.cpp @@ -16,10 +16,11 @@ #include #include +#include #include +#include #include "dawn/common/BitSetIterator.h" - #include "dawn/native/ChainUtils_autogen.h" #include "dawn/native/Device.h" #include "dawn/native/ObjectBase.h" diff --git a/src/dawn/native/BindGroupLayout.h b/src/dawn/native/BindGroupLayout.h index 9bae62a07a..3b909d1c59 100644 --- a/src/dawn/native/BindGroupLayout.h +++ b/src/dawn/native/BindGroupLayout.h @@ -15,8 +15,10 @@ #ifndef SRC_DAWN_NATIVE_BINDGROUPLAYOUT_H_ #define SRC_DAWN_NATIVE_BINDGROUPLAYOUT_H_ +#include #include #include +#include #include "dawn/common/Constants.h" #include "dawn/common/Math.h" diff --git a/src/dawn/native/BindingInfo.h b/src/dawn/native/BindingInfo.h index b5a8497c03..1798eb6310 100644 --- a/src/dawn/native/BindingInfo.h +++ b/src/dawn/native/BindingInfo.h @@ -16,6 +16,7 @@ #define SRC_DAWN_NATIVE_BINDINGINFO_H_ #include +#include #include "dawn/common/Constants.h" #include "dawn/common/ityp_array.h" diff --git a/src/dawn/native/BuddyMemoryAllocator.cpp b/src/dawn/native/BuddyMemoryAllocator.cpp index faee03e2da..df3874e764 100644 --- a/src/dawn/native/BuddyMemoryAllocator.cpp +++ b/src/dawn/native/BuddyMemoryAllocator.cpp @@ -14,6 +14,8 @@ #include "dawn/native/BuddyMemoryAllocator.h" +#include + #include "dawn/common/Math.h" #include "dawn/native/ResourceHeapAllocator.h" diff --git a/src/dawn/native/Buffer.cpp b/src/dawn/native/Buffer.cpp index ff1310fe10..3a492fa100 100644 --- a/src/dawn/native/Buffer.cpp +++ b/src/dawn/native/Buffer.cpp @@ -16,6 +16,7 @@ #include #include +#include #include #include "dawn/common/Alloc.h" diff --git a/src/dawn/native/CallbackTaskManager.cpp b/src/dawn/native/CallbackTaskManager.cpp index a8be5cc744..d9589a79b3 100644 --- a/src/dawn/native/CallbackTaskManager.cpp +++ b/src/dawn/native/CallbackTaskManager.cpp @@ -14,6 +14,8 @@ #include "dawn/native/CallbackTaskManager.h" +#include + namespace dawn::native { bool CallbackTaskManager::IsEmpty() { diff --git a/src/dawn/native/CommandAllocator.h b/src/dawn/native/CommandAllocator.h index 8054d289b0..b9d4d15486 100644 --- a/src/dawn/native/CommandAllocator.h +++ b/src/dawn/native/CommandAllocator.h @@ -17,6 +17,7 @@ #include #include +#include #include #include "dawn/common/Assert.h" diff --git a/src/dawn/native/CommandBufferStateTracker.h b/src/dawn/native/CommandBufferStateTracker.h index d212876f64..5c87ea3b32 100644 --- a/src/dawn/native/CommandBufferStateTracker.h +++ b/src/dawn/native/CommandBufferStateTracker.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_COMMANDBUFFERSTATETRACKER_H_ #define SRC_DAWN_NATIVE_COMMANDBUFFERSTATETRACKER_H_ +#include + #include "dawn/common/Constants.h" #include "dawn/common/ityp_array.h" #include "dawn/common/ityp_bitset.h" diff --git a/src/dawn/native/CommandEncoder.cpp b/src/dawn/native/CommandEncoder.cpp index 7f516ab84e..8642a388a6 100644 --- a/src/dawn/native/CommandEncoder.cpp +++ b/src/dawn/native/CommandEncoder.cpp @@ -14,6 +14,9 @@ #include "dawn/native/CommandEncoder.h" +#include +#include + #include "dawn/common/BitSetIterator.h" #include "dawn/common/Math.h" #include "dawn/native/BindGroup.h" diff --git a/src/dawn/native/CommandEncoder.h b/src/dawn/native/CommandEncoder.h index 491f6eb007..1f70b403ee 100644 --- a/src/dawn/native/CommandEncoder.h +++ b/src/dawn/native/CommandEncoder.h @@ -15,6 +15,7 @@ #ifndef SRC_DAWN_NATIVE_COMMANDENCODER_H_ #define SRC_DAWN_NATIVE_COMMANDENCODER_H_ +#include #include #include "dawn/native/dawn_platform.h" diff --git a/src/dawn/native/CommandValidation.cpp b/src/dawn/native/CommandValidation.cpp index 44fbdf8582..56e226bb5a 100644 --- a/src/dawn/native/CommandValidation.cpp +++ b/src/dawn/native/CommandValidation.cpp @@ -14,6 +14,10 @@ #include "dawn/native/CommandValidation.h" +#include +#include +#include + #include "dawn/common/BitSetIterator.h" #include "dawn/native/BindGroup.h" #include "dawn/native/Buffer.h" diff --git a/src/dawn/native/Commands.h b/src/dawn/native/Commands.h index 0ab7dffe19..a75a407d5b 100644 --- a/src/dawn/native/Commands.h +++ b/src/dawn/native/Commands.h @@ -17,6 +17,7 @@ #include #include +#include #include "dawn/common/Constants.h" diff --git a/src/dawn/native/ComputePassEncoder.h b/src/dawn/native/ComputePassEncoder.h index a2bb08ff12..c7e18e2c1a 100644 --- a/src/dawn/native/ComputePassEncoder.h +++ b/src/dawn/native/ComputePassEncoder.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_NATIVE_COMPUTEPASSENCODER_H_ #define SRC_DAWN_NATIVE_COMPUTEPASSENCODER_H_ +#include +#include + #include "dawn/native/CommandBufferStateTracker.h" #include "dawn/native/Error.h" #include "dawn/native/Forward.h" diff --git a/src/dawn/native/CopyTextureForBrowserHelper.cpp b/src/dawn/native/CopyTextureForBrowserHelper.cpp index 3e7b4eb9e5..caae7c3bca 100644 --- a/src/dawn/native/CopyTextureForBrowserHelper.cpp +++ b/src/dawn/native/CopyTextureForBrowserHelper.cpp @@ -15,6 +15,7 @@ #include "dawn/native/CopyTextureForBrowserHelper.h" #include +#include #include "dawn/common/Log.h" #include "dawn/native/BindGroup.h" diff --git a/src/dawn/native/CreatePipelineAsyncTask.cpp b/src/dawn/native/CreatePipelineAsyncTask.cpp index 92a3bdf951..8a91ccd2e8 100644 --- a/src/dawn/native/CreatePipelineAsyncTask.cpp +++ b/src/dawn/native/CreatePipelineAsyncTask.cpp @@ -14,6 +14,8 @@ #include "dawn/native/CreatePipelineAsyncTask.h" +#include + #include "dawn/native/AsyncTask.h" #include "dawn/native/ComputePipeline.h" #include "dawn/native/Device.h" diff --git a/src/dawn/native/CreatePipelineAsyncTask.h b/src/dawn/native/CreatePipelineAsyncTask.h index 28497264c0..e6cfe27e4c 100644 --- a/src/dawn/native/CreatePipelineAsyncTask.h +++ b/src/dawn/native/CreatePipelineAsyncTask.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_NATIVE_CREATEPIPELINEASYNCTASK_H_ #define SRC_DAWN_NATIVE_CREATEPIPELINEASYNCTASK_H_ +#include +#include + #include "dawn/common/RefCounted.h" #include "dawn/native/CallbackTaskManager.h" #include "dawn/native/Error.h" diff --git a/src/dawn/native/DawnNative.cpp b/src/dawn/native/DawnNative.cpp index 136685c0f1..282e88e3a2 100644 --- a/src/dawn/native/DawnNative.cpp +++ b/src/dawn/native/DawnNative.cpp @@ -14,6 +14,8 @@ #include "dawn/native/DawnNative.h" +#include + #include "dawn/common/Log.h" #include "dawn/native/BindGroupLayout.h" #include "dawn/native/Buffer.h" diff --git a/src/dawn/native/Device.cpp b/src/dawn/native/Device.cpp index d4e593daae..947d078a75 100644 --- a/src/dawn/native/Device.cpp +++ b/src/dawn/native/Device.cpp @@ -14,6 +14,7 @@ #include "dawn/native/Device.h" +#include #include #include #include diff --git a/src/dawn/native/Device.h b/src/dawn/native/Device.h index 1f2a727091..604961f90a 100644 --- a/src/dawn/native/Device.h +++ b/src/dawn/native/Device.h @@ -15,8 +15,11 @@ #ifndef SRC_DAWN_NATIVE_DEVICE_H_ #define SRC_DAWN_NATIVE_DEVICE_H_ +#include #include +#include #include +#include #include "dawn/native/CacheKey.h" #include "dawn/native/Commands.h" diff --git a/src/dawn/native/DynamicUploader.cpp b/src/dawn/native/DynamicUploader.cpp index 56ef735e08..e1c0b6cb84 100644 --- a/src/dawn/native/DynamicUploader.cpp +++ b/src/dawn/native/DynamicUploader.cpp @@ -13,6 +13,9 @@ // limitations under the License. #include "dawn/native/DynamicUploader.h" + +#include + #include "dawn/common/Math.h" #include "dawn/native/Device.h" diff --git a/src/dawn/native/DynamicUploader.h b/src/dawn/native/DynamicUploader.h index c7b24a8c41..8148005a63 100644 --- a/src/dawn/native/DynamicUploader.h +++ b/src/dawn/native/DynamicUploader.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_NATIVE_DYNAMICUPLOADER_H_ #define SRC_DAWN_NATIVE_DYNAMICUPLOADER_H_ +#include +#include + #include "dawn/native/Forward.h" #include "dawn/native/IntegerTypes.h" #include "dawn/native/RingBufferAllocator.h" diff --git a/src/dawn/native/EncodingContext.h b/src/dawn/native/EncodingContext.h index 47c4875411..5b79aa3302 100644 --- a/src/dawn/native/EncodingContext.h +++ b/src/dawn/native/EncodingContext.h @@ -15,7 +15,10 @@ #ifndef SRC_DAWN_NATIVE_ENCODINGCONTEXT_H_ #define SRC_DAWN_NATIVE_ENCODINGCONTEXT_H_ +#include #include +#include +#include #include "dawn/native/CommandAllocator.h" #include "dawn/native/Error.h" diff --git a/src/dawn/native/Error.h b/src/dawn/native/Error.h index d71929ac55..9ab3ee2592 100644 --- a/src/dawn/native/Error.h +++ b/src/dawn/native/Error.h @@ -15,7 +15,9 @@ #ifndef SRC_DAWN_NATIVE_ERROR_H_ #define SRC_DAWN_NATIVE_ERROR_H_ +#include #include +#include #include "absl/strings/str_format.h" #include "dawn/common/Result.h" diff --git a/src/dawn/native/ErrorData.cpp b/src/dawn/native/ErrorData.cpp index 863d20ffc4..66f28dc3ea 100644 --- a/src/dawn/native/ErrorData.cpp +++ b/src/dawn/native/ErrorData.cpp @@ -14,6 +14,8 @@ #include "dawn/native/ErrorData.h" +#include + #include "dawn/native/Error.h" #include "dawn/native/ObjectBase.h" #include "dawn/native/dawn_platform.h" diff --git a/src/dawn/native/ErrorScope.cpp b/src/dawn/native/ErrorScope.cpp index 06b7a95472..78a6a49ca0 100644 --- a/src/dawn/native/ErrorScope.cpp +++ b/src/dawn/native/ErrorScope.cpp @@ -14,6 +14,8 @@ #include "dawn/native/ErrorScope.h" +#include + #include "dawn/common/Assert.h" namespace dawn::native { diff --git a/src/dawn/native/ExternalTexture.cpp b/src/dawn/native/ExternalTexture.cpp index 8d204c5fdf..a610004ad1 100644 --- a/src/dawn/native/ExternalTexture.cpp +++ b/src/dawn/native/ExternalTexture.cpp @@ -14,6 +14,8 @@ #include "dawn/native/ExternalTexture.h" +#include + #include "dawn/native/Buffer.h" #include "dawn/native/Device.h" #include "dawn/native/ObjectType_autogen.h" diff --git a/src/dawn/native/Features.cpp b/src/dawn/native/Features.cpp index 56a532c129..ee4404f3d7 100644 --- a/src/dawn/native/Features.cpp +++ b/src/dawn/native/Features.cpp @@ -12,11 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "dawn/native/Features.h" + #include +#include #include "dawn/common/Assert.h" #include "dawn/common/BitSetIterator.h" -#include "dawn/native/Features.h" namespace dawn::native { namespace { diff --git a/src/dawn/native/Features.h b/src/dawn/native/Features.h index 6a110a20ee..abd19c1b5a 100644 --- a/src/dawn/native/Features.h +++ b/src/dawn/native/Features.h @@ -16,6 +16,7 @@ #define SRC_DAWN_NATIVE_FEATURES_H_ #include +#include #include #include diff --git a/src/dawn/native/IndirectDrawValidationEncoder.cpp b/src/dawn/native/IndirectDrawValidationEncoder.cpp index d8325da33b..7a9b14f940 100644 --- a/src/dawn/native/IndirectDrawValidationEncoder.cpp +++ b/src/dawn/native/IndirectDrawValidationEncoder.cpp @@ -14,8 +14,12 @@ #include "dawn/native/IndirectDrawValidationEncoder.h" +#include #include #include +#include +#include +#include #include "dawn/common/Constants.h" #include "dawn/common/Math.h" diff --git a/src/dawn/native/Instance.cpp b/src/dawn/native/Instance.cpp index 92842f519d..fba8c2b50d 100644 --- a/src/dawn/native/Instance.cpp +++ b/src/dawn/native/Instance.cpp @@ -14,6 +14,8 @@ #include "dawn/native/Instance.h" +#include + #include "dawn/common/Assert.h" #include "dawn/common/GPUInfo.h" #include "dawn/common/Log.h" diff --git a/src/dawn/native/Instance.h b/src/dawn/native/Instance.h index b3fe0d11fc..82d7bacbe0 100644 --- a/src/dawn/native/Instance.h +++ b/src/dawn/native/Instance.h @@ -17,6 +17,7 @@ #include #include +#include #include #include diff --git a/src/dawn/native/PassResourceUsageTracker.h b/src/dawn/native/PassResourceUsageTracker.h index 97673197be..1864b2c828 100644 --- a/src/dawn/native/PassResourceUsageTracker.h +++ b/src/dawn/native/PassResourceUsageTracker.h @@ -16,6 +16,8 @@ #define SRC_DAWN_NATIVE_PASSRESOURCEUSAGETRACKER_H_ #include +#include +#include #include "dawn/native/PassResourceUsage.h" diff --git a/src/dawn/native/PersistentCache.h b/src/dawn/native/PersistentCache.h index 779964c803..71a76dd915 100644 --- a/src/dawn/native/PersistentCache.h +++ b/src/dawn/native/PersistentCache.h @@ -15,7 +15,9 @@ #ifndef SRC_DAWN_NATIVE_PERSISTENTCACHE_H_ #define SRC_DAWN_NATIVE_PERSISTENTCACHE_H_ +#include #include +#include #include #include "dawn/native/Error.h" diff --git a/src/dawn/native/Pipeline.cpp b/src/dawn/native/Pipeline.cpp index 344d948aba..ce181ee40e 100644 --- a/src/dawn/native/Pipeline.cpp +++ b/src/dawn/native/Pipeline.cpp @@ -14,6 +14,10 @@ #include "dawn/native/Pipeline.h" +#include +#include +#include + #include "dawn/native/BindGroupLayout.h" #include "dawn/native/Device.h" #include "dawn/native/ObjectBase.h" diff --git a/src/dawn/native/Pipeline.h b/src/dawn/native/Pipeline.h index 61a91a40f9..da7c95b681 100644 --- a/src/dawn/native/Pipeline.h +++ b/src/dawn/native/Pipeline.h @@ -17,6 +17,9 @@ #include #include +#include +#include +#include #include "dawn/native/CachedObject.h" #include "dawn/native/Forward.h" diff --git a/src/dawn/native/PipelineLayout.cpp b/src/dawn/native/PipelineLayout.cpp index 7faa2c0dec..afaf36a74a 100644 --- a/src/dawn/native/PipelineLayout.cpp +++ b/src/dawn/native/PipelineLayout.cpp @@ -14,6 +14,10 @@ #include "dawn/native/PipelineLayout.h" +#include +#include +#include + #include "dawn/common/Assert.h" #include "dawn/common/BitSetIterator.h" #include "dawn/common/ityp_stack_vec.h" diff --git a/src/dawn/native/PipelineLayout.h b/src/dawn/native/PipelineLayout.h index bc5a294555..c3a7821cb5 100644 --- a/src/dawn/native/PipelineLayout.h +++ b/src/dawn/native/PipelineLayout.h @@ -17,6 +17,8 @@ #include #include +#include +#include #include "dawn/common/Constants.h" #include "dawn/common/ityp_array.h" diff --git a/src/dawn/native/PooledResourceMemoryAllocator.cpp b/src/dawn/native/PooledResourceMemoryAllocator.cpp index 0a01a99ab5..0fb57724b6 100644 --- a/src/dawn/native/PooledResourceMemoryAllocator.cpp +++ b/src/dawn/native/PooledResourceMemoryAllocator.cpp @@ -13,6 +13,9 @@ // limitations under the License. #include "dawn/native/PooledResourceMemoryAllocator.h" + +#include + #include "dawn/native/Device.h" namespace dawn::native { diff --git a/src/dawn/native/PooledResourceMemoryAllocator.h b/src/dawn/native/PooledResourceMemoryAllocator.h index fcb7f6615a..b27ed6312c 100644 --- a/src/dawn/native/PooledResourceMemoryAllocator.h +++ b/src/dawn/native/PooledResourceMemoryAllocator.h @@ -16,6 +16,7 @@ #define SRC_DAWN_NATIVE_POOLEDRESOURCEMEMORYALLOCATOR_H_ #include +#include #include "dawn/common/SerialQueue.h" #include "dawn/native/ResourceHeapAllocator.h" diff --git a/src/dawn/native/QueryHelper.cpp b/src/dawn/native/QueryHelper.cpp index ea1f4f280b..151b423e3d 100644 --- a/src/dawn/native/QueryHelper.cpp +++ b/src/dawn/native/QueryHelper.cpp @@ -14,6 +14,7 @@ #include "dawn/native/QueryHelper.h" +#include #include #include "dawn/native/BindGroup.h" diff --git a/src/dawn/native/QuerySet.h b/src/dawn/native/QuerySet.h index f65972df02..4e5c363865 100644 --- a/src/dawn/native/QuerySet.h +++ b/src/dawn/native/QuerySet.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_QUERYSET_H_ #define SRC_DAWN_NATIVE_QUERYSET_H_ +#include + #include "dawn/native/Error.h" #include "dawn/native/Forward.h" #include "dawn/native/ObjectBase.h" diff --git a/src/dawn/native/Queue.cpp b/src/dawn/native/Queue.cpp index 31e8504044..9f26d2be97 100644 --- a/src/dawn/native/Queue.cpp +++ b/src/dawn/native/Queue.cpp @@ -14,7 +14,10 @@ #include "dawn/native/Queue.h" +#include #include +#include +#include #include "dawn/common/Constants.h" #include "dawn/native/Buffer.h" diff --git a/src/dawn/native/Queue.h b/src/dawn/native/Queue.h index fa186cf07e..ea3ffb47a7 100644 --- a/src/dawn/native/Queue.h +++ b/src/dawn/native/Queue.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_QUEUE_H_ #define SRC_DAWN_NATIVE_QUEUE_H_ +#include + #include "dawn/common/SerialQueue.h" #include "dawn/native/Error.h" #include "dawn/native/Forward.h" diff --git a/src/dawn/native/RenderBundle.cpp b/src/dawn/native/RenderBundle.cpp index da1018823b..730fc66666 100644 --- a/src/dawn/native/RenderBundle.cpp +++ b/src/dawn/native/RenderBundle.cpp @@ -14,6 +14,8 @@ #include "dawn/native/RenderBundle.h" +#include + #include "dawn/common/BitSetIterator.h" #include "dawn/native/Commands.h" #include "dawn/native/Device.h" diff --git a/src/dawn/native/RenderBundleEncoder.cpp b/src/dawn/native/RenderBundleEncoder.cpp index 6d7a2db41a..81fd0f9555 100644 --- a/src/dawn/native/RenderBundleEncoder.cpp +++ b/src/dawn/native/RenderBundleEncoder.cpp @@ -14,6 +14,8 @@ #include "dawn/native/RenderBundleEncoder.h" +#include + #include "dawn/native/CommandValidation.h" #include "dawn/native/Commands.h" #include "dawn/native/Device.h" diff --git a/src/dawn/native/RenderEncoderBase.cpp b/src/dawn/native/RenderEncoderBase.cpp index a443c68261..e2607fb0f5 100644 --- a/src/dawn/native/RenderEncoderBase.cpp +++ b/src/dawn/native/RenderEncoderBase.cpp @@ -16,6 +16,7 @@ #include #include +#include #include "dawn/common/Constants.h" #include "dawn/common/Log.h" diff --git a/src/dawn/native/RenderPassEncoder.cpp b/src/dawn/native/RenderPassEncoder.cpp index 0ea69d355d..1d35b481ad 100644 --- a/src/dawn/native/RenderPassEncoder.cpp +++ b/src/dawn/native/RenderPassEncoder.cpp @@ -16,6 +16,7 @@ #include #include +#include #include "dawn/common/Constants.h" #include "dawn/native/Buffer.h" diff --git a/src/dawn/native/RenderPassEncoder.h b/src/dawn/native/RenderPassEncoder.h index 757b46b658..c531caffea 100644 --- a/src/dawn/native/RenderPassEncoder.h +++ b/src/dawn/native/RenderPassEncoder.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_RENDERPASSENCODER_H_ #define SRC_DAWN_NATIVE_RENDERPASSENCODER_H_ +#include + #include "dawn/native/Error.h" #include "dawn/native/Forward.h" #include "dawn/native/RenderEncoderBase.h" diff --git a/src/dawn/native/RenderPipeline.cpp b/src/dawn/native/RenderPipeline.cpp index 79d4add164..4614a144fc 100644 --- a/src/dawn/native/RenderPipeline.cpp +++ b/src/dawn/native/RenderPipeline.cpp @@ -14,6 +14,7 @@ #include "dawn/native/RenderPipeline.h" +#include #include #include diff --git a/src/dawn/native/RenderPipeline.h b/src/dawn/native/RenderPipeline.h index e317764d6d..54fe9390dc 100644 --- a/src/dawn/native/RenderPipeline.h +++ b/src/dawn/native/RenderPipeline.h @@ -17,6 +17,7 @@ #include #include +#include #include "dawn/common/TypedInteger.h" #include "dawn/native/AttachmentState.h" diff --git a/src/dawn/native/RingBufferAllocator.cpp b/src/dawn/native/RingBufferAllocator.cpp index e1dc7aeb67..20e6505b0e 100644 --- a/src/dawn/native/RingBufferAllocator.cpp +++ b/src/dawn/native/RingBufferAllocator.cpp @@ -14,6 +14,8 @@ #include "dawn/native/RingBufferAllocator.h" +#include + // Note: Current RingBufferAllocator implementation uses two indices (start and end) to implement a // circular queue. However, this approach defines a full queue when one element is still unused. // diff --git a/src/dawn/native/ShaderModule.cpp b/src/dawn/native/ShaderModule.cpp index 59eb070287..fe8984df9b 100644 --- a/src/dawn/native/ShaderModule.cpp +++ b/src/dawn/native/ShaderModule.cpp @@ -14,6 +14,7 @@ #include "dawn/native/ShaderModule.h" +#include #include #include "absl/strings/str_format.h" diff --git a/src/dawn/native/ShaderModule.h b/src/dawn/native/ShaderModule.h index bb3f8bb03a..a080fa2320 100644 --- a/src/dawn/native/ShaderModule.h +++ b/src/dawn/native/ShaderModule.h @@ -17,8 +17,11 @@ #include #include +#include +#include #include #include +#include #include #include "dawn/common/Constants.h" diff --git a/src/dawn/native/SpirvValidation.cpp b/src/dawn/native/SpirvValidation.cpp index c65400cfbc..116e648b69 100644 --- a/src/dawn/native/SpirvValidation.cpp +++ b/src/dawn/native/SpirvValidation.cpp @@ -15,7 +15,9 @@ #include "dawn/native/SpirvValidation.h" #include + #include +#include #include "dawn/native/Device.h" diff --git a/src/dawn/native/Toggles.h b/src/dawn/native/Toggles.h index f197a8eafe..656a6026f5 100644 --- a/src/dawn/native/Toggles.h +++ b/src/dawn/native/Toggles.h @@ -16,6 +16,7 @@ #define SRC_DAWN_NATIVE_TOGGLES_H_ #include +#include #include #include diff --git a/src/dawn/native/d3d12/BackendD3D12.cpp b/src/dawn/native/d3d12/BackendD3D12.cpp index 27a98823b9..b09e9ce2f5 100644 --- a/src/dawn/native/d3d12/BackendD3D12.cpp +++ b/src/dawn/native/d3d12/BackendD3D12.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/BackendD3D12.h" +#include + #include "dawn/native/D3D12Backend.h" #include "dawn/native/Instance.h" #include "dawn/native/d3d12/AdapterD3D12.h" diff --git a/src/dawn/native/d3d12/BackendD3D12.h b/src/dawn/native/d3d12/BackendD3D12.h index 213f461d95..e403bce6e1 100644 --- a/src/dawn/native/d3d12/BackendD3D12.h +++ b/src/dawn/native/d3d12/BackendD3D12.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_NATIVE_D3D12_BACKENDD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_BACKENDD3D12_H_ +#include +#include + #include "dawn/native/BackendConnection.h" #include "dawn/native/d3d12/d3d12_platform.h" diff --git a/src/dawn/native/d3d12/BindGroupD3D12.cpp b/src/dawn/native/d3d12/BindGroupD3D12.cpp index f169345226..2a4da010a0 100644 --- a/src/dawn/native/d3d12/BindGroupD3D12.cpp +++ b/src/dawn/native/d3d12/BindGroupD3D12.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/BindGroupD3D12.h" +#include + #include "dawn/common/BitSetIterator.h" #include "dawn/native/ExternalTexture.h" #include "dawn/native/d3d12/BindGroupLayoutD3D12.h" diff --git a/src/dawn/native/d3d12/BindGroupLayoutD3D12.cpp b/src/dawn/native/d3d12/BindGroupLayoutD3D12.cpp index 4e586a0947..ebfd512eb0 100644 --- a/src/dawn/native/d3d12/BindGroupLayoutD3D12.cpp +++ b/src/dawn/native/d3d12/BindGroupLayoutD3D12.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/BindGroupLayoutD3D12.h" +#include + #include "dawn/common/BitSetIterator.h" #include "dawn/native/d3d12/BindGroupD3D12.h" #include "dawn/native/d3d12/DeviceD3D12.h" diff --git a/src/dawn/native/d3d12/BindGroupLayoutD3D12.h b/src/dawn/native/d3d12/BindGroupLayoutD3D12.h index 5a3596421d..0045831578 100644 --- a/src/dawn/native/d3d12/BindGroupLayoutD3D12.h +++ b/src/dawn/native/d3d12/BindGroupLayoutD3D12.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_D3D12_BINDGROUPLAYOUTD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_BINDGROUPLAYOUTD3D12_H_ +#include + #include "dawn/native/BindGroupLayout.h" #include "dawn/common/SlabAllocator.h" diff --git a/src/dawn/native/d3d12/BufferD3D12.cpp b/src/dawn/native/d3d12/BufferD3D12.cpp index 4b8fc6b5ad..ebb2339505 100644 --- a/src/dawn/native/d3d12/BufferD3D12.cpp +++ b/src/dawn/native/d3d12/BufferD3D12.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/BufferD3D12.h" +#include + #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" diff --git a/src/dawn/native/d3d12/BufferD3D12.h b/src/dawn/native/d3d12/BufferD3D12.h index cdca5600e9..4545f363e8 100644 --- a/src/dawn/native/d3d12/BufferD3D12.h +++ b/src/dawn/native/d3d12/BufferD3D12.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_D3D12_BUFFERD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_BUFFERD3D12_H_ +#include + #include "dawn/native/Buffer.h" #include "dawn/native/d3d12/ResourceHeapAllocationD3D12.h" diff --git a/src/dawn/native/d3d12/CommandBufferD3D12.cpp b/src/dawn/native/d3d12/CommandBufferD3D12.cpp index 2c74c0d662..a37f2573db 100644 --- a/src/dawn/native/d3d12/CommandBufferD3D12.cpp +++ b/src/dawn/native/d3d12/CommandBufferD3D12.cpp @@ -14,6 +14,10 @@ #include "dawn/native/d3d12/CommandBufferD3D12.h" +#include +#include +#include + #include "dawn/native/BindGroupTracker.h" #include "dawn/native/CommandValidation.h" #include "dawn/native/DynamicUploader.h" diff --git a/src/dawn/native/d3d12/CommandRecordingContext.cpp b/src/dawn/native/d3d12/CommandRecordingContext.cpp index 85bcbc5aff..121b64fe95 100644 --- a/src/dawn/native/d3d12/CommandRecordingContext.cpp +++ b/src/dawn/native/d3d12/CommandRecordingContext.cpp @@ -11,11 +11,15 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + #include "dawn/native/d3d12/CommandRecordingContext.h" #include #include +#include +#include + #include "dawn/native/d3d12/CommandAllocatorManager.h" #include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/DeviceD3D12.h" diff --git a/src/dawn/native/d3d12/CommandRecordingContext.h b/src/dawn/native/d3d12/CommandRecordingContext.h index 95afdae68d..610b99e087 100644 --- a/src/dawn/native/d3d12/CommandRecordingContext.h +++ b/src/dawn/native/d3d12/CommandRecordingContext.h @@ -15,6 +15,7 @@ #define SRC_DAWN_NATIVE_D3D12_COMMANDRECORDINGCONTEXT_H_ #include +#include #include "dawn/native/Error.h" #include "dawn/native/IntegerTypes.h" diff --git a/src/dawn/native/d3d12/ComputePipelineD3D12.cpp b/src/dawn/native/d3d12/ComputePipelineD3D12.cpp index 6df1049ffb..e3ec3157e5 100644 --- a/src/dawn/native/d3d12/ComputePipelineD3D12.cpp +++ b/src/dawn/native/d3d12/ComputePipelineD3D12.cpp @@ -14,6 +14,9 @@ #include "dawn/native/d3d12/ComputePipelineD3D12.h" +#include +#include + #include "dawn/native/CreatePipelineAsyncTask.h" #include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/DeviceD3D12.h" diff --git a/src/dawn/native/d3d12/D3D11on12Util.cpp b/src/dawn/native/d3d12/D3D11on12Util.cpp index 6e1b91769d..cca831b1f0 100644 --- a/src/dawn/native/d3d12/D3D11on12Util.cpp +++ b/src/dawn/native/d3d12/D3D11on12Util.cpp @@ -17,11 +17,12 @@ #include "dawn/native/d3d12/D3D11on12Util.h" +#include + #include "dawn/common/HashUtils.h" #include "dawn/common/Log.h" #include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/DeviceD3D12.h" - #include "dawn/native/D3D12Backend.h" namespace dawn::native::d3d12 { diff --git a/src/dawn/native/d3d12/D3D12Backend.cpp b/src/dawn/native/d3d12/D3D12Backend.cpp index 18d7145c83..a08918bab4 100644 --- a/src/dawn/native/d3d12/D3D12Backend.cpp +++ b/src/dawn/native/d3d12/D3D12Backend.cpp @@ -17,6 +17,9 @@ #include "dawn/native/D3D12Backend.h" +#include +#include + #include "dawn/common/Log.h" #include "dawn/common/Math.h" #include "dawn/common/SwapChainUtils.h" diff --git a/src/dawn/native/d3d12/D3D12Info.cpp b/src/dawn/native/d3d12/D3D12Info.cpp index ebd629b206..110074c583 100644 --- a/src/dawn/native/d3d12/D3D12Info.cpp +++ b/src/dawn/native/d3d12/D3D12Info.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/D3D12Info.h" +#include + #include "dawn/common/GPUInfo.h" #include "dawn/native/d3d12/AdapterD3D12.h" #include "dawn/native/d3d12/BackendD3D12.h" diff --git a/src/dawn/native/d3d12/DeviceD3D12.cpp b/src/dawn/native/d3d12/DeviceD3D12.cpp index a64030e2f8..8af38371e5 100644 --- a/src/dawn/native/d3d12/DeviceD3D12.cpp +++ b/src/dawn/native/d3d12/DeviceD3D12.cpp @@ -14,7 +14,10 @@ #include "dawn/native/d3d12/DeviceD3D12.h" +#include +#include #include +#include #include "dawn/common/GPUInfo.h" #include "dawn/native/DynamicUploader.h" diff --git a/src/dawn/native/d3d12/DeviceD3D12.h b/src/dawn/native/d3d12/DeviceD3D12.h index f8290f57a0..9bcd2b9091 100644 --- a/src/dawn/native/d3d12/DeviceD3D12.h +++ b/src/dawn/native/d3d12/DeviceD3D12.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_D3D12_DEVICED3D12_H_ #define SRC_DAWN_NATIVE_D3D12_DEVICED3D12_H_ +#include + #include "dawn/common/SerialQueue.h" #include "dawn/native/Device.h" #include "dawn/native/d3d12/CommandRecordingContext.h" diff --git a/src/dawn/native/d3d12/HeapAllocatorD3D12.cpp b/src/dawn/native/d3d12/HeapAllocatorD3D12.cpp index 5a26be305d..dccfceb9d8 100644 --- a/src/dawn/native/d3d12/HeapAllocatorD3D12.cpp +++ b/src/dawn/native/d3d12/HeapAllocatorD3D12.cpp @@ -13,6 +13,9 @@ // limitations under the License. #include "dawn/native/d3d12/HeapAllocatorD3D12.h" + +#include + #include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/HeapD3D12.h" diff --git a/src/dawn/native/d3d12/HeapAllocatorD3D12.h b/src/dawn/native/d3d12/HeapAllocatorD3D12.h index 3cc8ee06b0..e2e2a56510 100644 --- a/src/dawn/native/d3d12/HeapAllocatorD3D12.h +++ b/src/dawn/native/d3d12/HeapAllocatorD3D12.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_D3D12_HEAPALLOCATORD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_HEAPALLOCATORD3D12_H_ +#include + #include "dawn/native/D3D12Backend.h" #include "dawn/native/ResourceHeapAllocator.h" #include "dawn/native/d3d12/d3d12_platform.h" diff --git a/src/dawn/native/d3d12/HeapD3D12.cpp b/src/dawn/native/d3d12/HeapD3D12.cpp index 7426757dfd..ef17695782 100644 --- a/src/dawn/native/d3d12/HeapD3D12.cpp +++ b/src/dawn/native/d3d12/HeapD3D12.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/HeapD3D12.h" +#include + namespace dawn::native::d3d12 { Heap::Heap(ComPtr d3d12Pageable, MemorySegment memorySegment, uint64_t size) : Pageable(std::move(d3d12Pageable), memorySegment, size) { diff --git a/src/dawn/native/d3d12/PageableD3D12.cpp b/src/dawn/native/d3d12/PageableD3D12.cpp index 1394209270..0d7e3bd191 100644 --- a/src/dawn/native/d3d12/PageableD3D12.cpp +++ b/src/dawn/native/d3d12/PageableD3D12.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/PageableD3D12.h" +#include + namespace dawn::native::d3d12 { Pageable::Pageable(ComPtr d3d12Pageable, MemorySegment memorySegment, diff --git a/src/dawn/native/d3d12/PipelineLayoutD3D12.cpp b/src/dawn/native/d3d12/PipelineLayoutD3D12.cpp index 794a7634a1..8eef9baeb4 100644 --- a/src/dawn/native/d3d12/PipelineLayoutD3D12.cpp +++ b/src/dawn/native/d3d12/PipelineLayoutD3D12.cpp @@ -13,6 +13,8 @@ // limitations under the License. #include "dawn/native/d3d12/PipelineLayoutD3D12.h" + +#include #include #include "dawn/common/Assert.h" diff --git a/src/dawn/native/d3d12/PipelineLayoutD3D12.h b/src/dawn/native/d3d12/PipelineLayoutD3D12.h index a1db136fb7..99d3036e49 100644 --- a/src/dawn/native/d3d12/PipelineLayoutD3D12.h +++ b/src/dawn/native/d3d12/PipelineLayoutD3D12.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_D3D12_PIPELINELAYOUTD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_PIPELINELAYOUTD3D12_H_ +#include + #include "dawn/common/Constants.h" #include "dawn/common/ityp_array.h" #include "dawn/native/BindingInfo.h" diff --git a/src/dawn/native/d3d12/PlatformFunctions.cpp b/src/dawn/native/d3d12/PlatformFunctions.cpp index d2852ce4e5..5bcc182d52 100644 --- a/src/dawn/native/d3d12/PlatformFunctions.cpp +++ b/src/dawn/native/d3d12/PlatformFunctions.cpp @@ -15,8 +15,11 @@ #include "dawn/native/d3d12/PlatformFunctions.h" #include + +#include #include #include +#include #include "dawn/common/DynamicLib.h" diff --git a/src/dawn/native/d3d12/PlatformFunctions.h b/src/dawn/native/d3d12/PlatformFunctions.h index 65e553b0c0..f8e14e4739 100644 --- a/src/dawn/native/d3d12/PlatformFunctions.h +++ b/src/dawn/native/d3d12/PlatformFunctions.h @@ -17,6 +17,8 @@ #include +#include + #include "dawn/native/d3d12/d3d12_platform.h" #include "dawn/common/DynamicLib.h" diff --git a/src/dawn/native/d3d12/QuerySetD3D12.cpp b/src/dawn/native/d3d12/QuerySetD3D12.cpp index 458c23df18..d3264ac872 100644 --- a/src/dawn/native/d3d12/QuerySetD3D12.cpp +++ b/src/dawn/native/d3d12/QuerySetD3D12.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/QuerySetD3D12.h" +#include + #include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/UtilsD3D12.h" diff --git a/src/dawn/native/d3d12/RenderPassBuilderD3D12.cpp b/src/dawn/native/d3d12/RenderPassBuilderD3D12.cpp index fc4133108b..0c7a9c817c 100644 --- a/src/dawn/native/d3d12/RenderPassBuilderD3D12.cpp +++ b/src/dawn/native/d3d12/RenderPassBuilderD3D12.cpp @@ -14,11 +14,12 @@ #include "dawn/native/d3d12/RenderPassBuilderD3D12.h" +#include + #include "dawn/native/Format.h" #include "dawn/native/d3d12/CommandBufferD3D12.h" #include "dawn/native/d3d12/Forward.h" #include "dawn/native/d3d12/TextureD3D12.h" - #include "dawn/native/dawn_platform.h" namespace dawn::native::d3d12 { diff --git a/src/dawn/native/d3d12/RenderPipelineD3D12.cpp b/src/dawn/native/d3d12/RenderPipelineD3D12.cpp index 59dafef674..a3441fed09 100644 --- a/src/dawn/native/d3d12/RenderPipelineD3D12.cpp +++ b/src/dawn/native/d3d12/RenderPipelineD3D12.cpp @@ -16,6 +16,9 @@ #include +#include +#include + #include "dawn/common/Assert.h" #include "dawn/common/Log.h" #include "dawn/native/CreatePipelineAsyncTask.h" diff --git a/src/dawn/native/d3d12/ResidencyManagerD3D12.cpp b/src/dawn/native/d3d12/ResidencyManagerD3D12.cpp index b7aab2ccfd..67c1ba6cd9 100644 --- a/src/dawn/native/d3d12/ResidencyManagerD3D12.cpp +++ b/src/dawn/native/d3d12/ResidencyManagerD3D12.cpp @@ -14,6 +14,9 @@ #include "dawn/native/d3d12/ResidencyManagerD3D12.h" +#include +#include + #include "dawn/native/d3d12/AdapterD3D12.h" #include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/DeviceD3D12.h" diff --git a/src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.cpp b/src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.cpp index 5ed9c1d1d4..40d1731418 100644 --- a/src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.cpp +++ b/src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.cpp @@ -14,6 +14,9 @@ #include "dawn/native/d3d12/ResourceAllocatorManagerD3D12.h" +#include +#include + #include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/HeapAllocatorD3D12.h" diff --git a/src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.h b/src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.h index 20b3f3c3cc..0bde8fcd2f 100644 --- a/src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.h +++ b/src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.h @@ -16,6 +16,7 @@ #define SRC_DAWN_NATIVE_D3D12_RESOURCEALLOCATORMANAGERD3D12_H_ #include +#include #include "dawn/common/SerialQueue.h" #include "dawn/native/BuddyMemoryAllocator.h" diff --git a/src/dawn/native/d3d12/SamplerD3D12.cpp b/src/dawn/native/d3d12/SamplerD3D12.cpp index c656931947..d0c6bbc4c7 100644 --- a/src/dawn/native/d3d12/SamplerD3D12.cpp +++ b/src/dawn/native/d3d12/SamplerD3D12.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/SamplerD3D12.h" +#include + #include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/UtilsD3D12.h" diff --git a/src/dawn/native/d3d12/SamplerHeapCacheD3D12.cpp b/src/dawn/native/d3d12/SamplerHeapCacheD3D12.cpp index 4659b36e95..62e455d0aa 100644 --- a/src/dawn/native/d3d12/SamplerHeapCacheD3D12.cpp +++ b/src/dawn/native/d3d12/SamplerHeapCacheD3D12.cpp @@ -14,6 +14,8 @@ #include "dawn/native/d3d12/SamplerHeapCacheD3D12.h" +#include + #include "dawn/common/Assert.h" #include "dawn/common/HashUtils.h" #include "dawn/native/d3d12/BindGroupD3D12.h" diff --git a/src/dawn/native/d3d12/SamplerHeapCacheD3D12.h b/src/dawn/native/d3d12/SamplerHeapCacheD3D12.h index 9e7d581914..f58a970998 100644 --- a/src/dawn/native/d3d12/SamplerHeapCacheD3D12.h +++ b/src/dawn/native/d3d12/SamplerHeapCacheD3D12.h @@ -16,6 +16,7 @@ #define SRC_DAWN_NATIVE_D3D12_SAMPLERHEAPCACHED3D12_H_ #include +#include #include "dawn/common/RefCounted.h" #include "dawn/native/BindingInfo.h" diff --git a/src/dawn/native/d3d12/ShaderModuleD3D12.cpp b/src/dawn/native/d3d12/ShaderModuleD3D12.cpp index a1c9624fc8..1614bf5136 100644 --- a/src/dawn/native/d3d12/ShaderModuleD3D12.cpp +++ b/src/dawn/native/d3d12/ShaderModuleD3D12.cpp @@ -18,7 +18,11 @@ #include #include +#include #include +#include +#include +#include #include "dawn/common/Assert.h" #include "dawn/common/BitSetIterator.h" diff --git a/src/dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.cpp b/src/dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.cpp index 32d6cd6cb9..5eb1cf130e 100644 --- a/src/dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.cpp +++ b/src/dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.cpp @@ -13,6 +13,11 @@ // limitations under the License. #include "dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.h" + +#include +#include +#include + #include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/GPUDescriptorHeapAllocationD3D12.h" diff --git a/src/dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.h b/src/dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.h index ea7ecf80a9..96cda8af59 100644 --- a/src/dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.h +++ b/src/dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.h @@ -16,6 +16,7 @@ #define SRC_DAWN_NATIVE_D3D12_SHADERVISIBLEDESCRIPTORALLOCATORD3D12_H_ #include +#include #include "dawn/native/Error.h" #include "dawn/native/RingBufferAllocator.h" diff --git a/src/dawn/native/d3d12/StagingDescriptorAllocatorD3D12.cpp b/src/dawn/native/d3d12/StagingDescriptorAllocatorD3D12.cpp index b64da3007a..ccf06219ad 100644 --- a/src/dawn/native/d3d12/StagingDescriptorAllocatorD3D12.cpp +++ b/src/dawn/native/d3d12/StagingDescriptorAllocatorD3D12.cpp @@ -12,11 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/common/Math.h" +#include "dawn/native/d3d12/StagingDescriptorAllocatorD3D12.h" +#include + +#include "dawn/common/Math.h" #include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/DeviceD3D12.h" -#include "dawn/native/d3d12/StagingDescriptorAllocatorD3D12.h" namespace dawn::native::d3d12 { diff --git a/src/dawn/native/d3d12/StagingDescriptorAllocatorD3D12.h b/src/dawn/native/d3d12/StagingDescriptorAllocatorD3D12.h index 8599342c89..3b409e2af8 100644 --- a/src/dawn/native/d3d12/StagingDescriptorAllocatorD3D12.h +++ b/src/dawn/native/d3d12/StagingDescriptorAllocatorD3D12.h @@ -17,8 +17,9 @@ #include +#include "dawn/common/SerialQueue.h" #include "dawn/native/Error.h" - +#include "dawn/native/IntegerTypes.h" #include "dawn/native/d3d12/CPUDescriptorHeapAllocationD3D12.h" // |StagingDescriptorAllocator| allocates a fixed-size block of descriptors from a CPU diff --git a/src/dawn/native/d3d12/SwapChainD3D12.cpp b/src/dawn/native/d3d12/SwapChainD3D12.cpp index 9411e400b7..38d47d0eed 100644 --- a/src/dawn/native/d3d12/SwapChainD3D12.cpp +++ b/src/dawn/native/d3d12/SwapChainD3D12.cpp @@ -16,6 +16,8 @@ #include +#include + #include "dawn/dawn_wsi.h" #include "dawn/native/Surface.h" #include "dawn/native/d3d12/D3D12Error.h" diff --git a/src/dawn/native/d3d12/SwapChainD3D12.h b/src/dawn/native/d3d12/SwapChainD3D12.h index 4aff922694..dd59c18684 100644 --- a/src/dawn/native/d3d12/SwapChainD3D12.h +++ b/src/dawn/native/d3d12/SwapChainD3D12.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_D3D12_SWAPCHAIND3D12_H_ #define SRC_DAWN_NATIVE_D3D12_SWAPCHAIND3D12_H_ +#include + #include "dawn/native/SwapChain.h" #include "dawn/native/IntegerTypes.h" diff --git a/src/dawn/native/d3d12/TextureD3D12.cpp b/src/dawn/native/d3d12/TextureD3D12.cpp index 95983551da..77edd7f03e 100644 --- a/src/dawn/native/d3d12/TextureD3D12.cpp +++ b/src/dawn/native/d3d12/TextureD3D12.cpp @@ -14,6 +14,9 @@ #include "dawn/native/d3d12/TextureD3D12.h" +#include +#include + #include "dawn/common/Constants.h" #include "dawn/common/Math.h" #include "dawn/native/DynamicUploader.h" diff --git a/src/dawn/native/d3d12/TextureD3D12.h b/src/dawn/native/d3d12/TextureD3D12.h index 2a05e97e63..ba010eb8a0 100644 --- a/src/dawn/native/d3d12/TextureD3D12.h +++ b/src/dawn/native/d3d12/TextureD3D12.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_D3D12_TEXTURED3D12_H_ #define SRC_DAWN_NATIVE_D3D12_TEXTURED3D12_H_ +#include + #include "dawn/native/Texture.h" #include "dawn/native/DawnNative.h" diff --git a/src/dawn/native/d3d12/UtilsD3D12.cpp b/src/dawn/native/d3d12/UtilsD3D12.cpp index d7f51c3765..aa79a713d8 100644 --- a/src/dawn/native/d3d12/UtilsD3D12.cpp +++ b/src/dawn/native/d3d12/UtilsD3D12.cpp @@ -16,6 +16,8 @@ #include +#include + #include "dawn/common/Assert.h" #include "dawn/native/Format.h" #include "dawn/native/d3d12/BufferD3D12.h" diff --git a/src/dawn/native/d3d12/UtilsD3D12.h b/src/dawn/native/d3d12/UtilsD3D12.h index 912d1b7f34..6bb908d4f8 100644 --- a/src/dawn/native/d3d12/UtilsD3D12.h +++ b/src/dawn/native/d3d12/UtilsD3D12.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_D3D12_UTILSD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_UTILSD3D12_H_ +#include + #include "dawn/native/Commands.h" #include "dawn/native/d3d12/BufferD3D12.h" #include "dawn/native/d3d12/TextureCopySplitter.h" diff --git a/src/dawn/native/metal/BackendMTL.h b/src/dawn/native/metal/BackendMTL.h index 88608da447..7f160db3c4 100644 --- a/src/dawn/native/metal/BackendMTL.h +++ b/src/dawn/native/metal/BackendMTL.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_METAL_BACKENDMTL_H_ #define SRC_DAWN_NATIVE_METAL_BACKENDMTL_H_ +#include + #include "dawn/native/BackendConnection.h" namespace dawn::native::metal { diff --git a/src/dawn/native/metal/ComputePipelineMTL.h b/src/dawn/native/metal/ComputePipelineMTL.h index 3091d744a4..d6c9aa39ae 100644 --- a/src/dawn/native/metal/ComputePipelineMTL.h +++ b/src/dawn/native/metal/ComputePipelineMTL.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_METAL_COMPUTEPIPELINEMTL_H_ #define SRC_DAWN_NATIVE_METAL_COMPUTEPIPELINEMTL_H_ +#include + #include "dawn/native/ComputePipeline.h" #include "dawn/common/NSRef.h" diff --git a/src/dawn/native/metal/ShaderModuleMTL.h b/src/dawn/native/metal/ShaderModuleMTL.h index 89f1e54c62..560d8cf7ab 100644 --- a/src/dawn/native/metal/ShaderModuleMTL.h +++ b/src/dawn/native/metal/ShaderModuleMTL.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_NATIVE_METAL_SHADERMODULEMTL_H_ #define SRC_DAWN_NATIVE_METAL_SHADERMODULEMTL_H_ +#include +#include + #include "dawn/native/ShaderModule.h" #include "dawn/common/NSRef.h" diff --git a/src/dawn/native/null/DeviceNull.cpp b/src/dawn/native/null/DeviceNull.cpp index 8c61c23d0d..9ac02bbeb8 100644 --- a/src/dawn/native/null/DeviceNull.cpp +++ b/src/dawn/native/null/DeviceNull.cpp @@ -14,6 +14,9 @@ #include "dawn/native/null/DeviceNull.h" +#include +#include + #include "dawn/native/BackendConnection.h" #include "dawn/native/Commands.h" #include "dawn/native/ErrorData.h" diff --git a/src/dawn/native/null/DeviceNull.h b/src/dawn/native/null/DeviceNull.h index 299f44a8f2..1a7c1d73f0 100644 --- a/src/dawn/native/null/DeviceNull.h +++ b/src/dawn/native/null/DeviceNull.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_NATIVE_NULL_DEVICENULL_H_ #define SRC_DAWN_NATIVE_NULL_DEVICENULL_H_ +#include +#include + #include "dawn/native/Adapter.h" #include "dawn/native/BindGroup.h" #include "dawn/native/BindGroupLayout.h" diff --git a/src/dawn/native/opengl/BackendGL.cpp b/src/dawn/native/opengl/BackendGL.cpp index d7bf1b52f1..b440bbaca9 100644 --- a/src/dawn/native/opengl/BackendGL.cpp +++ b/src/dawn/native/opengl/BackendGL.cpp @@ -15,6 +15,8 @@ #include "dawn/native/opengl/BackendGL.h" #include +#include +#include #include "dawn/common/GPUInfo.h" #include "dawn/common/Log.h" diff --git a/src/dawn/native/opengl/BackendGL.h b/src/dawn/native/opengl/BackendGL.h index 8c3bd95985..def1201200 100644 --- a/src/dawn/native/opengl/BackendGL.h +++ b/src/dawn/native/opengl/BackendGL.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_OPENGL_BACKENDGL_H_ #define SRC_DAWN_NATIVE_OPENGL_BACKENDGL_H_ +#include + #include "dawn/native/BackendConnection.h" namespace dawn::native::opengl { diff --git a/src/dawn/native/opengl/BufferGL.cpp b/src/dawn/native/opengl/BufferGL.cpp index fde83bc0e4..2c97e077be 100644 --- a/src/dawn/native/opengl/BufferGL.cpp +++ b/src/dawn/native/opengl/BufferGL.cpp @@ -14,6 +14,10 @@ #include "dawn/native/opengl/BufferGL.h" +#include +#include +#include + #include "dawn/native/CommandBuffer.h" #include "dawn/native/opengl/DeviceGL.h" diff --git a/src/dawn/native/opengl/CommandBufferGL.cpp b/src/dawn/native/opengl/CommandBufferGL.cpp index 59df81c9f2..eeeeff1792 100644 --- a/src/dawn/native/opengl/CommandBufferGL.cpp +++ b/src/dawn/native/opengl/CommandBufferGL.cpp @@ -14,7 +14,9 @@ #include "dawn/native/opengl/CommandBufferGL.h" +#include #include +#include #include "dawn/native/BindGroup.h" #include "dawn/native/BindGroupTracker.h" diff --git a/src/dawn/native/opengl/DeviceGL.h b/src/dawn/native/opengl/DeviceGL.h index 7221cdaccb..cb7c8cbc63 100644 --- a/src/dawn/native/opengl/DeviceGL.h +++ b/src/dawn/native/opengl/DeviceGL.h @@ -15,7 +15,9 @@ #ifndef SRC_DAWN_NATIVE_OPENGL_DEVICEGL_H_ #define SRC_DAWN_NATIVE_OPENGL_DEVICEGL_H_ +#include #include +#include #include "dawn/native/dawn_platform.h" diff --git a/src/dawn/native/opengl/OpenGLFunctions.h b/src/dawn/native/opengl/OpenGLFunctions.h index 128e5ec213..47eb631ce6 100644 --- a/src/dawn/native/opengl/OpenGLFunctions.h +++ b/src/dawn/native/opengl/OpenGLFunctions.h @@ -15,6 +15,7 @@ #ifndef SRC_DAWN_NATIVE_OPENGL_OPENGLFUNCTIONS_H_ #define SRC_DAWN_NATIVE_OPENGL_OPENGLFUNCTIONS_H_ +#include #include #include "dawn/native/opengl/OpenGLFunctionsBase_autogen.h" diff --git a/src/dawn/native/opengl/OpenGLVersion.cpp b/src/dawn/native/opengl/OpenGLVersion.cpp index 60fffff2a6..74a7272146 100644 --- a/src/dawn/native/opengl/OpenGLVersion.cpp +++ b/src/dawn/native/opengl/OpenGLVersion.cpp @@ -15,6 +15,7 @@ #include "dawn/native/opengl/OpenGLVersion.h" #include +#include #include namespace dawn::native::opengl { diff --git a/src/dawn/native/opengl/PipelineGL.cpp b/src/dawn/native/opengl/PipelineGL.cpp index e8168599f2..06e5d83845 100644 --- a/src/dawn/native/opengl/PipelineGL.cpp +++ b/src/dawn/native/opengl/PipelineGL.cpp @@ -16,6 +16,7 @@ #include #include +#include #include "dawn/common/BitSetIterator.h" #include "dawn/native/BindGroupLayout.h" diff --git a/src/dawn/native/opengl/ShaderModuleGL.cpp b/src/dawn/native/opengl/ShaderModuleGL.cpp index 82adc14209..f1672faf32 100644 --- a/src/dawn/native/opengl/ShaderModuleGL.cpp +++ b/src/dawn/native/opengl/ShaderModuleGL.cpp @@ -15,6 +15,7 @@ #include "dawn/native/opengl/ShaderModuleGL.h" #include +#include #include "dawn/native/BindGroupLayout.h" #include "dawn/native/TintUtils.h" diff --git a/src/dawn/native/opengl/ShaderModuleGL.h b/src/dawn/native/opengl/ShaderModuleGL.h index ab8782af36..bb75150d0a 100644 --- a/src/dawn/native/opengl/ShaderModuleGL.h +++ b/src/dawn/native/opengl/ShaderModuleGL.h @@ -15,6 +15,11 @@ #ifndef SRC_DAWN_NATIVE_OPENGL_SHADERMODULEGL_H_ #define SRC_DAWN_NATIVE_OPENGL_SHADERMODULEGL_H_ +#include +#include +#include +#include + #include "dawn/native/ShaderModule.h" #include "dawn/native/opengl/opengl_platform.h" diff --git a/src/dawn/native/opengl/TextureGL.cpp b/src/dawn/native/opengl/TextureGL.cpp index d7f1c10a2a..051c6257d5 100644 --- a/src/dawn/native/opengl/TextureGL.cpp +++ b/src/dawn/native/opengl/TextureGL.cpp @@ -14,6 +14,8 @@ #include "dawn/native/opengl/TextureGL.h" +#include + #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" diff --git a/src/dawn/native/vulkan/AdapterVk.cpp b/src/dawn/native/vulkan/AdapterVk.cpp index 5862bf899b..ba8a045db2 100644 --- a/src/dawn/native/vulkan/AdapterVk.cpp +++ b/src/dawn/native/vulkan/AdapterVk.cpp @@ -14,6 +14,9 @@ #include "dawn/native/vulkan/AdapterVk.h" +#include +#include + #include "dawn/native/Limits.h" #include "dawn/native/vulkan/BackendVk.h" #include "dawn/native/vulkan/DeviceVk.h" diff --git a/src/dawn/native/vulkan/BackendVk.cpp b/src/dawn/native/vulkan/BackendVk.cpp index b7da247390..32bcd7e96d 100644 --- a/src/dawn/native/vulkan/BackendVk.cpp +++ b/src/dawn/native/vulkan/BackendVk.cpp @@ -14,6 +14,9 @@ #include "dawn/native/vulkan/BackendVk.h" +#include +#include + #include "dawn/common/BitSetIterator.h" #include "dawn/common/Log.h" #include "dawn/common/SystemUtils.h" diff --git a/src/dawn/native/vulkan/BackendVk.h b/src/dawn/native/vulkan/BackendVk.h index 15c558a5f4..85520d93f8 100644 --- a/src/dawn/native/vulkan/BackendVk.h +++ b/src/dawn/native/vulkan/BackendVk.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NATIVE_VULKAN_BACKENDVK_H_ #define SRC_DAWN_NATIVE_VULKAN_BACKENDVK_H_ +#include + #include "dawn/native/BackendConnection.h" #include "dawn/common/DynamicLib.h" diff --git a/src/dawn/native/vulkan/BindGroupLayoutVk.cpp b/src/dawn/native/vulkan/BindGroupLayoutVk.cpp index 664596d416..f6e8c6b4b0 100644 --- a/src/dawn/native/vulkan/BindGroupLayoutVk.cpp +++ b/src/dawn/native/vulkan/BindGroupLayoutVk.cpp @@ -15,6 +15,7 @@ #include "dawn/native/vulkan/BindGroupLayoutVk.h" #include +#include #include "dawn/common/BitSetIterator.h" #include "dawn/common/ityp_vector.h" diff --git a/src/dawn/native/vulkan/BufferVk.cpp b/src/dawn/native/vulkan/BufferVk.cpp index 2e6868df77..519402e145 100644 --- a/src/dawn/native/vulkan/BufferVk.cpp +++ b/src/dawn/native/vulkan/BufferVk.cpp @@ -14,7 +14,10 @@ #include "dawn/native/vulkan/BufferVk.h" +#include #include +#include +#include #include "dawn/native/CommandBuffer.h" #include "dawn/native/vulkan/DeviceVk.h" diff --git a/src/dawn/native/vulkan/CommandBufferVk.cpp b/src/dawn/native/vulkan/CommandBufferVk.cpp index e0de398cf2..97a9a0d51d 100644 --- a/src/dawn/native/vulkan/CommandBufferVk.cpp +++ b/src/dawn/native/vulkan/CommandBufferVk.cpp @@ -15,6 +15,7 @@ #include "dawn/native/vulkan/CommandBufferVk.h" #include +#include #include "dawn/native/BindGroupTracker.h" #include "dawn/native/CommandEncoder.h" diff --git a/src/dawn/native/vulkan/CommandRecordingContext.h b/src/dawn/native/vulkan/CommandRecordingContext.h index 94e2e04d8f..8399ba1b08 100644 --- a/src/dawn/native/vulkan/CommandRecordingContext.h +++ b/src/dawn/native/vulkan/CommandRecordingContext.h @@ -14,8 +14,9 @@ #ifndef SRC_DAWN_NATIVE_VULKAN_COMMANDRECORDINGCONTEXT_H_ #define SRC_DAWN_NATIVE_VULKAN_COMMANDRECORDINGCONTEXT_H_ -#include "dawn/common/vulkan_platform.h" +#include +#include "dawn/common/vulkan_platform.h" #include "dawn/native/vulkan/BufferVk.h" namespace dawn::native::vulkan { diff --git a/src/dawn/native/vulkan/ComputePipelineVk.cpp b/src/dawn/native/vulkan/ComputePipelineVk.cpp index 6f81515143..037e3306ad 100644 --- a/src/dawn/native/vulkan/ComputePipelineVk.cpp +++ b/src/dawn/native/vulkan/ComputePipelineVk.cpp @@ -14,7 +14,9 @@ #include "dawn/native/vulkan/ComputePipelineVk.h" +#include #include +#include #include "dawn/native/CreatePipelineAsyncTask.h" #include "dawn/native/vulkan/DeviceVk.h" diff --git a/src/dawn/native/vulkan/DescriptorSetAllocator.cpp b/src/dawn/native/vulkan/DescriptorSetAllocator.cpp index 0f89d61454..8063e58c44 100644 --- a/src/dawn/native/vulkan/DescriptorSetAllocator.cpp +++ b/src/dawn/native/vulkan/DescriptorSetAllocator.cpp @@ -14,6 +14,8 @@ #include "dawn/native/vulkan/DescriptorSetAllocator.h" +#include + #include "dawn/native/vulkan/BindGroupLayoutVk.h" #include "dawn/native/vulkan/DeviceVk.h" #include "dawn/native/vulkan/FencedDeleter.h" diff --git a/src/dawn/native/vulkan/DeviceVk.h b/src/dawn/native/vulkan/DeviceVk.h index df55d2cf4d..0d1ec9360b 100644 --- a/src/dawn/native/vulkan/DeviceVk.h +++ b/src/dawn/native/vulkan/DeviceVk.h @@ -17,9 +17,10 @@ #include #include +#include +#include #include "dawn/native/dawn_platform.h" - #include "dawn/common/SerialQueue.h" #include "dawn/native/Commands.h" #include "dawn/native/Device.h" diff --git a/src/dawn/native/vulkan/NativeSwapChainImplVk.h b/src/dawn/native/vulkan/NativeSwapChainImplVk.h index 5dc309fd2a..f639e6883d 100644 --- a/src/dawn/native/vulkan/NativeSwapChainImplVk.h +++ b/src/dawn/native/vulkan/NativeSwapChainImplVk.h @@ -15,10 +15,11 @@ #ifndef SRC_DAWN_NATIVE_VULKAN_NATIVESWAPCHAINIMPLVK_H_ #define SRC_DAWN_NATIVE_VULKAN_NATIVESWAPCHAINIMPLVK_H_ -#include "dawn/native/vulkan/VulkanInfo.h" +#include #include "dawn/dawn_wsi.h" #include "dawn/native/dawn_platform.h" +#include "dawn/native/vulkan/VulkanInfo.h" namespace dawn::native::vulkan { diff --git a/src/dawn/native/vulkan/QuerySetVk.cpp b/src/dawn/native/vulkan/QuerySetVk.cpp index 04895f083d..45d153c310 100644 --- a/src/dawn/native/vulkan/QuerySetVk.cpp +++ b/src/dawn/native/vulkan/QuerySetVk.cpp @@ -14,6 +14,9 @@ #include "dawn/native/vulkan/QuerySetVk.h" +#include +#include + #include "dawn/native/vulkan/DeviceVk.h" #include "dawn/native/vulkan/FencedDeleter.h" #include "dawn/native/vulkan/UtilsVulkan.h" diff --git a/src/dawn/native/vulkan/RenderPipelineVk.cpp b/src/dawn/native/vulkan/RenderPipelineVk.cpp index 3345a21359..febc7b673f 100644 --- a/src/dawn/native/vulkan/RenderPipelineVk.cpp +++ b/src/dawn/native/vulkan/RenderPipelineVk.cpp @@ -14,6 +14,10 @@ #include "dawn/native/vulkan/RenderPipelineVk.h" +#include +#include +#include + #include "dawn/native/CreatePipelineAsyncTask.h" #include "dawn/native/vulkan/DeviceVk.h" #include "dawn/native/vulkan/FencedDeleter.h" diff --git a/src/dawn/native/vulkan/ResourceMemoryAllocatorVk.cpp b/src/dawn/native/vulkan/ResourceMemoryAllocatorVk.cpp index 783300f0d8..1ec3526d66 100644 --- a/src/dawn/native/vulkan/ResourceMemoryAllocatorVk.cpp +++ b/src/dawn/native/vulkan/ResourceMemoryAllocatorVk.cpp @@ -14,6 +14,9 @@ #include "dawn/native/vulkan/ResourceMemoryAllocatorVk.h" +#include +#include + #include "dawn/common/Math.h" #include "dawn/native/BuddyMemoryAllocator.h" #include "dawn/native/ResourceHeapAllocator.h" diff --git a/src/dawn/native/vulkan/SamplerVk.cpp b/src/dawn/native/vulkan/SamplerVk.cpp index 629fd1bd51..bac9b92826 100644 --- a/src/dawn/native/vulkan/SamplerVk.cpp +++ b/src/dawn/native/vulkan/SamplerVk.cpp @@ -14,6 +14,8 @@ #include "dawn/native/vulkan/SamplerVk.h" +#include + #include "dawn/native/vulkan/DeviceVk.h" #include "dawn/native/vulkan/FencedDeleter.h" #include "dawn/native/vulkan/UtilsVulkan.h" diff --git a/src/dawn/native/vulkan/ShaderModuleVk.cpp b/src/dawn/native/vulkan/ShaderModuleVk.cpp index 6ea642ebcc..cb69cb0fce 100644 --- a/src/dawn/native/vulkan/ShaderModuleVk.cpp +++ b/src/dawn/native/vulkan/ShaderModuleVk.cpp @@ -16,6 +16,8 @@ #include +#include + #include "dawn/native/SpirvValidation.h" #include "dawn/native/TintUtils.h" #include "dawn/native/vulkan/BindGroupLayoutVk.h" @@ -26,7 +28,6 @@ #include "dawn/native/vulkan/VulkanError.h" #include "dawn/platform/DawnPlatform.h" #include "dawn/platform/tracing/TraceEvent.h" - #include "tint/tint.h" namespace dawn::native::vulkan { diff --git a/src/dawn/native/vulkan/ShaderModuleVk.h b/src/dawn/native/vulkan/ShaderModuleVk.h index 5de08c9d01..63e01060ad 100644 --- a/src/dawn/native/vulkan/ShaderModuleVk.h +++ b/src/dawn/native/vulkan/ShaderModuleVk.h @@ -19,6 +19,7 @@ #include // TODO(https://crbug.com/dawn/1379) Update cpplint and remove NOLINT #include // NOLINT(build/include_order)) +#include #include #include diff --git a/src/dawn/native/vulkan/SwapChainVk.cpp b/src/dawn/native/vulkan/SwapChainVk.cpp index 2da8168d75..f2e06796b6 100644 --- a/src/dawn/native/vulkan/SwapChainVk.cpp +++ b/src/dawn/native/vulkan/SwapChainVk.cpp @@ -15,6 +15,8 @@ #include "dawn/native/vulkan/SwapChainVk.h" #include +#include +#include #include "dawn/common/Compiler.h" #include "dawn/native/Instance.h" diff --git a/src/dawn/native/vulkan/TextureVk.cpp b/src/dawn/native/vulkan/TextureVk.cpp index 06dd6887b9..54287425b0 100644 --- a/src/dawn/native/vulkan/TextureVk.cpp +++ b/src/dawn/native/vulkan/TextureVk.cpp @@ -14,6 +14,8 @@ #include "dawn/native/vulkan/TextureVk.h" +#include + #include "dawn/common/Assert.h" #include "dawn/common/Math.h" #include "dawn/native/DynamicUploader.h" diff --git a/src/dawn/native/vulkan/TextureVk.h b/src/dawn/native/vulkan/TextureVk.h index c19d3b8df1..ae95729ea2 100644 --- a/src/dawn/native/vulkan/TextureVk.h +++ b/src/dawn/native/vulkan/TextureVk.h @@ -15,11 +15,13 @@ #ifndef SRC_DAWN_NATIVE_VULKAN_TEXTUREVK_H_ #define SRC_DAWN_NATIVE_VULKAN_TEXTUREVK_H_ -#include "dawn/native/Texture.h" +#include +#include #include "dawn/common/vulkan_platform.h" #include "dawn/native/PassResourceUsage.h" #include "dawn/native/ResourceMemoryAllocation.h" +#include "dawn/native/Texture.h" #include "dawn/native/vulkan/ExternalHandle.h" #include "dawn/native/vulkan/external_memory/MemoryService.h" diff --git a/src/dawn/native/vulkan/UtilsVulkan.h b/src/dawn/native/vulkan/UtilsVulkan.h index 4d2c0c1c85..3377f756bd 100644 --- a/src/dawn/native/vulkan/UtilsVulkan.h +++ b/src/dawn/native/vulkan/UtilsVulkan.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_NATIVE_VULKAN_UTILSVULKAN_H_ #define SRC_DAWN_NATIVE_VULKAN_UTILSVULKAN_H_ +#include +#include + #include "dawn/common/vulkan_platform.h" #include "dawn/native/Commands.h" #include "dawn/native/dawn_platform.h" diff --git a/src/dawn/native/vulkan/VulkanExtensions.h b/src/dawn/native/vulkan/VulkanExtensions.h index 6ef8e4bb1b..117c722bc5 100644 --- a/src/dawn/native/vulkan/VulkanExtensions.h +++ b/src/dawn/native/vulkan/VulkanExtensions.h @@ -15,6 +15,7 @@ #ifndef SRC_DAWN_NATIVE_VULKAN_VULKANEXTENSIONS_H_ #define SRC_DAWN_NATIVE_VULKAN_VULKANEXTENSIONS_H_ +#include #include #include "dawn/common/ityp_bitset.h" diff --git a/src/dawn/native/vulkan/VulkanFunctions.cpp b/src/dawn/native/vulkan/VulkanFunctions.cpp index 48e970994a..0bdfcb910d 100644 --- a/src/dawn/native/vulkan/VulkanFunctions.cpp +++ b/src/dawn/native/vulkan/VulkanFunctions.cpp @@ -14,6 +14,8 @@ #include "dawn/native/vulkan/VulkanFunctions.h" +#include + #include "dawn/common/DynamicLib.h" #include "dawn/native/vulkan/VulkanInfo.h" diff --git a/src/dawn/native/vulkan/VulkanInfo.cpp b/src/dawn/native/vulkan/VulkanInfo.cpp index 9355e392b0..9b33fb2816 100644 --- a/src/dawn/native/vulkan/VulkanInfo.cpp +++ b/src/dawn/native/vulkan/VulkanInfo.cpp @@ -15,6 +15,9 @@ #include "dawn/native/vulkan/VulkanInfo.h" #include +#include +#include +#include #include "dawn/native/vulkan/AdapterVk.h" #include "dawn/native/vulkan/BackendVk.h" diff --git a/src/dawn/native/vulkan/external_memory/MemoryServiceDmaBuf.cpp b/src/dawn/native/vulkan/external_memory/MemoryServiceDmaBuf.cpp index 675e782059..3cd6d92d97 100644 --- a/src/dawn/native/vulkan/external_memory/MemoryServiceDmaBuf.cpp +++ b/src/dawn/native/vulkan/external_memory/MemoryServiceDmaBuf.cpp @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include "dawn/common/Assert.h" #include "dawn/native/vulkan/AdapterVk.h" #include "dawn/native/vulkan/BackendVk.h" diff --git a/src/dawn/native/vulkan/external_semaphore/SemaphoreServiceFD.cpp b/src/dawn/native/vulkan/external_semaphore/SemaphoreServiceFD.cpp index 7e2b619f5c..a234b875fd 100644 --- a/src/dawn/native/vulkan/external_semaphore/SemaphoreServiceFD.cpp +++ b/src/dawn/native/vulkan/external_semaphore/SemaphoreServiceFD.cpp @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include "dawn/native/vulkan/AdapterVk.h" #include "dawn/native/vulkan/BackendVk.h" #include "dawn/native/vulkan/DeviceVk.h" diff --git a/src/dawn/native/vulkan/external_semaphore/SemaphoreServiceZirconHandle.cpp b/src/dawn/native/vulkan/external_semaphore/SemaphoreServiceZirconHandle.cpp index 03fa79c65d..3a1a5bcdbb 100644 --- a/src/dawn/native/vulkan/external_semaphore/SemaphoreServiceZirconHandle.cpp +++ b/src/dawn/native/vulkan/external_semaphore/SemaphoreServiceZirconHandle.cpp @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include "dawn/native/vulkan/AdapterVk.h" #include "dawn/native/vulkan/BackendVk.h" #include "dawn/native/vulkan/DeviceVk.h" diff --git a/src/dawn/native/webgpu_absl_format.cpp b/src/dawn/native/webgpu_absl_format.cpp index e42ec8977a..f50d6b0f12 100644 --- a/src/dawn/native/webgpu_absl_format.cpp +++ b/src/dawn/native/webgpu_absl_format.cpp @@ -14,6 +14,8 @@ #include "dawn/native/webgpu_absl_format.h" +#include + #include "dawn/native/AttachmentState.h" #include "dawn/native/BindingInfo.h" #include "dawn/native/Device.h" diff --git a/src/dawn/node/Module.cpp b/src/dawn/node/Module.cpp index f87631b0e5..e5879bf25d 100644 --- a/src/dawn/node/Module.cpp +++ b/src/dawn/node/Module.cpp @@ -12,6 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include +#include +#include +#include + #include "dawn/dawn_proc.h" #include "src/dawn/node/binding/Flags.h" #include "src/dawn/node/binding/GPU.h" diff --git a/src/dawn/node/binding/AsyncRunner.h b/src/dawn/node/binding/AsyncRunner.h index 728c4b3e01..f01d39411e 100644 --- a/src/dawn/node/binding/AsyncRunner.h +++ b/src/dawn/node/binding/AsyncRunner.h @@ -17,9 +17,9 @@ #include #include +#include #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" namespace wgpu::binding { diff --git a/src/dawn/node/binding/Converter.h b/src/dawn/node/binding/Converter.h index 2a32fbfcea..2f08b1c364 100644 --- a/src/dawn/node/binding/Converter.h +++ b/src/dawn/node/binding/Converter.h @@ -16,11 +16,14 @@ #define SRC_DAWN_NODE_BINDING_CONVERTER_H_ #include +#include #include +#include +#include +#include #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/binding/Errors.h" #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/Errors.h b/src/dawn/node/binding/Errors.h index 640a702418..6d682751fe 100644 --- a/src/dawn/node/binding/Errors.h +++ b/src/dawn/node/binding/Errors.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_NODE_BINDING_ERRORS_H_ #define SRC_DAWN_NODE_BINDING_ERRORS_H_ +#include + #include "src/dawn/node/interop/Napi.h" namespace wgpu::binding { diff --git a/src/dawn/node/binding/GPU.cpp b/src/dawn/node/binding/GPU.cpp index d0a90e0091..903ae136a0 100644 --- a/src/dawn/node/binding/GPU.cpp +++ b/src/dawn/node/binding/GPU.cpp @@ -14,7 +14,10 @@ #include "src/dawn/node/binding/GPU.h" +#include #include +#include +#include #include "src/dawn/node/binding/GPUAdapter.h" diff --git a/src/dawn/node/binding/GPUAdapter.cpp b/src/dawn/node/binding/GPUAdapter.cpp index b2e90f80c0..00ff95322f 100644 --- a/src/dawn/node/binding/GPUAdapter.cpp +++ b/src/dawn/node/binding/GPUAdapter.cpp @@ -15,6 +15,7 @@ #include "src/dawn/node/binding/GPUAdapter.h" #include +#include #include "src/dawn/node/binding/Errors.h" #include "src/dawn/node/binding/Flags.h" diff --git a/src/dawn/node/binding/GPUAdapter.h b/src/dawn/node/binding/GPUAdapter.h index 4a071399c9..e3ea737603 100644 --- a/src/dawn/node/binding/GPUAdapter.h +++ b/src/dawn/node/binding/GPUAdapter.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUADAPTER_H_ #define SRC_DAWN_NODE_BINDING_GPUADAPTER_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUBindGroup.cpp b/src/dawn/node/binding/GPUBindGroup.cpp index 1170cefa6f..20b87d7024 100644 --- a/src/dawn/node/binding/GPUBindGroup.cpp +++ b/src/dawn/node/binding/GPUBindGroup.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUBindGroup.h" +#include + #include "src/dawn/node/utils/Debug.h" namespace wgpu::binding { diff --git a/src/dawn/node/binding/GPUBindGroup.h b/src/dawn/node/binding/GPUBindGroup.h index 285102f7c4..ebd40cd809 100644 --- a/src/dawn/node/binding/GPUBindGroup.h +++ b/src/dawn/node/binding/GPUBindGroup.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUBINDGROUP_H_ #define SRC_DAWN_NODE_BINDING_GPUBINDGROUP_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUBindGroupLayout.cpp b/src/dawn/node/binding/GPUBindGroupLayout.cpp index 5642150385..64f0ef92dc 100644 --- a/src/dawn/node/binding/GPUBindGroupLayout.cpp +++ b/src/dawn/node/binding/GPUBindGroupLayout.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUBindGroupLayout.h" +#include + #include "src/dawn/node/utils/Debug.h" namespace wgpu::binding { diff --git a/src/dawn/node/binding/GPUBindGroupLayout.h b/src/dawn/node/binding/GPUBindGroupLayout.h index 4d2a2d5d4f..3d8855d7a4 100644 --- a/src/dawn/node/binding/GPUBindGroupLayout.h +++ b/src/dawn/node/binding/GPUBindGroupLayout.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUBINDGROUPLAYOUT_H_ #define SRC_DAWN_NODE_BINDING_GPUBINDGROUPLAYOUT_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUBuffer.cpp b/src/dawn/node/binding/GPUBuffer.cpp index b75d9ff02c..64bc7d0965 100644 --- a/src/dawn/node/binding/GPUBuffer.cpp +++ b/src/dawn/node/binding/GPUBuffer.cpp @@ -15,6 +15,7 @@ #include "src/dawn/node/binding/GPUBuffer.h" #include +#include #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/binding/Errors.h" diff --git a/src/dawn/node/binding/GPUBuffer.h b/src/dawn/node/binding/GPUBuffer.h index 953c7c158d..e62900cb84 100644 --- a/src/dawn/node/binding/GPUBuffer.h +++ b/src/dawn/node/binding/GPUBuffer.h @@ -15,9 +15,12 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUBUFFER_H_ #define SRC_DAWN_NODE_BINDING_GPUBUFFER_H_ +#include +#include +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/binding/AsyncRunner.h" #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUCommandBuffer.cpp b/src/dawn/node/binding/GPUCommandBuffer.cpp index ac86c1dccd..5ee35a3be5 100644 --- a/src/dawn/node/binding/GPUCommandBuffer.cpp +++ b/src/dawn/node/binding/GPUCommandBuffer.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUCommandBuffer.h" +#include + #include "src/dawn/node/utils/Debug.h" namespace wgpu::binding { diff --git a/src/dawn/node/binding/GPUCommandBuffer.h b/src/dawn/node/binding/GPUCommandBuffer.h index 90720c8774..ce4fee429e 100644 --- a/src/dawn/node/binding/GPUCommandBuffer.h +++ b/src/dawn/node/binding/GPUCommandBuffer.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUCOMMANDBUFFER_H_ #define SRC_DAWN_NODE_BINDING_GPUCOMMANDBUFFER_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUCommandEncoder.cpp b/src/dawn/node/binding/GPUCommandEncoder.cpp index b707966280..90d8d6cbad 100644 --- a/src/dawn/node/binding/GPUCommandEncoder.cpp +++ b/src/dawn/node/binding/GPUCommandEncoder.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUCommandEncoder.h" +#include + #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/binding/GPU.h" #include "src/dawn/node/binding/GPUBuffer.h" diff --git a/src/dawn/node/binding/GPUCommandEncoder.h b/src/dawn/node/binding/GPUCommandEncoder.h index 355993e1cd..aec60c0655 100644 --- a/src/dawn/node/binding/GPUCommandEncoder.h +++ b/src/dawn/node/binding/GPUCommandEncoder.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUCOMMANDENCODER_H_ #define SRC_DAWN_NODE_BINDING_GPUCOMMANDENCODER_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUComputePassEncoder.cpp b/src/dawn/node/binding/GPUComputePassEncoder.cpp index b08518ed72..7caf387872 100644 --- a/src/dawn/node/binding/GPUComputePassEncoder.cpp +++ b/src/dawn/node/binding/GPUComputePassEncoder.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUComputePassEncoder.h" +#include + #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/binding/GPUBindGroup.h" #include "src/dawn/node/binding/GPUBuffer.h" diff --git a/src/dawn/node/binding/GPUComputePassEncoder.h b/src/dawn/node/binding/GPUComputePassEncoder.h index 96a0474592..7a01482cdb 100644 --- a/src/dawn/node/binding/GPUComputePassEncoder.h +++ b/src/dawn/node/binding/GPUComputePassEncoder.h @@ -15,9 +15,11 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUCOMPUTEPASSENCODER_H_ #define SRC_DAWN_NODE_BINDING_GPUCOMPUTEPASSENCODER_H_ +#include +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUComputePipeline.cpp b/src/dawn/node/binding/GPUComputePipeline.cpp index 9ae09241e6..c4376bc5e2 100644 --- a/src/dawn/node/binding/GPUComputePipeline.cpp +++ b/src/dawn/node/binding/GPUComputePipeline.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUComputePipeline.h" +#include + #include "src/dawn/node/binding/GPUBindGroupLayout.h" #include "src/dawn/node/binding/GPUBuffer.h" #include "src/dawn/node/utils/Debug.h" diff --git a/src/dawn/node/binding/GPUComputePipeline.h b/src/dawn/node/binding/GPUComputePipeline.h index 8864d9d09f..25d0e4799a 100644 --- a/src/dawn/node/binding/GPUComputePipeline.h +++ b/src/dawn/node/binding/GPUComputePipeline.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUCOMPUTEPIPELINE_H_ #define SRC_DAWN_NODE_BINDING_GPUCOMPUTEPIPELINE_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUDevice.cpp b/src/dawn/node/binding/GPUDevice.cpp index 322e1c7ea3..fa91124572 100644 --- a/src/dawn/node/binding/GPUDevice.cpp +++ b/src/dawn/node/binding/GPUDevice.cpp @@ -15,6 +15,8 @@ #include "src/dawn/node/binding/GPUDevice.h" #include +#include +#include #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/binding/Errors.h" diff --git a/src/dawn/node/binding/GPUDevice.h b/src/dawn/node/binding/GPUDevice.h index 9dc249cb41..eb456d78a2 100644 --- a/src/dawn/node/binding/GPUDevice.h +++ b/src/dawn/node/binding/GPUDevice.h @@ -15,8 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUDEVICE_H_ #define SRC_DAWN_NODE_BINDING_GPUDEVICE_H_ -#include "dawn/webgpu_cpp.h" +#include +#include +#include "dawn/webgpu_cpp.h" #include "src/dawn/node/binding/AsyncRunner.h" #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUPipelineLayout.cpp b/src/dawn/node/binding/GPUPipelineLayout.cpp index 4e0b5a9ef2..91e75f69e1 100644 --- a/src/dawn/node/binding/GPUPipelineLayout.cpp +++ b/src/dawn/node/binding/GPUPipelineLayout.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUPipelineLayout.h" +#include + #include "src/dawn/node/utils/Debug.h" namespace wgpu::binding { diff --git a/src/dawn/node/binding/GPUPipelineLayout.h b/src/dawn/node/binding/GPUPipelineLayout.h index d99061f143..676ce275a0 100644 --- a/src/dawn/node/binding/GPUPipelineLayout.h +++ b/src/dawn/node/binding/GPUPipelineLayout.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUPIPELINELAYOUT_H_ #define SRC_DAWN_NODE_BINDING_GPUPIPELINELAYOUT_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUQuerySet.cpp b/src/dawn/node/binding/GPUQuerySet.cpp index e9f0e3f979..fbf6874729 100644 --- a/src/dawn/node/binding/GPUQuerySet.cpp +++ b/src/dawn/node/binding/GPUQuerySet.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUQuerySet.h" +#include + #include "src/dawn/node/utils/Debug.h" namespace wgpu::binding { diff --git a/src/dawn/node/binding/GPUQuerySet.h b/src/dawn/node/binding/GPUQuerySet.h index f00226bc28..721fe3a3fa 100644 --- a/src/dawn/node/binding/GPUQuerySet.h +++ b/src/dawn/node/binding/GPUQuerySet.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUQUERYSET_H_ #define SRC_DAWN_NODE_BINDING_GPUQUERYSET_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUQueue.cpp b/src/dawn/node/binding/GPUQueue.cpp index 2e01ad47d6..5afffb3b48 100644 --- a/src/dawn/node/binding/GPUQueue.cpp +++ b/src/dawn/node/binding/GPUQueue.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/binding/GPUBuffer.h" diff --git a/src/dawn/node/binding/GPUQueue.h b/src/dawn/node/binding/GPUQueue.h index 3710405f7a..b579497a34 100644 --- a/src/dawn/node/binding/GPUQueue.h +++ b/src/dawn/node/binding/GPUQueue.h @@ -15,9 +15,12 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUQUEUE_H_ #define SRC_DAWN_NODE_BINDING_GPUQUEUE_H_ +#include +#include +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/binding/AsyncRunner.h" #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPURenderBundle.cpp b/src/dawn/node/binding/GPURenderBundle.cpp index e2c786ee19..9ebc2c429d 100644 --- a/src/dawn/node/binding/GPURenderBundle.cpp +++ b/src/dawn/node/binding/GPURenderBundle.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPURenderBundle.h" +#include + #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/binding/GPUBuffer.h" #include "src/dawn/node/binding/GPURenderPipeline.h" diff --git a/src/dawn/node/binding/GPURenderBundle.h b/src/dawn/node/binding/GPURenderBundle.h index 8804f4725e..dfdc127261 100644 --- a/src/dawn/node/binding/GPURenderBundle.h +++ b/src/dawn/node/binding/GPURenderBundle.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPURENDERBUNDLE_H_ #define SRC_DAWN_NODE_BINDING_GPURENDERBUNDLE_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPURenderBundleEncoder.cpp b/src/dawn/node/binding/GPURenderBundleEncoder.cpp index 87ecd34745..b48d6490c3 100644 --- a/src/dawn/node/binding/GPURenderBundleEncoder.cpp +++ b/src/dawn/node/binding/GPURenderBundleEncoder.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPURenderBundleEncoder.h" +#include + #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/binding/GPUBindGroup.h" #include "src/dawn/node/binding/GPUBuffer.h" diff --git a/src/dawn/node/binding/GPURenderBundleEncoder.h b/src/dawn/node/binding/GPURenderBundleEncoder.h index b86b89205f..d90f0814bb 100644 --- a/src/dawn/node/binding/GPURenderBundleEncoder.h +++ b/src/dawn/node/binding/GPURenderBundleEncoder.h @@ -15,9 +15,11 @@ #ifndef SRC_DAWN_NODE_BINDING_GPURENDERBUNDLEENCODER_H_ #define SRC_DAWN_NODE_BINDING_GPURENDERBUNDLEENCODER_H_ +#include +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPURenderPassEncoder.cpp b/src/dawn/node/binding/GPURenderPassEncoder.cpp index 0297d65d66..0edbb90e35 100644 --- a/src/dawn/node/binding/GPURenderPassEncoder.cpp +++ b/src/dawn/node/binding/GPURenderPassEncoder.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPURenderPassEncoder.h" +#include + #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/binding/GPUBindGroup.h" #include "src/dawn/node/binding/GPUBuffer.h" diff --git a/src/dawn/node/binding/GPURenderPassEncoder.h b/src/dawn/node/binding/GPURenderPassEncoder.h index 97909d71a5..73d07bc93b 100644 --- a/src/dawn/node/binding/GPURenderPassEncoder.h +++ b/src/dawn/node/binding/GPURenderPassEncoder.h @@ -15,9 +15,11 @@ #ifndef SRC_DAWN_NODE_BINDING_GPURENDERPASSENCODER_H_ #define SRC_DAWN_NODE_BINDING_GPURENDERPASSENCODER_H_ +#include +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPURenderPipeline.cpp b/src/dawn/node/binding/GPURenderPipeline.cpp index 8618f1fc3b..31bb0e47d9 100644 --- a/src/dawn/node/binding/GPURenderPipeline.cpp +++ b/src/dawn/node/binding/GPURenderPipeline.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPURenderPipeline.h" +#include + #include "src/dawn/node/binding/GPUBindGroupLayout.h" #include "src/dawn/node/binding/GPUBuffer.h" #include "src/dawn/node/utils/Debug.h" diff --git a/src/dawn/node/binding/GPURenderPipeline.h b/src/dawn/node/binding/GPURenderPipeline.h index f1b7cb4628..a279bf5d67 100644 --- a/src/dawn/node/binding/GPURenderPipeline.h +++ b/src/dawn/node/binding/GPURenderPipeline.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPURENDERPIPELINE_H_ #define SRC_DAWN_NODE_BINDING_GPURENDERPIPELINE_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUSampler.cpp b/src/dawn/node/binding/GPUSampler.cpp index c1076e961f..6bca632973 100644 --- a/src/dawn/node/binding/GPUSampler.cpp +++ b/src/dawn/node/binding/GPUSampler.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUSampler.h" +#include + #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/utils/Debug.h" diff --git a/src/dawn/node/binding/GPUSampler.h b/src/dawn/node/binding/GPUSampler.h index 51de6dad74..d5908f566e 100644 --- a/src/dawn/node/binding/GPUSampler.h +++ b/src/dawn/node/binding/GPUSampler.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUSAMPLER_H_ #define SRC_DAWN_NODE_BINDING_GPUSAMPLER_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUShaderModule.cpp b/src/dawn/node/binding/GPUShaderModule.cpp index 0263694027..d0fe1e47e8 100644 --- a/src/dawn/node/binding/GPUShaderModule.cpp +++ b/src/dawn/node/binding/GPUShaderModule.cpp @@ -15,6 +15,8 @@ #include "src/dawn/node/binding/GPUShaderModule.h" #include +#include +#include #include "src/dawn/node/utils/Debug.h" diff --git a/src/dawn/node/binding/GPUShaderModule.h b/src/dawn/node/binding/GPUShaderModule.h index 2f7396ae3f..a18e758ea2 100644 --- a/src/dawn/node/binding/GPUShaderModule.h +++ b/src/dawn/node/binding/GPUShaderModule.h @@ -15,9 +15,11 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUSHADERMODULE_H_ #define SRC_DAWN_NODE_BINDING_GPUSHADERMODULE_H_ +#include +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/binding/AsyncRunner.h" #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUSupportedLimits.cpp b/src/dawn/node/binding/GPUSupportedLimits.cpp index 23c19b2187..41e1592aba 100644 --- a/src/dawn/node/binding/GPUSupportedLimits.cpp +++ b/src/dawn/node/binding/GPUSupportedLimits.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUSupportedLimits.h" +#include + namespace wgpu::binding { //////////////////////////////////////////////////////////////////////////////// diff --git a/src/dawn/node/binding/GPUTexture.cpp b/src/dawn/node/binding/GPUTexture.cpp index ac0465f8cc..59d4ad9b5d 100644 --- a/src/dawn/node/binding/GPUTexture.cpp +++ b/src/dawn/node/binding/GPUTexture.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUTexture.h" +#include + #include "src/dawn/node/binding/Converter.h" #include "src/dawn/node/binding/Errors.h" #include "src/dawn/node/binding/GPUTextureView.h" diff --git a/src/dawn/node/binding/GPUTexture.h b/src/dawn/node/binding/GPUTexture.h index abb3850168..8bf82c63f1 100644 --- a/src/dawn/node/binding/GPUTexture.h +++ b/src/dawn/node/binding/GPUTexture.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUTEXTURE_H_ #define SRC_DAWN_NODE_BINDING_GPUTEXTURE_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/binding/GPUTextureView.cpp b/src/dawn/node/binding/GPUTextureView.cpp index 43c88f1f30..c2b5a06d52 100644 --- a/src/dawn/node/binding/GPUTextureView.cpp +++ b/src/dawn/node/binding/GPUTextureView.cpp @@ -14,6 +14,8 @@ #include "src/dawn/node/binding/GPUTextureView.h" +#include + #include "src/dawn/node/utils/Debug.h" namespace wgpu::binding { diff --git a/src/dawn/node/binding/GPUTextureView.h b/src/dawn/node/binding/GPUTextureView.h index 8d070ce347..004d2c96b8 100644 --- a/src/dawn/node/binding/GPUTextureView.h +++ b/src/dawn/node/binding/GPUTextureView.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_NODE_BINDING_GPUTEXTUREVIEW_H_ #define SRC_DAWN_NODE_BINDING_GPUTEXTUREVIEW_H_ +#include + #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" - #include "src/dawn/node/interop/Napi.h" #include "src/dawn/node/interop/WebGPU.h" diff --git a/src/dawn/node/interop/Core.h b/src/dawn/node/interop/Core.h index 402ea341e0..189eae1a1c 100644 --- a/src/dawn/node/interop/Core.h +++ b/src/dawn/node/interop/Core.h @@ -19,17 +19,18 @@ #define SRC_DAWN_NODE_INTEROP_CORE_H_ #include +#include // TODO(https://crbug.com/dawn/1379) Update cpplint and remove NOLINT #include // NOLINT(build/include_order) #include #include #include +#include // TODO(https://crbug.com/dawn/1379) Update cpplint and remove NOLINT #include // NOLINT(build/include_order) #include #include "src/dawn/node/interop/Napi.h" - #include "src/dawn/node/utils/Debug.h" #define ENABLE_INTEROP_LOGGING 0 // Enable for verbose interop logging diff --git a/src/dawn/node/utils/Debug.h b/src/dawn/node/utils/Debug.h index 9cae4fbe75..df837be5c8 100644 --- a/src/dawn/node/utils/Debug.h +++ b/src/dawn/node/utils/Debug.h @@ -20,6 +20,7 @@ #include // NOLINT(build/include_order) #include #include +#include // TODO(https://crbug.com/dawn/1379) Update cpplint and remove NOLINT #include // NOLINT(build/include_order) #include diff --git a/src/dawn/platform/DawnPlatform.cpp b/src/dawn/platform/DawnPlatform.cpp index 2706316acd..d30061b67d 100644 --- a/src/dawn/platform/DawnPlatform.cpp +++ b/src/dawn/platform/DawnPlatform.cpp @@ -13,9 +13,11 @@ // limitations under the License. #include "dawn/platform/DawnPlatform.h" -#include "dawn/platform/WorkerThread.h" + +#include #include "dawn/common/Assert.h" +#include "dawn/platform/WorkerThread.h" namespace dawn::platform { diff --git a/src/dawn/platform/WorkerThread.h b/src/dawn/platform/WorkerThread.h index 949fdff496..7a11d8302a 100644 --- a/src/dawn/platform/WorkerThread.h +++ b/src/dawn/platform/WorkerThread.h @@ -15,6 +15,8 @@ #ifndef SRC_DAWN_PLATFORM_WORKERTHREAD_H_ #define SRC_DAWN_PLATFORM_WORKERTHREAD_H_ +#include + #include "dawn/common/NonCopyable.h" #include "dawn/platform/DawnPlatform.h" diff --git a/src/dawn/samples/ComputeBoids.cpp b/src/dawn/samples/ComputeBoids.cpp index 72b944affb..a60962428f 100644 --- a/src/dawn/samples/ComputeBoids.cpp +++ b/src/dawn/samples/ComputeBoids.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include "dawn/samples/SampleUtils.h" diff --git a/src/dawn/samples/ManualSwapChainTest.cpp b/src/dawn/samples/ManualSwapChainTest.cpp index 1cef69105f..1de126b7fa 100644 --- a/src/dawn/samples/ManualSwapChainTest.cpp +++ b/src/dawn/samples/ManualSwapChainTest.cpp @@ -51,8 +51,11 @@ // - TODO can't be tested yet: check cycling the same window over multiple devices. // - TODO can't be tested yet: check cycling the same window over multiple formats. +#include #include #include +#include +#include #include "GLFW/glfw3.h" #include "dawn/common/Assert.h" diff --git a/src/dawn/samples/SampleUtils.cpp b/src/dawn/samples/SampleUtils.cpp index f1e0659788..3e6a5020d9 100644 --- a/src/dawn/samples/SampleUtils.cpp +++ b/src/dawn/samples/SampleUtils.cpp @@ -16,6 +16,9 @@ #include #include +#include +#include +#include #include "GLFW/glfw3.h" #include "dawn/common/Assert.h" diff --git a/src/dawn/tests/DawnNativeTest.cpp b/src/dawn/tests/DawnNativeTest.cpp index fcf74f7b43..02919ea0be 100644 --- a/src/dawn/tests/DawnNativeTest.cpp +++ b/src/dawn/tests/DawnNativeTest.cpp @@ -14,6 +14,8 @@ #include "dawn/tests/DawnNativeTest.h" +#include + #include "absl/strings/str_cat.h" #include "dawn/common/Assert.h" #include "dawn/dawn_proc.h" diff --git a/src/dawn/tests/DawnNativeTest.h b/src/dawn/tests/DawnNativeTest.h index 8d6fd8e6cb..53b6ab87c3 100644 --- a/src/dawn/tests/DawnNativeTest.h +++ b/src/dawn/tests/DawnNativeTest.h @@ -15,11 +15,12 @@ #ifndef SRC_DAWN_TESTS_DAWNNATIVETEST_H_ #define SRC_DAWN_TESTS_DAWNNATIVETEST_H_ -#include +#include #include "dawn/native/DawnNative.h" #include "dawn/native/ErrorData.h" #include "dawn/webgpu_cpp.h" +#include "gtest/gtest.h" namespace dawn::native { diff --git a/src/dawn/tests/DawnTest.cpp b/src/dawn/tests/DawnTest.cpp index 635d7d71ec..708fb5f1e6 100644 --- a/src/dawn/tests/DawnTest.cpp +++ b/src/dawn/tests/DawnTest.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include diff --git a/src/dawn/tests/DawnTest.h b/src/dawn/tests/DawnTest.h index 6004762223..c3c8402445 100644 --- a/src/dawn/tests/DawnTest.h +++ b/src/dawn/tests/DawnTest.h @@ -16,7 +16,9 @@ #define SRC_DAWN_TESTS_DAWNTEST_H_ #include +#include #include +#include #include #include "dawn/common/Log.h" diff --git a/src/dawn/tests/MockCallback.h b/src/dawn/tests/MockCallback.h index d6f2073634..49840a154e 100644 --- a/src/dawn/tests/MockCallback.h +++ b/src/dawn/tests/MockCallback.h @@ -17,9 +17,10 @@ #include #include +#include +#include #include "gmock/gmock.h" - #include "dawn/common/Assert.h" namespace testing { diff --git a/src/dawn/tests/ParamGenerator.h b/src/dawn/tests/ParamGenerator.h index 8da502f917..8a3edba4d8 100644 --- a/src/dawn/tests/ParamGenerator.h +++ b/src/dawn/tests/ParamGenerator.h @@ -16,6 +16,7 @@ #define SRC_DAWN_TESTS_PARAMGENERATOR_H_ #include +#include #include // ParamStruct is a custom struct which ParamStruct will yield when iterating. diff --git a/src/dawn/tests/end2end/AdapterDiscoveryTests.cpp b/src/dawn/tests/end2end/AdapterDiscoveryTests.cpp index bfc2540c4e..de9a1c55a8 100644 --- a/src/dawn/tests/end2end/AdapterDiscoveryTests.cpp +++ b/src/dawn/tests/end2end/AdapterDiscoveryTests.cpp @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include +#include + #include "dawn/common/GPUInfo.h" #include "dawn/common/Log.h" #include "dawn/common/Platform.h" diff --git a/src/dawn/tests/end2end/BindGroupTests.cpp b/src/dawn/tests/end2end/BindGroupTests.cpp index 3c576a96b1..fa5e01176f 100644 --- a/src/dawn/tests/end2end/BindGroupTests.cpp +++ b/src/dawn/tests/end2end/BindGroupTests.cpp @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include +#include + #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" diff --git a/src/dawn/tests/end2end/BufferTests.cpp b/src/dawn/tests/end2end/BufferTests.cpp index 2c2dc97508..8b869ef2dc 100644 --- a/src/dawn/tests/end2end/BufferTests.cpp +++ b/src/dawn/tests/end2end/BufferTests.cpp @@ -14,6 +14,8 @@ #include #include +#include +#include #include "dawn/tests/DawnTest.h" diff --git a/src/dawn/tests/end2end/BufferZeroInitTests.cpp b/src/dawn/tests/end2end/BufferZeroInitTests.cpp index ce40c335dc..0fe2b57872 100644 --- a/src/dawn/tests/end2end/BufferZeroInitTests.cpp +++ b/src/dawn/tests/end2end/BufferZeroInitTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/ColorStateTests.cpp b/src/dawn/tests/end2end/ColorStateTests.cpp index 1a9b1c6669..142ff47e71 100644 --- a/src/dawn/tests/end2end/ColorStateTests.cpp +++ b/src/dawn/tests/end2end/ColorStateTests.cpp @@ -15,9 +15,10 @@ #include #include #include +#include +#include #include "dawn/tests/DawnTest.h" - #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" diff --git a/src/dawn/tests/end2end/CompressedTextureFormatTests.cpp b/src/dawn/tests/end2end/CompressedTextureFormatTests.cpp index 5bc75abc52..348ca9881c 100644 --- a/src/dawn/tests/end2end/CompressedTextureFormatTests.cpp +++ b/src/dawn/tests/end2end/CompressedTextureFormatTests.cpp @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/TextureUtils.h" diff --git a/src/dawn/tests/end2end/ComputeDispatchTests.cpp b/src/dawn/tests/end2end/ComputeDispatchTests.cpp index a82663f535..418c229f91 100644 --- a/src/dawn/tests/end2end/ComputeDispatchTests.cpp +++ b/src/dawn/tests/end2end/ComputeDispatchTests.cpp @@ -13,9 +13,9 @@ // limitations under the License. #include +#include #include "dawn/tests/DawnTest.h" - #include "dawn/utils/WGPUHelpers.h" constexpr static std::initializer_list kSentinelData{0, 0, 0}; diff --git a/src/dawn/tests/end2end/ComputeLayoutMemoryBufferTests.cpp b/src/dawn/tests/end2end/ComputeLayoutMemoryBufferTests.cpp index adda29d8a1..adf48f0cb7 100644 --- a/src/dawn/tests/end2end/ComputeLayoutMemoryBufferTests.cpp +++ b/src/dawn/tests/end2end/ComputeLayoutMemoryBufferTests.cpp @@ -12,11 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include #include +#include +#include #include "dawn/tests/DawnTest.h" - #include "dawn/common/Math.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/ComputeStorageBufferBarrierTests.cpp b/src/dawn/tests/end2end/ComputeStorageBufferBarrierTests.cpp index 17ed6fec45..7ff6b03a1e 100644 --- a/src/dawn/tests/end2end/ComputeStorageBufferBarrierTests.cpp +++ b/src/dawn/tests/end2end/ComputeStorageBufferBarrierTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/WGPUHelpers.h" class ComputeStorageBufferBarrierTests : public DawnTest { diff --git a/src/dawn/tests/end2end/CopyTests.cpp b/src/dawn/tests/end2end/CopyTests.cpp index 46911c9ed4..b789156562 100644 --- a/src/dawn/tests/end2end/CopyTests.cpp +++ b/src/dawn/tests/end2end/CopyTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include +#include #include "dawn/tests/DawnTest.h" - #include "dawn/common/Constants.h" #include "dawn/common/Math.h" #include "dawn/utils/TestUtils.h" diff --git a/src/dawn/tests/end2end/CopyTextureForBrowserTests.cpp b/src/dawn/tests/end2end/CopyTextureForBrowserTests.cpp index 207eba3d7a..a3a9b9c405 100644 --- a/src/dawn/tests/end2end/CopyTextureForBrowserTests.cpp +++ b/src/dawn/tests/end2end/CopyTextureForBrowserTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Constants.h" #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/TextureUtils.h" diff --git a/src/dawn/tests/end2end/CreatePipelineAsyncTests.cpp b/src/dawn/tests/end2end/CreatePipelineAsyncTests.cpp index 4c6d7420a3..f7e4c29ecf 100644 --- a/src/dawn/tests/end2end/CreatePipelineAsyncTests.cpp +++ b/src/dawn/tests/end2end/CreatePipelineAsyncTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/D3D12CachingTests.cpp b/src/dawn/tests/end2end/D3D12CachingTests.cpp index 0d62ce2b72..745ae2122c 100644 --- a/src/dawn/tests/end2end/D3D12CachingTests.cpp +++ b/src/dawn/tests/end2end/D3D12CachingTests.cpp @@ -12,8 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include +#include +#include +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/D3D12ResourceWrappingTests.cpp b/src/dawn/tests/end2end/D3D12ResourceWrappingTests.cpp index 521da957c1..880e34bc37 100644 --- a/src/dawn/tests/end2end/D3D12ResourceWrappingTests.cpp +++ b/src/dawn/tests/end2end/D3D12ResourceWrappingTests.cpp @@ -17,9 +17,12 @@ #include #include -#include "dawn/tests/DawnTest.h" +#include +#include +#include #include "dawn/native/D3D12Backend.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/DepthBiasTests.cpp b/src/dawn/tests/end2end/DepthBiasTests.cpp index f1b31de5ed..49ac335c1a 100644 --- a/src/dawn/tests/end2end/DepthBiasTests.cpp +++ b/src/dawn/tests/end2end/DepthBiasTests.cpp @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include +#include + #include "dawn/common/Constants.h" #include "dawn/common/Math.h" #include "dawn/tests/DawnTest.h" diff --git a/src/dawn/tests/end2end/DepthStencilCopyTests.cpp b/src/dawn/tests/end2end/DepthStencilCopyTests.cpp index 80b4b90dbf..9dd62bd300 100644 --- a/src/dawn/tests/end2end/DepthStencilCopyTests.cpp +++ b/src/dawn/tests/end2end/DepthStencilCopyTests.cpp @@ -13,9 +13,10 @@ // limitations under the License. #include +#include +#include #include "dawn/tests/DawnTest.h" - #include "dawn/common/Constants.h" #include "dawn/common/Math.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" diff --git a/src/dawn/tests/end2end/DepthStencilLoadOpTests.cpp b/src/dawn/tests/end2end/DepthStencilLoadOpTests.cpp index f9714cffbd..e60102edef 100644 --- a/src/dawn/tests/end2end/DepthStencilLoadOpTests.cpp +++ b/src/dawn/tests/end2end/DepthStencilLoadOpTests.cpp @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/DepthStencilSamplingTests.cpp b/src/dawn/tests/end2end/DepthStencilSamplingTests.cpp index 16bb57656b..349d849aed 100644 --- a/src/dawn/tests/end2end/DepthStencilSamplingTests.cpp +++ b/src/dawn/tests/end2end/DepthStencilSamplingTests.cpp @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include +#include + #include "dawn/common/Assert.h" #include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" diff --git a/src/dawn/tests/end2end/DepthStencilStateTests.cpp b/src/dawn/tests/end2end/DepthStencilStateTests.cpp index 6c6acd0c48..8690751462 100644 --- a/src/dawn/tests/end2end/DepthStencilStateTests.cpp +++ b/src/dawn/tests/end2end/DepthStencilStateTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Assert.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/DestroyTests.cpp b/src/dawn/tests/end2end/DestroyTests.cpp index d908c7ee11..9bd66e7ddb 100644 --- a/src/dawn/tests/end2end/DestroyTests.cpp +++ b/src/dawn/tests/end2end/DestroyTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/DeviceInitializationTests.cpp b/src/dawn/tests/end2end/DeviceInitializationTests.cpp index f30aa7234f..0bd35bb729 100644 --- a/src/dawn/tests/end2end/DeviceInitializationTests.cpp +++ b/src/dawn/tests/end2end/DeviceInitializationTests.cpp @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include +#include + #include "dawn/dawn_proc.h" #include "dawn/tests/DawnTest.h" #include "dawn/utils/SystemUtils.h" diff --git a/src/dawn/tests/end2end/DeviceLostTests.cpp b/src/dawn/tests/end2end/DeviceLostTests.cpp index b443598a42..150081b329 100644 --- a/src/dawn/tests/end2end/DeviceLostTests.cpp +++ b/src/dawn/tests/end2end/DeviceLostTests.cpp @@ -13,11 +13,11 @@ // limitations under the License. #include +#include +#include #include "gmock/gmock.h" - #include "dawn/tests/DawnTest.h" - #include "dawn/tests/MockCallback.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/DrawIndexedIndirectTests.cpp b/src/dawn/tests/end2end/DrawIndexedIndirectTests.cpp index dc3f74c7b6..986b0acd6e 100644 --- a/src/dawn/tests/end2end/DrawIndexedIndirectTests.cpp +++ b/src/dawn/tests/end2end/DrawIndexedIndirectTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderBundleEncoderDescriptor.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/DynamicBufferOffsetTests.cpp b/src/dawn/tests/end2end/DynamicBufferOffsetTests.cpp index 363e2101af..fd32fe1220 100644 --- a/src/dawn/tests/end2end/DynamicBufferOffsetTests.cpp +++ b/src/dawn/tests/end2end/DynamicBufferOffsetTests.cpp @@ -12,10 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include +#include +#include #include "dawn/tests/DawnTest.h" - #include "dawn/common/Math.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/FirstIndexOffsetTests.cpp b/src/dawn/tests/end2end/FirstIndexOffsetTests.cpp index 165fe77e4f..aa84387a9e 100644 --- a/src/dawn/tests/end2end/FirstIndexOffsetTests.cpp +++ b/src/dawn/tests/end2end/FirstIndexOffsetTests.cpp @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include +#include #include #include "dawn/tests/DawnTest.h" - #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/GpuMemorySynchronizationTests.cpp b/src/dawn/tests/end2end/GpuMemorySynchronizationTests.cpp index 27f240ba40..cf87ad27ec 100644 --- a/src/dawn/tests/end2end/GpuMemorySynchronizationTests.cpp +++ b/src/dawn/tests/end2end/GpuMemorySynchronizationTests.cpp @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include +#include + #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" diff --git a/src/dawn/tests/end2end/MaxLimitTests.cpp b/src/dawn/tests/end2end/MaxLimitTests.cpp index 2d43a75ec2..78df73952f 100644 --- a/src/dawn/tests/end2end/MaxLimitTests.cpp +++ b/src/dawn/tests/end2end/MaxLimitTests.cpp @@ -12,10 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include +#include #include "dawn/common/Math.h" #include "dawn/common/Platform.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/WGPUHelpers.h" class MaxLimitTests : public DawnTest { diff --git a/src/dawn/tests/end2end/MultisampledRenderingTests.cpp b/src/dawn/tests/end2end/MultisampledRenderingTests.cpp index bc6bb40235..24173e1a3e 100644 --- a/src/dawn/tests/end2end/MultisampledRenderingTests.cpp +++ b/src/dawn/tests/end2end/MultisampledRenderingTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Assert.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/MultisampledSamplingTests.cpp b/src/dawn/tests/end2end/MultisampledSamplingTests.cpp index b2fda5e9ae..06e347b0ae 100644 --- a/src/dawn/tests/end2end/MultisampledSamplingTests.cpp +++ b/src/dawn/tests/end2end/MultisampledSamplingTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/NonzeroTextureCreationTests.cpp b/src/dawn/tests/end2end/NonzeroTextureCreationTests.cpp index c3fcc96abb..19f412a6f9 100644 --- a/src/dawn/tests/end2end/NonzeroTextureCreationTests.cpp +++ b/src/dawn/tests/end2end/NonzeroTextureCreationTests.cpp @@ -12,10 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include #include "dawn/common/Constants.h" #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/OpArrayLengthTests.cpp b/src/dawn/tests/end2end/OpArrayLengthTests.cpp index b115e467e3..9a58c3275f 100644 --- a/src/dawn/tests/end2end/OpArrayLengthTests.cpp +++ b/src/dawn/tests/end2end/OpArrayLengthTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Assert.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/PrimitiveStateTests.cpp b/src/dawn/tests/end2end/PrimitiveStateTests.cpp index d689c07318..08fb99556a 100644 --- a/src/dawn/tests/end2end/PrimitiveStateTests.cpp +++ b/src/dawn/tests/end2end/PrimitiveStateTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Assert.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/PrimitiveTopologyTests.cpp b/src/dawn/tests/end2end/PrimitiveTopologyTests.cpp index 97043cfc99..235bdbf359 100644 --- a/src/dawn/tests/end2end/PrimitiveTopologyTests.cpp +++ b/src/dawn/tests/end2end/PrimitiveTopologyTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Assert.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/QueryTests.cpp b/src/dawn/tests/end2end/QueryTests.cpp index f275c407a1..28f9761ae6 100644 --- a/src/dawn/tests/end2end/QueryTests.cpp +++ b/src/dawn/tests/end2end/QueryTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/QueueTests.cpp b/src/dawn/tests/end2end/QueueTests.cpp index f9dd8c88a4..a8f34f4acc 100644 --- a/src/dawn/tests/end2end/QueueTests.cpp +++ b/src/dawn/tests/end2end/QueueTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/TextureUtils.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/QueueTimelineTests.cpp b/src/dawn/tests/end2end/QueueTimelineTests.cpp index 96f4a03034..879728093c 100644 --- a/src/dawn/tests/end2end/QueueTimelineTests.cpp +++ b/src/dawn/tests/end2end/QueueTimelineTests.cpp @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include + #include "dawn/tests/DawnTest.h" +#include "gmock/gmock.h" using namespace testing; diff --git a/src/dawn/tests/end2end/ReadOnlyDepthStencilAttachmentTests.cpp b/src/dawn/tests/end2end/ReadOnlyDepthStencilAttachmentTests.cpp index fd6690e49b..a3a0979bec 100644 --- a/src/dawn/tests/end2end/ReadOnlyDepthStencilAttachmentTests.cpp +++ b/src/dawn/tests/end2end/ReadOnlyDepthStencilAttachmentTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/TextureUtils.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/RequiredBufferSizeInCopyTests.cpp b/src/dawn/tests/end2end/RequiredBufferSizeInCopyTests.cpp index fda58db731..1ec0f01b5a 100644 --- a/src/dawn/tests/end2end/RequiredBufferSizeInCopyTests.cpp +++ b/src/dawn/tests/end2end/RequiredBufferSizeInCopyTests.cpp @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include "dawn/common/Platform.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/SamplerFilterAnisotropicTests.cpp b/src/dawn/tests/end2end/SamplerFilterAnisotropicTests.cpp index 86d94ca835..fdec46eb96 100644 --- a/src/dawn/tests/end2end/SamplerFilterAnisotropicTests.cpp +++ b/src/dawn/tests/end2end/SamplerFilterAnisotropicTests.cpp @@ -13,9 +13,9 @@ // limitations under the License. #include +#include #include "dawn/tests/DawnTest.h" - #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" diff --git a/src/dawn/tests/end2end/ShaderFloat16Tests.cpp b/src/dawn/tests/end2end/ShaderFloat16Tests.cpp index e2d95f3639..7b64859f28 100644 --- a/src/dawn/tests/end2end/ShaderFloat16Tests.cpp +++ b/src/dawn/tests/end2end/ShaderFloat16Tests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include "dawn/common/Math.h" #include "dawn/tests/DawnTest.h" - #include "dawn/utils/WGPUHelpers.h" class ShaderFloat16Tests : public DawnTest { diff --git a/src/dawn/tests/end2end/ShaderTests.cpp b/src/dawn/tests/end2end/ShaderTests.cpp index d24e9ebc2d..0de44b208f 100644 --- a/src/dawn/tests/end2end/ShaderTests.cpp +++ b/src/dawn/tests/end2end/ShaderTests.cpp @@ -13,10 +13,10 @@ // limitations under the License. #include +#include #include #include "dawn/tests/DawnTest.h" - #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/StorageTextureTests.cpp b/src/dawn/tests/end2end/StorageTextureTests.cpp index bf60590fd0..64a9e0b8ed 100644 --- a/src/dawn/tests/end2end/StorageTextureTests.cpp +++ b/src/dawn/tests/end2end/StorageTextureTests.cpp @@ -12,11 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/TextureUtils.h" diff --git a/src/dawn/tests/end2end/SubresourceRenderAttachmentTests.cpp b/src/dawn/tests/end2end/SubresourceRenderAttachmentTests.cpp index b351c25bd1..670708c7b7 100644 --- a/src/dawn/tests/end2end/SubresourceRenderAttachmentTests.cpp +++ b/src/dawn/tests/end2end/SubresourceRenderAttachmentTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Assert.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/Texture3DTests.cpp b/src/dawn/tests/end2end/Texture3DTests.cpp index fc4b0c6c4f..9472087aad 100644 --- a/src/dawn/tests/end2end/Texture3DTests.cpp +++ b/src/dawn/tests/end2end/Texture3DTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/TextureFormatTests.cpp b/src/dawn/tests/end2end/TextureFormatTests.cpp index 2e005a004e..c608eb1c66 100644 --- a/src/dawn/tests/end2end/TextureFormatTests.cpp +++ b/src/dawn/tests/end2end/TextureFormatTests.cpp @@ -13,10 +13,12 @@ // limitations under the License. #include +#include #include +#include +#include #include "dawn/tests/DawnTest.h" - #include "dawn/common/Assert.h" #include "dawn/common/Math.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" diff --git a/src/dawn/tests/end2end/TextureViewTests.cpp b/src/dawn/tests/end2end/TextureViewTests.cpp index 155d666206..6c1fed9261 100644 --- a/src/dawn/tests/end2end/TextureViewTests.cpp +++ b/src/dawn/tests/end2end/TextureViewTests.cpp @@ -12,10 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include +#include +#include #include "dawn/tests/DawnTest.h" - #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" diff --git a/src/dawn/tests/end2end/TextureZeroInitTests.cpp b/src/dawn/tests/end2end/TextureZeroInitTests.cpp index a7f5849f5f..e451a0fa63 100644 --- a/src/dawn/tests/end2end/TextureZeroInitTests.cpp +++ b/src/dawn/tests/end2end/TextureZeroInitTests.cpp @@ -12,9 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/VertexFormatTests.cpp b/src/dawn/tests/end2end/VertexFormatTests.cpp index 07c3763fda..1aae317a86 100644 --- a/src/dawn/tests/end2end/VertexFormatTests.cpp +++ b/src/dawn/tests/end2end/VertexFormatTests.cpp @@ -12,10 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include +#include #include "dawn/common/Assert.h" #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/VertexStateTests.cpp b/src/dawn/tests/end2end/VertexStateTests.cpp index 874c7148a0..e92b6f07c5 100644 --- a/src/dawn/tests/end2end/VertexStateTests.cpp +++ b/src/dawn/tests/end2end/VertexStateTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/common/Assert.h" #include "dawn/common/Math.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/VideoViewsTests.cpp b/src/dawn/tests/end2end/VideoViewsTests.cpp index 216ace0b13..c195996451 100644 --- a/src/dawn/tests/end2end/VideoViewsTests.cpp +++ b/src/dawn/tests/end2end/VideoViewsTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/end2end/VideoViewsTests.h" +#include +#include "dawn/tests/end2end/VideoViewsTests.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/VideoViewsTests.h b/src/dawn/tests/end2end/VideoViewsTests.h index c1ff361cb7..a97999a02e 100644 --- a/src/dawn/tests/end2end/VideoViewsTests.h +++ b/src/dawn/tests/end2end/VideoViewsTests.h @@ -17,6 +17,7 @@ #include #include +#include #include "dawn/tests/DawnTest.h" diff --git a/src/dawn/tests/end2end/VideoViewsTests_gbm.cpp b/src/dawn/tests/end2end/VideoViewsTests_gbm.cpp index 196308cf22..9116de1dd0 100644 --- a/src/dawn/tests/end2end/VideoViewsTests_gbm.cpp +++ b/src/dawn/tests/end2end/VideoViewsTests_gbm.cpp @@ -15,8 +15,12 @@ #include #include -#include "VideoViewsTests.h" +#include +#include +#include +#include +#include "VideoViewsTests.h" #include "dawn/common/Assert.h" #include "dawn/native/VulkanBackend.h" diff --git a/src/dawn/tests/end2end/VideoViewsTests_mac.cpp b/src/dawn/tests/end2end/VideoViewsTests_mac.cpp index fbf006b119..449eba01f4 100644 --- a/src/dawn/tests/end2end/VideoViewsTests_mac.cpp +++ b/src/dawn/tests/end2end/VideoViewsTests_mac.cpp @@ -16,8 +16,11 @@ #include #include -#include "VideoViewsTests.h" +#include +#include +#include +#include "VideoViewsTests.h" #include "dawn/common/Assert.h" #include "dawn/common/CoreFoundationRef.h" #include "dawn/native/MetalBackend.h" diff --git a/src/dawn/tests/end2end/VideoViewsTests_win.cpp b/src/dawn/tests/end2end/VideoViewsTests_win.cpp index f33ddab314..beba015460 100644 --- a/src/dawn/tests/end2end/VideoViewsTests_win.cpp +++ b/src/dawn/tests/end2end/VideoViewsTests_win.cpp @@ -17,8 +17,11 @@ #include #include -#include "VideoViewsTests.h" +#include +#include +#include +#include "VideoViewsTests.h" #include "dawn/common/Assert.h" #include "dawn/native/D3D12Backend.h" diff --git a/src/dawn/tests/end2end/ViewportTests.cpp b/src/dawn/tests/end2end/ViewportTests.cpp index df2d98a353..b58591130b 100644 --- a/src/dawn/tests/end2end/ViewportTests.cpp +++ b/src/dawn/tests/end2end/ViewportTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/end2end/WindowSurfaceTests.cpp b/src/dawn/tests/end2end/WindowSurfaceTests.cpp index ac5cd883c5..6e455234cc 100644 --- a/src/dawn/tests/end2end/WindowSurfaceTests.cpp +++ b/src/dawn/tests/end2end/WindowSurfaceTests.cpp @@ -13,6 +13,7 @@ // limitations under the License. #include +#include #include "dawn/common/Log.h" #include "dawn/common/Platform.h" @@ -20,7 +21,6 @@ #include "dawn/native/DawnNative.h" #include "dawn/tests/DawnTest.h" #include "dawn/utils/GLFWUtils.h" - #include "gtest/gtest.h" // Include windows.h before GLFW so GLFW's APIENTRY macro doesn't conflict with windows.h's. diff --git a/src/dawn/tests/perf_tests/BufferUploadPerf.cpp b/src/dawn/tests/perf_tests/BufferUploadPerf.cpp index 6be9436691..0331e478f7 100644 --- a/src/dawn/tests/perf_tests/BufferUploadPerf.cpp +++ b/src/dawn/tests/perf_tests/BufferUploadPerf.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/perf_tests/DawnPerfTest.h" +#include +#include "dawn/tests/perf_tests/DawnPerfTest.h" #include "dawn/utils/WGPUHelpers.h" namespace { diff --git a/src/dawn/tests/perf_tests/DawnPerfTest.cpp b/src/dawn/tests/perf_tests/DawnPerfTest.cpp index 256778bf9f..aece2b8966 100644 --- a/src/dawn/tests/perf_tests/DawnPerfTest.cpp +++ b/src/dawn/tests/perf_tests/DawnPerfTest.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include "dawn/common/Assert.h" #include "dawn/common/Log.h" diff --git a/src/dawn/tests/perf_tests/DawnPerfTest.h b/src/dawn/tests/perf_tests/DawnPerfTest.h index 1698dc09de..7b70c1b1d9 100644 --- a/src/dawn/tests/perf_tests/DawnPerfTest.h +++ b/src/dawn/tests/perf_tests/DawnPerfTest.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_TESTS_PERF_TESTS_DAWNPERFTEST_H_ #define SRC_DAWN_TESTS_PERF_TESTS_DAWNPERFTEST_H_ +#include +#include + #include "dawn/tests/DawnTest.h" namespace utils { diff --git a/src/dawn/tests/perf_tests/DawnPerfTestPlatform.cpp b/src/dawn/tests/perf_tests/DawnPerfTestPlatform.cpp index 3da0dadb41..ae5307ae1c 100644 --- a/src/dawn/tests/perf_tests/DawnPerfTestPlatform.cpp +++ b/src/dawn/tests/perf_tests/DawnPerfTestPlatform.cpp @@ -15,6 +15,7 @@ #include "dawn/tests/perf_tests/DawnPerfTestPlatform.h" #include +#include #include "dawn/common/Assert.h" #include "dawn/common/HashUtils.h" diff --git a/src/dawn/tests/perf_tests/DawnPerfTestPlatform.h b/src/dawn/tests/perf_tests/DawnPerfTestPlatform.h index 6241fc6e91..996d2bb1c1 100644 --- a/src/dawn/tests/perf_tests/DawnPerfTestPlatform.h +++ b/src/dawn/tests/perf_tests/DawnPerfTestPlatform.h @@ -17,6 +17,7 @@ #include #include +#include #include #include #include diff --git a/src/dawn/tests/perf_tests/DrawCallPerf.cpp b/src/dawn/tests/perf_tests/DrawCallPerf.cpp index 692c167d59..2dd0b93e20 100644 --- a/src/dawn/tests/perf_tests/DrawCallPerf.cpp +++ b/src/dawn/tests/perf_tests/DrawCallPerf.cpp @@ -12,11 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/perf_tests/DawnPerfTest.h" +#include +#include #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" +#include "dawn/tests/perf_tests/DawnPerfTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/perf_tests/ShaderRobustnessPerf.cpp b/src/dawn/tests/perf_tests/ShaderRobustnessPerf.cpp index 07896ad95e..1478cda1b7 100644 --- a/src/dawn/tests/perf_tests/ShaderRobustnessPerf.cpp +++ b/src/dawn/tests/perf_tests/ShaderRobustnessPerf.cpp @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/perf_tests/DawnPerfTest.h" +#include +#include +#include "dawn/tests/perf_tests/DawnPerfTest.h" #include "dawn/utils/WGPUHelpers.h" namespace { diff --git a/src/dawn/tests/unittests/AsyncTaskTests.cpp b/src/dawn/tests/unittests/AsyncTaskTests.cpp index 9170885465..7ebde3e62f 100644 --- a/src/dawn/tests/unittests/AsyncTaskTests.cpp +++ b/src/dawn/tests/unittests/AsyncTaskTests.cpp @@ -11,18 +11,21 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + // // AsyncTaskTests: // Simple tests for dawn::native::AsyncTask and dawn::native::AsnycTaskManager. -#include - #include #include +#include +#include +#include #include "dawn/common/NonCopyable.h" #include "dawn/native/AsyncTask.h" #include "dawn/platform/DawnPlatform.h" +#include "gtest/gtest.h" namespace { diff --git a/src/dawn/tests/unittests/BitSetIteratorTests.cpp b/src/dawn/tests/unittests/BitSetIteratorTests.cpp index ecdb92c251..b3b9d0c35f 100644 --- a/src/dawn/tests/unittests/BitSetIteratorTests.cpp +++ b/src/dawn/tests/unittests/BitSetIteratorTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include #include "dawn/common/BitSetIterator.h" #include "dawn/common/ityp_bitset.h" +#include "gtest/gtest.h" // This is ANGLE's BitSetIterator_unittests.cpp file. diff --git a/src/dawn/tests/unittests/BuddyAllocatorTests.cpp b/src/dawn/tests/unittests/BuddyAllocatorTests.cpp index cc824cf969..eb0c67efab 100644 --- a/src/dawn/tests/unittests/BuddyAllocatorTests.cpp +++ b/src/dawn/tests/unittests/BuddyAllocatorTests.cpp @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include + #include "dawn/native/BuddyAllocator.h" +#include "gtest/gtest.h" using namespace dawn::native; diff --git a/src/dawn/tests/unittests/BuddyMemoryAllocatorTests.cpp b/src/dawn/tests/unittests/BuddyMemoryAllocatorTests.cpp index 7cf3fe230e..f38e3e9edc 100644 --- a/src/dawn/tests/unittests/BuddyMemoryAllocatorTests.cpp +++ b/src/dawn/tests/unittests/BuddyMemoryAllocatorTests.cpp @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include +#include #include #include "gtest/gtest.h" - #include "dawn/native/BuddyMemoryAllocator.h" #include "dawn/native/PooledResourceMemoryAllocator.h" #include "dawn/native/ResourceHeapAllocator.h" diff --git a/src/dawn/tests/unittests/CommandAllocatorTests.cpp b/src/dawn/tests/unittests/CommandAllocatorTests.cpp index bb6951f2b8..fc5df40466 100644 --- a/src/dawn/tests/unittests/CommandAllocatorTests.cpp +++ b/src/dawn/tests/unittests/CommandAllocatorTests.cpp @@ -13,9 +13,10 @@ // limitations under the License. #include +#include +#include #include "gtest/gtest.h" - #include "dawn/native/CommandAllocator.h" using namespace dawn::native; diff --git a/src/dawn/tests/unittests/ConcurrentCacheTests.cpp b/src/dawn/tests/unittests/ConcurrentCacheTests.cpp index 6369a39429..9687a3c4ba 100644 --- a/src/dawn/tests/unittests/ConcurrentCacheTests.cpp +++ b/src/dawn/tests/unittests/ConcurrentCacheTests.cpp @@ -12,12 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include +#include #include "dawn/common/ConcurrentCache.h" #include "dawn/native/AsyncTask.h" #include "dawn/platform/DawnPlatform.h" #include "dawn/utils/SystemUtils.h" +#include "gtest/gtest.h" namespace { class SimpleCachedObject { diff --git a/src/dawn/tests/unittests/ErrorTests.cpp b/src/dawn/tests/unittests/ErrorTests.cpp index 1d6224c252..b0ada199bd 100644 --- a/src/dawn/tests/unittests/ErrorTests.cpp +++ b/src/dawn/tests/unittests/ErrorTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include #include "dawn/native/Error.h" #include "dawn/native/ErrorData.h" +#include "gtest/gtest.h" using namespace dawn::native; diff --git a/src/dawn/tests/unittests/FeatureTests.cpp b/src/dawn/tests/unittests/FeatureTests.cpp index 29c1115b1d..e263485382 100644 --- a/src/dawn/tests/unittests/FeatureTests.cpp +++ b/src/dawn/tests/unittests/FeatureTests.cpp @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include #include "dawn/native/Features.h" #include "dawn/native/Instance.h" #include "dawn/native/null/DeviceNull.h" +#include "gtest/gtest.h" class FeatureTests : public testing::Test { public: diff --git a/src/dawn/tests/unittests/GetProcAddressTests.cpp b/src/dawn/tests/unittests/GetProcAddressTests.cpp index 56e79a1020..50840c215c 100644 --- a/src/dawn/tests/unittests/GetProcAddressTests.cpp +++ b/src/dawn/tests/unittests/GetProcAddressTests.cpp @@ -12,7 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include +#include +#include + +#include "gtest/gtest.h" #include "dawn/dawn_proc.h" #include "dawn/native/Instance.h" diff --git a/src/dawn/tests/unittests/ITypVectorTests.cpp b/src/dawn/tests/unittests/ITypVectorTests.cpp index 1654a14d30..1aa82f10dc 100644 --- a/src/dawn/tests/unittests/ITypVectorTests.cpp +++ b/src/dawn/tests/unittests/ITypVectorTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include #include "dawn/common/TypedInteger.h" #include "dawn/common/ityp_vector.h" +#include "gtest/gtest.h" class ITypVectorTest : public testing::Test { protected: diff --git a/src/dawn/tests/unittests/LinkedListTests.cpp b/src/dawn/tests/unittests/LinkedListTests.cpp index ede86fc5e0..e63ef0aa72 100644 --- a/src/dawn/tests/unittests/LinkedListTests.cpp +++ b/src/dawn/tests/unittests/LinkedListTests.cpp @@ -5,10 +5,10 @@ // This file is a copy of Chromium's /src/base/containers/linked_list_unittest.cc #include - -#include "gtest/gtest.h" +#include #include "dawn/common/LinkedList.h" +#include "gtest/gtest.h" class Node : public LinkNode { public: diff --git a/src/dawn/tests/unittests/MathTests.cpp b/src/dawn/tests/unittests/MathTests.cpp index 9891e144a3..a5ce0f4d2d 100644 --- a/src/dawn/tests/unittests/MathTests.cpp +++ b/src/dawn/tests/unittests/MathTests.cpp @@ -13,12 +13,11 @@ // limitations under the License. #include +#include #include "gtest/gtest.h" - #include "dawn/EnumClassBitmasks.h" #include "dawn/common/Math.h" - #include "dawn/webgpu_cpp.h" namespace wgpu { diff --git a/src/dawn/tests/unittests/ObjectBaseTests.cpp b/src/dawn/tests/unittests/ObjectBaseTests.cpp index 51244c7e0a..05802750f0 100644 --- a/src/dawn/tests/unittests/ObjectBaseTests.cpp +++ b/src/dawn/tests/unittests/ObjectBaseTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include #include "dawn/webgpu_cpp.h" +#include "gtest/gtest.h" class Object : public wgpu::ObjectBase { public: diff --git a/src/dawn/tests/unittests/PlacementAllocatedTests.cpp b/src/dawn/tests/unittests/PlacementAllocatedTests.cpp index 8ea1481c5c..9fcbda9137 100644 --- a/src/dawn/tests/unittests/PlacementAllocatedTests.cpp +++ b/src/dawn/tests/unittests/PlacementAllocatedTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include -#include +#include #include "dawn/common/PlacementAllocated.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" using namespace testing; diff --git a/src/dawn/tests/unittests/RefBaseTests.cpp b/src/dawn/tests/unittests/RefBaseTests.cpp index a3287115ed..0a34aca82f 100644 --- a/src/dawn/tests/unittests/RefBaseTests.cpp +++ b/src/dawn/tests/unittests/RefBaseTests.cpp @@ -12,9 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include +#include #include "dawn/common/RefBase.h" +#include "gmock/gmock.h" namespace { using Id = uint32_t; diff --git a/src/dawn/tests/unittests/RefCountedTests.cpp b/src/dawn/tests/unittests/RefCountedTests.cpp index bf0d783b1f..503b701a45 100644 --- a/src/dawn/tests/unittests/RefCountedTests.cpp +++ b/src/dawn/tests/unittests/RefCountedTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include #include +#include #include "dawn/common/RefCounted.h" +#include "gtest/gtest.h" class RCTest : public RefCounted { public: diff --git a/src/dawn/tests/unittests/ResultTests.cpp b/src/dawn/tests/unittests/ResultTests.cpp index 429ebc1664..ded13bf794 100644 --- a/src/dawn/tests/unittests/ResultTests.cpp +++ b/src/dawn/tests/unittests/ResultTests.cpp @@ -12,10 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include +#include +#include #include "dawn/common/RefCounted.h" #include "dawn/common/Result.h" +#include "gtest/gtest.h" namespace { diff --git a/src/dawn/tests/unittests/RingBufferAllocatorTests.cpp b/src/dawn/tests/unittests/RingBufferAllocatorTests.cpp index 0a103752ef..8653a3b223 100644 --- a/src/dawn/tests/unittests/RingBufferAllocatorTests.cpp +++ b/src/dawn/tests/unittests/RingBufferAllocatorTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include #include "dawn/native/RingBufferAllocator.h" +#include "gtest/gtest.h" using namespace dawn::native; diff --git a/src/dawn/tests/unittests/SerialMapTests.cpp b/src/dawn/tests/unittests/SerialMapTests.cpp index a4ac5926b0..6ac7954d22 100644 --- a/src/dawn/tests/unittests/SerialMapTests.cpp +++ b/src/dawn/tests/unittests/SerialMapTests.cpp @@ -12,10 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include +#include #include "dawn/common/SerialMap.h" #include "dawn/common/TypedInteger.h" +#include "gtest/gtest.h" using TestSerialMap = SerialMap; diff --git a/src/dawn/tests/unittests/SerialQueueTests.cpp b/src/dawn/tests/unittests/SerialQueueTests.cpp index 56ce97ea2e..232d751649 100644 --- a/src/dawn/tests/unittests/SerialQueueTests.cpp +++ b/src/dawn/tests/unittests/SerialQueueTests.cpp @@ -12,10 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include +#include #include "dawn/common/SerialQueue.h" #include "dawn/common/TypedInteger.h" +#include "gtest/gtest.h" using TestSerialQueue = SerialQueue; diff --git a/src/dawn/tests/unittests/SlabAllocatorTests.cpp b/src/dawn/tests/unittests/SlabAllocatorTests.cpp index 27b34e6fbf..fa1634870c 100644 --- a/src/dawn/tests/unittests/SlabAllocatorTests.cpp +++ b/src/dawn/tests/unittests/SlabAllocatorTests.cpp @@ -12,10 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include +#include #include "dawn/common/Math.h" #include "dawn/common/SlabAllocator.h" +#include "gtest/gtest.h" namespace { diff --git a/src/dawn/tests/unittests/StackContainerTests.cpp b/src/dawn/tests/unittests/StackContainerTests.cpp index f68ecf4cfc..1143ca843f 100644 --- a/src/dawn/tests/unittests/StackContainerTests.cpp +++ b/src/dawn/tests/unittests/StackContainerTests.cpp @@ -6,9 +6,9 @@ #include #include +#include #include "gtest/gtest.h" - #include "dawn/common/RefCounted.h" #include "dawn/common/StackContainer.h" diff --git a/src/dawn/tests/unittests/SubresourceStorageTests.cpp b/src/dawn/tests/unittests/SubresourceStorageTests.cpp index 08472e9dc3..b526435512 100644 --- a/src/dawn/tests/unittests/SubresourceStorageTests.cpp +++ b/src/dawn/tests/unittests/SubresourceStorageTests.cpp @@ -12,11 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include - -#include "dawn/native/SubresourceStorage.h" +#include #include "dawn/common/Log.h" +#include "dawn/native/SubresourceStorage.h" +#include "gtest/gtest.h" using namespace dawn::native; diff --git a/src/dawn/tests/unittests/SystemUtilsTests.cpp b/src/dawn/tests/unittests/SystemUtilsTests.cpp index 15dff17bb9..b3d2a94dc2 100644 --- a/src/dawn/tests/unittests/SystemUtilsTests.cpp +++ b/src/dawn/tests/unittests/SystemUtilsTests.cpp @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include -#include +#include #include "dawn/common/Assert.h" #include "dawn/common/SystemUtils.h" +#include "gmock/gmock-matchers.h" +#include "gtest/gtest.h" using ::testing::_; using ::testing::Pair; diff --git a/src/dawn/tests/unittests/TypedIntegerTests.cpp b/src/dawn/tests/unittests/TypedIntegerTests.cpp index 8e4d142016..fd9bf7702a 100644 --- a/src/dawn/tests/unittests/TypedIntegerTests.cpp +++ b/src/dawn/tests/unittests/TypedIntegerTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include #include "dawn/common/TypedInteger.h" #include "dawn/common/UnderlyingType.h" +#include "gtest/gtest.h" class TypedIntegerTest : public testing::Test { protected: diff --git a/src/dawn/tests/unittests/VersionTests.cpp b/src/dawn/tests/unittests/VersionTests.cpp index 60172a718f..173456c0f2 100644 --- a/src/dawn/tests/unittests/VersionTests.cpp +++ b/src/dawn/tests/unittests/VersionTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include -#include +#include #include "dawn/common/Version_autogen.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" namespace dawn { namespace { diff --git a/src/dawn/tests/unittests/d3d12/CopySplitTests.cpp b/src/dawn/tests/unittests/d3d12/CopySplitTests.cpp index f368ffcbd8..6f5439caf2 100644 --- a/src/dawn/tests/unittests/d3d12/CopySplitTests.cpp +++ b/src/dawn/tests/unittests/d3d12/CopySplitTests.cpp @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" @@ -22,6 +22,7 @@ #include "dawn/native/d3d12/d3d12_platform.h" #include "dawn/utils/TestUtils.h" #include "dawn/webgpu_cpp_print.h" +#include "gtest/gtest.h" using namespace dawn::native::d3d12; diff --git a/src/dawn/tests/unittests/native/CacheKeyTests.cpp b/src/dawn/tests/unittests/native/CacheKeyTests.cpp index 009b7b6c2a..8791176a47 100644 --- a/src/dawn/tests/unittests/native/CacheKeyTests.cpp +++ b/src/dawn/tests/unittests/native/CacheKeyTests.cpp @@ -12,14 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include -#include - #include #include #include +#include #include "dawn/native/CacheKey.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" namespace dawn::native { diff --git a/src/dawn/tests/unittests/native/CommandBufferEncodingTests.cpp b/src/dawn/tests/unittests/native/CommandBufferEncodingTests.cpp index eb94dccab5..bb6d5ead72 100644 --- a/src/dawn/tests/unittests/native/CommandBufferEncodingTests.cpp +++ b/src/dawn/tests/unittests/native/CommandBufferEncodingTests.cpp @@ -12,11 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnNativeTest.h" +#include +#include #include "dawn/native/CommandBuffer.h" #include "dawn/native/Commands.h" #include "dawn/native/ComputePassEncoder.h" +#include "dawn/tests/DawnNativeTest.h" #include "dawn/utils/WGPUHelpers.h" class CommandBufferEncodingTests : public DawnNativeTest { diff --git a/src/dawn/tests/unittests/native/DeviceCreationTests.cpp b/src/dawn/tests/unittests/native/DeviceCreationTests.cpp index 856a763699..e6bccedf51 100644 --- a/src/dawn/tests/unittests/native/DeviceCreationTests.cpp +++ b/src/dawn/tests/unittests/native/DeviceCreationTests.cpp @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "gtest/gtest.h" +#include #include "dawn/dawn_proc.h" #include "dawn/native/DawnNative.h" @@ -21,6 +21,7 @@ #include "dawn/tests/MockCallback.h" #include "dawn/utils/SystemUtils.h" #include "dawn/utils/WGPUHelpers.h" +#include "gtest/gtest.h" namespace { diff --git a/src/dawn/tests/unittests/native/mocks/DeviceMock.h b/src/dawn/tests/unittests/native/mocks/DeviceMock.h index 3fd16fbbd6..ba54b2b17b 100644 --- a/src/dawn/tests/unittests/native/mocks/DeviceMock.h +++ b/src/dawn/tests/unittests/native/mocks/DeviceMock.h @@ -15,10 +15,11 @@ #ifndef SRC_DAWN_TESTS_UNITTESTS_NATIVE_MOCKS_DEVICEMOCK_H_ #define SRC_DAWN_TESTS_UNITTESTS_NATIVE_MOCKS_DEVICEMOCK_H_ -#include "gmock/gmock.h" +#include #include "dawn/native/Device.h" #include "dawn/native/RenderPipeline.h" +#include "gmock/gmock.h" namespace dawn::native { diff --git a/src/dawn/tests/unittests/validation/BindGroupValidationTests.cpp b/src/dawn/tests/unittests/validation/BindGroupValidationTests.cpp index 543c6a86bd..a36e635857 100644 --- a/src/dawn/tests/unittests/validation/BindGroupValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/BindGroupValidationTests.cpp @@ -12,10 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include +#include +#include #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/validation/BufferValidationTests.cpp b/src/dawn/tests/unittests/validation/BufferValidationTests.cpp index dbfb2131d4..5f0b492b8e 100644 --- a/src/dawn/tests/unittests/validation/BufferValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/BufferValidationTests.cpp @@ -12,10 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include #include "gmock/gmock.h" - #include "dawn/tests/unittests/validation/ValidationTest.h" using namespace testing; diff --git a/src/dawn/tests/unittests/validation/CopyCommandsValidationTests.cpp b/src/dawn/tests/unittests/validation/CopyCommandsValidationTests.cpp index a7d26f1d7e..ab77f50900 100644 --- a/src/dawn/tests/unittests/validation/CopyCommandsValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/CopyCommandsValidationTests.cpp @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" diff --git a/src/dawn/tests/unittests/validation/DeviceValidationTests.cpp b/src/dawn/tests/unittests/validation/DeviceValidationTests.cpp index cd297d3b27..7b49c7d59b 100644 --- a/src/dawn/tests/unittests/validation/DeviceValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/DeviceValidationTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include #include "dawn/native/Device.h" #include "dawn/native/dawn_platform.h" +#include "dawn/tests/unittests/validation/ValidationTest.h" using ::testing::HasSubstr; diff --git a/src/dawn/tests/unittests/validation/DrawVertexAndIndexBufferOOBValidationTests.cpp b/src/dawn/tests/unittests/validation/DrawVertexAndIndexBufferOOBValidationTests.cpp index c0eacff748..4876e92716 100644 --- a/src/dawn/tests/unittests/validation/DrawVertexAndIndexBufferOOBValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/DrawVertexAndIndexBufferOOBValidationTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include #include "dawn/common/Constants.h" +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/validation/DynamicStateCommandValidationTests.cpp b/src/dawn/tests/unittests/validation/DynamicStateCommandValidationTests.cpp index 4fa869e766..68e194f4ae 100644 --- a/src/dawn/tests/unittests/validation/DynamicStateCommandValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/DynamicStateCommandValidationTests.cpp @@ -13,9 +13,9 @@ // limitations under the License. #include +#include #include "dawn/tests/unittests/validation/ValidationTest.h" - #include "dawn/utils/WGPUHelpers.h" class SetViewportTest : public ValidationTest { diff --git a/src/dawn/tests/unittests/validation/ErrorScopeValidationTests.cpp b/src/dawn/tests/unittests/validation/ErrorScopeValidationTests.cpp index 8184dc0d75..6d6e32b035 100644 --- a/src/dawn/tests/unittests/validation/ErrorScopeValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/ErrorScopeValidationTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "gmock/gmock.h" +#include #include "dawn/tests/MockCallback.h" #include "dawn/tests/unittests/validation/ValidationTest.h" +#include "gmock/gmock.h" using namespace testing; diff --git a/src/dawn/tests/unittests/validation/MinimumBufferSizeValidationTests.cpp b/src/dawn/tests/unittests/validation/MinimumBufferSizeValidationTests.cpp index ba9de12094..54b8f2aabe 100644 --- a/src/dawn/tests/unittests/validation/MinimumBufferSizeValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/MinimumBufferSizeValidationTests.cpp @@ -12,10 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include +#include #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/validation/OverridableConstantsValidationTests.cpp b/src/dawn/tests/unittests/validation/OverridableConstantsValidationTests.cpp index 2568f30cf5..c42aa1e675 100644 --- a/src/dawn/tests/unittests/validation/OverridableConstantsValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/OverridableConstantsValidationTests.cpp @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include "dawn/common/Constants.h" #include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/validation/QueryValidationTests.cpp b/src/dawn/tests/unittests/validation/QueryValidationTests.cpp index 19e10301c3..bc3b7fed91 100644 --- a/src/dawn/tests/unittests/validation/QueryValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/QueryValidationTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/WGPUHelpers.h" class QuerySetValidationTest : public ValidationTest { diff --git a/src/dawn/tests/unittests/validation/QueueOnSubmittedWorkDoneValidationTests.cpp b/src/dawn/tests/unittests/validation/QueueOnSubmittedWorkDoneValidationTests.cpp index 23bb1b1e6b..f5507e8418 100644 --- a/src/dawn/tests/unittests/validation/QueueOnSubmittedWorkDoneValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/QueueOnSubmittedWorkDoneValidationTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "gmock/gmock.h" +#include #include "dawn/tests/unittests/validation/ValidationTest.h" +#include "gmock/gmock.h" using namespace testing; diff --git a/src/dawn/tests/unittests/validation/QueueWriteTextureValidationTests.cpp b/src/dawn/tests/unittests/validation/QueueWriteTextureValidationTests.cpp index 79f28af8f5..371931f759 100644 --- a/src/dawn/tests/unittests/validation/QueueWriteTextureValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/QueueWriteTextureValidationTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include #include "dawn/common/Math.h" +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/TestUtils.h" #include "dawn/utils/TextureUtils.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/validation/RenderPipelineValidationTests.cpp b/src/dawn/tests/unittests/validation/RenderPipelineValidationTests.cpp index 9dfb367c3d..8a936c90a5 100644 --- a/src/dawn/tests/unittests/validation/RenderPipelineValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/RenderPipelineValidationTests.cpp @@ -14,9 +14,10 @@ #include #include +#include +#include #include "dawn/tests/unittests/validation/ValidationTest.h" - #include "dawn/common/Constants.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/validation/ResourceUsageTrackingTests.cpp b/src/dawn/tests/unittests/validation/ResourceUsageTrackingTests.cpp index fa8d38e20b..df148a4536 100644 --- a/src/dawn/tests/unittests/validation/ResourceUsageTrackingTests.cpp +++ b/src/dawn/tests/unittests/validation/ResourceUsageTrackingTests.cpp @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include +#include +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/validation/ShaderModuleValidationTests.cpp b/src/dawn/tests/unittests/validation/ShaderModuleValidationTests.cpp index 83a84a1b9d..16e443a44a 100644 --- a/src/dawn/tests/unittests/validation/ShaderModuleValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/ShaderModuleValidationTests.cpp @@ -13,9 +13,9 @@ // limitations under the License. #include +#include #include "dawn/tests/unittests/validation/ValidationTest.h" - #include "dawn/common/Constants.h" #include "dawn/native/ShaderModule.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" diff --git a/src/dawn/tests/unittests/validation/StorageTextureValidationTests.cpp b/src/dawn/tests/unittests/validation/StorageTextureValidationTests.cpp index cfe5973da5..41968fc7e0 100644 --- a/src/dawn/tests/unittests/validation/StorageTextureValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/StorageTextureValidationTests.cpp @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include "dawn/common/Assert.h" #include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" diff --git a/src/dawn/tests/unittests/validation/ToggleValidationTests.cpp b/src/dawn/tests/unittests/validation/ToggleValidationTests.cpp index 81892157a4..34acac4a4e 100644 --- a/src/dawn/tests/unittests/validation/ToggleValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/ToggleValidationTests.cpp @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include "dawn/tests/unittests/validation/ValidationTest.h" namespace { diff --git a/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp b/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp index 5e277d3332..0fee9c6663 100644 --- a/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include #include "dawn/tests/MockCallback.h" +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/ComboRenderBundleEncoderDescriptor.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/validation/ValidationTest.cpp b/src/dawn/tests/unittests/validation/ValidationTest.cpp index 5cf78c30d2..d0270576f9 100644 --- a/src/dawn/tests/unittests/validation/ValidationTest.cpp +++ b/src/dawn/tests/unittests/validation/ValidationTest.cpp @@ -12,15 +12,15 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" - #include +#include #include "dawn/common/Assert.h" #include "dawn/common/SystemUtils.h" #include "dawn/dawn_proc.h" #include "dawn/native/NullBackend.h" #include "dawn/tests/ToggleParser.h" +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/WireHelper.h" #include "dawn/webgpu.h" diff --git a/src/dawn/tests/unittests/validation/ValidationTest.h b/src/dawn/tests/unittests/validation/ValidationTest.h index 16190805c5..e202772389 100644 --- a/src/dawn/tests/unittests/validation/ValidationTest.h +++ b/src/dawn/tests/unittests/validation/ValidationTest.h @@ -15,9 +15,11 @@ #ifndef SRC_DAWN_TESTS_UNITTESTS_VALIDATION_VALIDATIONTEST_H_ #define SRC_DAWN_TESTS_UNITTESTS_VALIDATION_VALIDATIONTEST_H_ +#include +#include + #include "gmock/gmock.h" #include "gtest/gtest.h" - #include "dawn/common/Log.h" #include "dawn/native/DawnNative.h" #include "dawn/webgpu_cpp.h" diff --git a/src/dawn/tests/unittests/validation/VertexStateValidationTests.cpp b/src/dawn/tests/unittests/validation/VertexStateValidationTests.cpp index 514286b5dc..b4de1bb641 100644 --- a/src/dawn/tests/unittests/validation/VertexStateValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/VertexStateValidationTests.cpp @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include +#include +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/validation/VideoViewsValidationTests.cpp b/src/dawn/tests/unittests/validation/VideoViewsValidationTests.cpp index 508c86618c..088ed6015e 100644 --- a/src/dawn/tests/unittests/validation/VideoViewsValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/VideoViewsValidationTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/WGPUHelpers.h" namespace { diff --git a/src/dawn/tests/unittests/validation/WriteBufferTests.cpp b/src/dawn/tests/unittests/validation/WriteBufferTests.cpp index 0f5c9573e8..a3a5f89979 100644 --- a/src/dawn/tests/unittests/validation/WriteBufferTests.cpp +++ b/src/dawn/tests/unittests/validation/WriteBufferTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/validation/ValidationTest.h" +#include +#include "dawn/tests/unittests/validation/ValidationTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/unittests/wire/WireArgumentTests.cpp b/src/dawn/tests/unittests/wire/WireArgumentTests.cpp index c4e00279db..b928a53294 100644 --- a/src/dawn/tests/unittests/wire/WireArgumentTests.cpp +++ b/src/dawn/tests/unittests/wire/WireArgumentTests.cpp @@ -13,9 +13,9 @@ // limitations under the License. #include +#include #include "dawn/tests/unittests/wire/WireTest.h" - #include "dawn/common/Constants.h" using namespace testing; diff --git a/src/dawn/tests/unittests/wire/WireBufferMappingTests.cpp b/src/dawn/tests/unittests/wire/WireBufferMappingTests.cpp index eb831d83ab..c8c1b69be8 100644 --- a/src/dawn/tests/unittests/wire/WireBufferMappingTests.cpp +++ b/src/dawn/tests/unittests/wire/WireBufferMappingTests.cpp @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/wire/WireTest.h" +#include +#include +#include "dawn/tests/unittests/wire/WireTest.h" #include "dawn/wire/WireClient.h" using namespace testing; diff --git a/src/dawn/tests/unittests/wire/WireCreatePipelineAsyncTests.cpp b/src/dawn/tests/unittests/wire/WireCreatePipelineAsyncTests.cpp index 41db0917f2..7814c2107c 100644 --- a/src/dawn/tests/unittests/wire/WireCreatePipelineAsyncTests.cpp +++ b/src/dawn/tests/unittests/wire/WireCreatePipelineAsyncTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/wire/WireTest.h" +#include +#include "dawn/tests/unittests/wire/WireTest.h" #include "dawn/wire/WireClient.h" using namespace testing; diff --git a/src/dawn/tests/unittests/wire/WireErrorCallbackTests.cpp b/src/dawn/tests/unittests/wire/WireErrorCallbackTests.cpp index 0dfb60c31c..fc409ccd4b 100644 --- a/src/dawn/tests/unittests/wire/WireErrorCallbackTests.cpp +++ b/src/dawn/tests/unittests/wire/WireErrorCallbackTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/wire/WireTest.h" +#include +#include "dawn/tests/unittests/wire/WireTest.h" #include "dawn/wire/WireClient.h" using namespace testing; diff --git a/src/dawn/tests/unittests/wire/WireMemoryTransferServiceTests.cpp b/src/dawn/tests/unittests/wire/WireMemoryTransferServiceTests.cpp index 530e31d0cf..597f4aca9d 100644 --- a/src/dawn/tests/unittests/wire/WireMemoryTransferServiceTests.cpp +++ b/src/dawn/tests/unittests/wire/WireMemoryTransferServiceTests.cpp @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/wire/WireTest.h" +#include +#include +#include "dawn/tests/unittests/wire/WireTest.h" #include "dawn/wire/client/ClientMemoryTransferService_mock.h" #include "dawn/wire/server/ServerMemoryTransferService_mock.h" diff --git a/src/dawn/tests/unittests/wire/WireQueueTests.cpp b/src/dawn/tests/unittests/wire/WireQueueTests.cpp index 31b9c1faf9..bd759bb424 100644 --- a/src/dawn/tests/unittests/wire/WireQueueTests.cpp +++ b/src/dawn/tests/unittests/wire/WireQueueTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/wire/WireTest.h" +#include +#include "dawn/tests/unittests/wire/WireTest.h" #include "dawn/wire/WireClient.h" using namespace testing; diff --git a/src/dawn/tests/unittests/wire/WireShaderModuleTests.cpp b/src/dawn/tests/unittests/wire/WireShaderModuleTests.cpp index 9ffa6243aa..0bb8d3f1c3 100644 --- a/src/dawn/tests/unittests/wire/WireShaderModuleTests.cpp +++ b/src/dawn/tests/unittests/wire/WireShaderModuleTests.cpp @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/unittests/wire/WireTest.h" +#include +#include "dawn/tests/unittests/wire/WireTest.h" #include "dawn/wire/WireClient.h" using namespace testing; diff --git a/src/dawn/tests/white_box/D3D12DescriptorHeapTests.cpp b/src/dawn/tests/white_box/D3D12DescriptorHeapTests.cpp index 7f97bae217..2c74380332 100644 --- a/src/dawn/tests/white_box/D3D12DescriptorHeapTests.cpp +++ b/src/dawn/tests/white_box/D3D12DescriptorHeapTests.cpp @@ -12,7 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include +#include +#include #include "dawn/native/Device.h" #include "dawn/native/Toggles.h" @@ -20,6 +22,7 @@ #include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/ShaderVisibleDescriptorAllocatorD3D12.h" #include "dawn/native/d3d12/StagingDescriptorAllocatorD3D12.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/white_box/D3D12GPUTimestampCalibrationTests.cpp b/src/dawn/tests/white_box/D3D12GPUTimestampCalibrationTests.cpp index 465bcd0eaf..ce49598eba 100644 --- a/src/dawn/tests/white_box/D3D12GPUTimestampCalibrationTests.cpp +++ b/src/dawn/tests/white_box/D3D12GPUTimestampCalibrationTests.cpp @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/native/Buffer.h" #include "dawn/native/CommandEncoder.h" #include "dawn/native/d3d12/DeviceD3D12.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/WGPUHelpers.h" namespace { diff --git a/src/dawn/tests/white_box/D3D12ResourceHeapTests.cpp b/src/dawn/tests/white_box/D3D12ResourceHeapTests.cpp index 57f9c7ee5c..ab3eac24d8 100644 --- a/src/dawn/tests/white_box/D3D12ResourceHeapTests.cpp +++ b/src/dawn/tests/white_box/D3D12ResourceHeapTests.cpp @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/native/d3d12/BufferD3D12.h" #include "dawn/native/d3d12/TextureD3D12.h" +#include "dawn/tests/DawnTest.h" using namespace dawn::native::d3d12; diff --git a/src/dawn/tests/white_box/EGLImageWrappingTests.cpp b/src/dawn/tests/white_box/EGLImageWrappingTests.cpp index bc2495ffbc..ceee355273 100644 --- a/src/dawn/tests/white_box/EGLImageWrappingTests.cpp +++ b/src/dawn/tests/white_box/EGLImageWrappingTests.cpp @@ -14,11 +14,13 @@ #include -#include "dawn/tests/DawnTest.h" +#include +#include #include "dawn/common/DynamicLib.h" #include "dawn/native/OpenGLBackend.h" #include "dawn/native/opengl/DeviceGL.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/white_box/InternalStorageBufferBindingTests.cpp b/src/dawn/tests/white_box/InternalStorageBufferBindingTests.cpp index 259961407f..01f5878adf 100644 --- a/src/dawn/tests/white_box/InternalStorageBufferBindingTests.cpp +++ b/src/dawn/tests/white_box/InternalStorageBufferBindingTests.cpp @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/native/BindGroupLayout.h" #include "dawn/native/Device.h" #include "dawn/native/dawn_platform.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/WGPUHelpers.h" class InternalStorageBufferBindingTests : public DawnTest { diff --git a/src/dawn/tests/white_box/QueryInternalShaderTests.cpp b/src/dawn/tests/white_box/QueryInternalShaderTests.cpp index d888b258cb..c31035e4d0 100644 --- a/src/dawn/tests/white_box/QueryInternalShaderTests.cpp +++ b/src/dawn/tests/white_box/QueryInternalShaderTests.cpp @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/DawnTest.h" +#include #include "dawn/native/Buffer.h" #include "dawn/native/CommandEncoder.h" #include "dawn/native/QueryHelper.h" +#include "dawn/tests/DawnTest.h" #include "dawn/utils/WGPUHelpers.h" namespace { diff --git a/src/dawn/tests/white_box/VulkanImageWrappingTests.cpp b/src/dawn/tests/white_box/VulkanImageWrappingTests.cpp index 7a087e36d7..1bb9c28017 100644 --- a/src/dawn/tests/white_box/VulkanImageWrappingTests.cpp +++ b/src/dawn/tests/white_box/VulkanImageWrappingTests.cpp @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/white_box/VulkanImageWrappingTests.h" +#include #include "dawn/common/Math.h" #include "dawn/native/vulkan/AdapterVk.h" #include "dawn/native/vulkan/DeviceVk.h" #include "dawn/tests/DawnTest.h" +#include "dawn/tests/white_box/VulkanImageWrappingTests.h" #include "dawn/utils/ComboRenderPipelineDescriptor.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/tests/white_box/VulkanImageWrappingTests_DmaBuf.cpp b/src/dawn/tests/white_box/VulkanImageWrappingTests_DmaBuf.cpp index 37dd4c0a48..9ef7c3a660 100644 --- a/src/dawn/tests/white_box/VulkanImageWrappingTests_DmaBuf.cpp +++ b/src/dawn/tests/white_box/VulkanImageWrappingTests_DmaBuf.cpp @@ -12,13 +12,18 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/tests/white_box/VulkanImageWrappingTests.h" - #include #include #include #include +#include +#include +#include +#include + +#include "dawn/tests/white_box/VulkanImageWrappingTests.h" + namespace dawn::native::vulkan { ExternalImageDescriptorVkForTesting::ExternalImageDescriptorVkForTesting() diff --git a/src/dawn/tests/white_box/VulkanImageWrappingTests_OpaqueFD.cpp b/src/dawn/tests/white_box/VulkanImageWrappingTests_OpaqueFD.cpp index 310f13f3e6..9393c06d87 100644 --- a/src/dawn/tests/white_box/VulkanImageWrappingTests_OpaqueFD.cpp +++ b/src/dawn/tests/white_box/VulkanImageWrappingTests_OpaqueFD.cpp @@ -14,13 +14,15 @@ #include -#include "gtest/gtest.h" - -#include "dawn/tests/white_box/VulkanImageWrappingTests.h" +#include +#include +#include #include "dawn/native/vulkan/DeviceVk.h" #include "dawn/native/vulkan/FencedDeleter.h" #include "dawn/native/vulkan/ResourceMemoryAllocatorVk.h" +#include "dawn/tests/white_box/VulkanImageWrappingTests.h" +#include "gtest/gtest.h" namespace dawn::native::vulkan { diff --git a/src/dawn/utils/GLFWUtils.cpp b/src/dawn/utils/GLFWUtils.cpp index 75f986a873..04cd8e1b39 100644 --- a/src/dawn/utils/GLFWUtils.cpp +++ b/src/dawn/utils/GLFWUtils.cpp @@ -13,9 +13,9 @@ // limitations under the License. #include +#include #include "dawn/utils/GLFWUtils.h" - #include "GLFW/glfw3.h" #include "dawn/common/Platform.h" diff --git a/src/dawn/utils/TestUtils.cpp b/src/dawn/utils/TestUtils.cpp index 1556f47108..b33c20699e 100644 --- a/src/dawn/utils/TestUtils.cpp +++ b/src/dawn/utils/TestUtils.cpp @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/utils/TestUtils.h" - +#include #include #include "dawn/common/Assert.h" #include "dawn/common/Constants.h" #include "dawn/common/Math.h" +#include "dawn/utils/TestUtils.h" #include "dawn/utils/TextureUtils.h" #include "dawn/utils/WGPUHelpers.h" diff --git a/src/dawn/utils/WireHelper.cpp b/src/dawn/utils/WireHelper.cpp index 73e548fe62..294fb5f3d0 100644 --- a/src/dawn/utils/WireHelper.cpp +++ b/src/dawn/utils/WireHelper.cpp @@ -12,14 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/utils/WireHelper.h" - #include #include #include #include #include #include +#include #include "dawn/common/Assert.h" #include "dawn/common/Log.h" @@ -27,6 +26,7 @@ #include "dawn/dawn_proc.h" #include "dawn/native/DawnNative.h" #include "dawn/utils/TerribleCommandBuffer.h" +#include "dawn/utils/WireHelper.h" #include "dawn/wire/WireClient.h" #include "dawn/wire/WireServer.h" diff --git a/src/dawn/utils/WireHelper.h b/src/dawn/utils/WireHelper.h index c321e650b7..3bc709d903 100644 --- a/src/dawn/utils/WireHelper.h +++ b/src/dawn/utils/WireHelper.h @@ -17,6 +17,7 @@ #include #include +#include #include "dawn/webgpu_cpp.h" diff --git a/src/dawn/wire/ChunkedCommandHandler.cpp b/src/dawn/wire/ChunkedCommandHandler.cpp index 4d514c19af..a176f262d3 100644 --- a/src/dawn/wire/ChunkedCommandHandler.cpp +++ b/src/dawn/wire/ChunkedCommandHandler.cpp @@ -16,6 +16,7 @@ #include #include +#include #include "dawn/common/Alloc.h" diff --git a/src/dawn/wire/ChunkedCommandHandler.h b/src/dawn/wire/ChunkedCommandHandler.h index 8421585708..03577cd487 100644 --- a/src/dawn/wire/ChunkedCommandHandler.h +++ b/src/dawn/wire/ChunkedCommandHandler.h @@ -16,6 +16,7 @@ #define SRC_DAWN_WIRE_CHUNKEDCOMMANDHANDLER_H_ #include +#include #include #include "dawn/common/Assert.h" diff --git a/src/dawn/wire/ChunkedCommandSerializer.h b/src/dawn/wire/ChunkedCommandSerializer.h index b91862769d..54d5f114a2 100644 --- a/src/dawn/wire/ChunkedCommandSerializer.h +++ b/src/dawn/wire/ChunkedCommandSerializer.h @@ -18,6 +18,7 @@ #include #include #include +#include #include "dawn/common/Alloc.h" #include "dawn/common/Compiler.h" diff --git a/src/dawn/wire/client/Buffer.cpp b/src/dawn/wire/client/Buffer.cpp index 21db737a08..a490eb486a 100644 --- a/src/dawn/wire/client/Buffer.cpp +++ b/src/dawn/wire/client/Buffer.cpp @@ -14,6 +14,9 @@ #include "dawn/wire/client/Buffer.h" +#include +#include + #include "dawn/wire/BufferConsumer_impl.h" #include "dawn/wire/WireCmd_autogen.h" #include "dawn/wire/client/Client.h" diff --git a/src/dawn/wire/client/Buffer.h b/src/dawn/wire/client/Buffer.h index c11082f8b6..17ff4ee6c1 100644 --- a/src/dawn/wire/client/Buffer.h +++ b/src/dawn/wire/client/Buffer.h @@ -15,8 +15,9 @@ #ifndef SRC_DAWN_WIRE_CLIENT_BUFFER_H_ #define SRC_DAWN_WIRE_CLIENT_BUFFER_H_ -#include "dawn/webgpu.h" +#include +#include "dawn/webgpu.h" #include "dawn/wire/WireClient.h" #include "dawn/wire/client/ObjectBase.h" #include "dawn/wire/client/RequestTracker.h" diff --git a/src/dawn/wire/client/Client.h b/src/dawn/wire/client/Client.h index bfc78acb2d..d9039b512b 100644 --- a/src/dawn/wire/client/Client.h +++ b/src/dawn/wire/client/Client.h @@ -15,9 +15,10 @@ #ifndef SRC_DAWN_WIRE_CLIENT_CLIENT_H_ #define SRC_DAWN_WIRE_CLIENT_CLIENT_H_ +#include + #include "dawn/webgpu.h" #include "dawn/wire/Wire.h" - #include "dawn/common/LinkedList.h" #include "dawn/common/NonCopyable.h" #include "dawn/wire/ChunkedCommandSerializer.h" diff --git a/src/dawn/wire/client/ClientInlineMemoryTransferService.cpp b/src/dawn/wire/client/ClientInlineMemoryTransferService.cpp index 5b70c5b3f7..c9882b3fa6 100644 --- a/src/dawn/wire/client/ClientInlineMemoryTransferService.cpp +++ b/src/dawn/wire/client/ClientInlineMemoryTransferService.cpp @@ -13,6 +13,8 @@ // limitations under the License. #include +#include +#include #include "dawn/common/Alloc.h" #include "dawn/common/Assert.h" diff --git a/src/dawn/wire/client/Device.cpp b/src/dawn/wire/client/Device.cpp index 9378bd5b45..ddcb280183 100644 --- a/src/dawn/wire/client/Device.cpp +++ b/src/dawn/wire/client/Device.cpp @@ -14,6 +14,8 @@ #include "dawn/wire/client/Device.h" +#include + #include "dawn/common/Assert.h" #include "dawn/common/Log.h" #include "dawn/wire/client/ApiObjects_autogen.h" diff --git a/src/dawn/wire/client/ObjectAllocator.h b/src/dawn/wire/client/ObjectAllocator.h index edab9b84b5..407b997436 100644 --- a/src/dawn/wire/client/ObjectAllocator.h +++ b/src/dawn/wire/client/ObjectAllocator.h @@ -17,6 +17,7 @@ #include #include +#include #include #include "dawn/common/Assert.h" diff --git a/src/dawn/wire/client/RequestTracker.h b/src/dawn/wire/client/RequestTracker.h index c7df69033d..a39175ae38 100644 --- a/src/dawn/wire/client/RequestTracker.h +++ b/src/dawn/wire/client/RequestTracker.h @@ -17,6 +17,7 @@ #include #include +#include #include "dawn/common/Assert.h" #include "dawn/common/NonCopyable.h" diff --git a/src/dawn/wire/server/ObjectStorage.h b/src/dawn/wire/server/ObjectStorage.h index 5672ec7022..0c2d4d8aa2 100644 --- a/src/dawn/wire/server/ObjectStorage.h +++ b/src/dawn/wire/server/ObjectStorage.h @@ -17,7 +17,10 @@ #include #include +#include #include +#include +#include #include "dawn/wire/WireCmd_autogen.h" #include "dawn/wire/WireServer.h" diff --git a/src/dawn/wire/server/Server.h b/src/dawn/wire/server/Server.h index caa1bc78f1..de0dab49a5 100644 --- a/src/dawn/wire/server/Server.h +++ b/src/dawn/wire/server/Server.h @@ -15,6 +15,9 @@ #ifndef SRC_DAWN_WIRE_SERVER_SERVER_H_ #define SRC_DAWN_WIRE_SERVER_SERVER_H_ +#include +#include + #include "dawn/wire/ChunkedCommandSerializer.h" #include "dawn/wire/server/ServerBase_autogen.h" diff --git a/src/dawn/wire/server/ServerAdapter.cpp b/src/dawn/wire/server/ServerAdapter.cpp index 05184552ef..a1df75bb31 100644 --- a/src/dawn/wire/server/ServerAdapter.cpp +++ b/src/dawn/wire/server/ServerAdapter.cpp @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "dawn/wire/server/Server.h" +#include #include "dawn/wire/SupportedFeatures.h" +#include "dawn/wire/server/Server.h" namespace dawn::wire::server { diff --git a/src/dawn/wire/server/ServerBuffer.cpp b/src/dawn/wire/server/ServerBuffer.cpp index c92afdbc44..897909318f 100644 --- a/src/dawn/wire/server/ServerBuffer.cpp +++ b/src/dawn/wire/server/ServerBuffer.cpp @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include #include "dawn/common/Assert.h" diff --git a/src/dawn/wire/server/ServerInlineMemoryTransferService.cpp b/src/dawn/wire/server/ServerInlineMemoryTransferService.cpp index 3efe5e3b36..e89a8bc3e4 100644 --- a/src/dawn/wire/server/ServerInlineMemoryTransferService.cpp +++ b/src/dawn/wire/server/ServerInlineMemoryTransferService.cpp @@ -13,6 +13,7 @@ // limitations under the License. #include +#include #include "dawn/common/Assert.h" #include "dawn/wire/WireServer.h" diff --git a/src/dawn/wire/server/ServerInstance.cpp b/src/dawn/wire/server/ServerInstance.cpp index 99498d0fa9..529bb48b77 100644 --- a/src/dawn/wire/server/ServerInstance.cpp +++ b/src/dawn/wire/server/ServerInstance.cpp @@ -13,9 +13,9 @@ // limitations under the License. #include +#include #include "dawn/wire/server/Server.h" - #include "dawn/wire/SupportedFeatures.h" namespace dawn::wire::server { diff --git a/src/dawn/wire/server/ServerQueue.cpp b/src/dawn/wire/server/ServerQueue.cpp index 68e1ea82ee..80528e726e 100644 --- a/src/dawn/wire/server/ServerQueue.cpp +++ b/src/dawn/wire/server/ServerQueue.cpp @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include "dawn/common/Assert.h" #include "dawn/wire/server/Server.h"