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 <cwallez@chromium.org>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair 2022-04-20 00:58:34 +00:00 committed by Dawn LUCI CQ
parent 4d6dfd5597
commit 13e9699b1c
374 changed files with 833 additions and 184 deletions

View File

@ -1,4 +1,3 @@
filter=-build/include_what_you_use
filter=-build/namespaces filter=-build/namespaces
filter=-readability/casting filter=-readability/casting
filter=-readability/namespace filter=-readability/namespace

View File

@ -14,6 +14,8 @@
#include "dawn/common/DynamicLib.h" #include "dawn/common/DynamicLib.h"
#include <utility>
#include "dawn/common/Platform.h" #include "dawn/common/Platform.h"
#if DAWN_PLATFORM_WINDOWS #if DAWN_PLATFORM_WINDOWS

View File

@ -15,6 +15,7 @@
#include "dawn/common/Log.h" #include "dawn/common/Log.h"
#include <cstdio> #include <cstdio>
#include <string>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"
#include "dawn/common/Platform.h" #include "dawn/common/Platform.h"

View File

@ -15,6 +15,7 @@
#ifndef SRC_DAWN_COMMON_SERIALQUEUE_H_ #ifndef SRC_DAWN_COMMON_SERIALQUEUE_H_
#define SRC_DAWN_COMMON_SERIALQUEUE_H_ #define SRC_DAWN_COMMON_SERIALQUEUE_H_
#include <utility>
#include <vector> #include <vector>
#include "dawn/common/SerialStorage.h" #include "dawn/common/SerialStorage.h"

View File

@ -8,6 +8,7 @@
#define SRC_DAWN_COMMON_STACKCONTAINER_H_ #define SRC_DAWN_COMMON_STACKCONTAINER_H_
#include <cstddef> #include <cstddef>
#include <memory>
#include <vector> #include <vector>
#include "dawn/common/Compiler.h" #include "dawn/common/Compiler.h"

View File

@ -17,6 +17,7 @@
#include <optional> #include <optional>
#include <string> #include <string>
#include <utility>
#include "dawn/common/Platform.h" #include "dawn/common/Platform.h"

View File

@ -118,7 +118,7 @@ namespace detail {
} }
constexpr TypedIntegerImpl& operator--() { constexpr TypedIntegerImpl& operator--() {
assert(this->mValue > std::numeric_limits<T>::min()); ASSERT(this->mValue > std::numeric_limits<T>::min());
--this->mValue; --this->mValue;
return *this; return *this;
} }

View File

@ -17,7 +17,9 @@
#include <array> #include <array>
#include <cstddef> #include <cstddef>
#include <limits>
#include <type_traits> #include <type_traits>
#include <utility>
#include "dawn/common/TypedInteger.h" #include "dawn/common/TypedInteger.h"
#include "dawn/common/UnderlyingType.h" #include "dawn/common/UnderlyingType.h"

View File

@ -15,6 +15,9 @@
#ifndef SRC_DAWN_COMMON_ITYP_STACK_VEC_H_ #ifndef SRC_DAWN_COMMON_ITYP_STACK_VEC_H_
#define SRC_DAWN_COMMON_ITYP_STACK_VEC_H_ #define SRC_DAWN_COMMON_ITYP_STACK_VEC_H_
#include <limits>
#include <vector>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"
#include "dawn/common/StackContainer.h" #include "dawn/common/StackContainer.h"
#include "dawn/common/UnderlyingType.h" #include "dawn/common/UnderlyingType.h"

View File

@ -15,6 +15,7 @@
#ifndef SRC_DAWN_COMMON_ITYP_VECTOR_H_ #ifndef SRC_DAWN_COMMON_ITYP_VECTOR_H_
#define SRC_DAWN_COMMON_ITYP_VECTOR_H_ #define SRC_DAWN_COMMON_ITYP_VECTOR_H_
#include <limits>
#include <type_traits> #include <type_traits>
#include <vector> #include <vector>

View File

@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "DawnWireServerFuzzer.h" #include <vector>
#include "DawnWireServerFuzzer.h"
#include "dawn/native/DawnNative.h" #include "dawn/native/DawnNative.h"
#include "testing/libfuzzer/libfuzzer_exports.h" #include "testing/libfuzzer/libfuzzer_exports.h"

View File

@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "DawnWireServerFuzzer.h" #include <vector>
#include "DawnWireServerFuzzer.h"
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"
#include "dawn/native/DawnNative.h" #include "dawn/native/DawnNative.h"
#include "testing/libfuzzer/libfuzzer_exports.h" #include "testing/libfuzzer/libfuzzer_exports.h"

View File

@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "DawnWireServerFuzzer.h" #include <vector>
#include "DawnWireServerFuzzer.h"
#include "dawn/native/DawnNative.h" #include "dawn/native/DawnNative.h"
#include "testing/libfuzzer/libfuzzer_exports.h" #include "testing/libfuzzer/libfuzzer_exports.h"

View File

@ -15,6 +15,7 @@
#include "dawn/fuzzers/DawnWireServerFuzzer.h" #include "dawn/fuzzers/DawnWireServerFuzzer.h"
#include <fstream> #include <fstream>
#include <memory>
#include <vector> #include <vector>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"

View File

@ -14,6 +14,9 @@
#include "dawn/native/Adapter.h" #include "dawn/native/Adapter.h"
#include <algorithm>
#include <memory>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/native/Device.h" #include "dawn/native/Device.h"
#include "dawn/native/Instance.h" #include "dawn/native/Instance.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/AsyncTask.h" #include "dawn/native/AsyncTask.h"
#include <utility>
#include "dawn/platform/DawnPlatform.h" #include "dawn/platform/DawnPlatform.h"
namespace dawn::native { namespace dawn::native {

View File

@ -16,6 +16,7 @@
#define SRC_DAWN_NATIVE_BACKENDCONNECTION_H_ #define SRC_DAWN_NATIVE_BACKENDCONNECTION_H_
#include <memory> #include <memory>
#include <vector>
#include "dawn/native/Adapter.h" #include "dawn/native/Adapter.h"
#include "dawn/native/DawnNative.h" #include "dawn/native/DawnNative.h"

View File

@ -16,6 +16,7 @@
#define SRC_DAWN_NATIVE_BINDGROUP_H_ #define SRC_DAWN_NATIVE_BINDGROUP_H_
#include <array> #include <array>
#include <vector>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/common/Math.h" #include "dawn/common/Math.h"

View File

@ -16,10 +16,11 @@
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
#include <limits>
#include <set> #include <set>
#include <vector>
#include "dawn/common/BitSetIterator.h" #include "dawn/common/BitSetIterator.h"
#include "dawn/native/ChainUtils_autogen.h" #include "dawn/native/ChainUtils_autogen.h"
#include "dawn/native/Device.h" #include "dawn/native/Device.h"
#include "dawn/native/ObjectBase.h" #include "dawn/native/ObjectBase.h"

View File

@ -15,8 +15,10 @@
#ifndef SRC_DAWN_NATIVE_BINDGROUPLAYOUT_H_ #ifndef SRC_DAWN_NATIVE_BINDGROUPLAYOUT_H_
#define SRC_DAWN_NATIVE_BINDGROUPLAYOUT_H_ #define SRC_DAWN_NATIVE_BINDGROUPLAYOUT_H_
#include <algorithm>
#include <bitset> #include <bitset>
#include <map> #include <map>
#include <string>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/common/Math.h" #include "dawn/common/Math.h"

View File

@ -16,6 +16,7 @@
#define SRC_DAWN_NATIVE_BINDINGINFO_H_ #define SRC_DAWN_NATIVE_BINDINGINFO_H_
#include <cstdint> #include <cstdint>
#include <vector>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/common/ityp_array.h" #include "dawn/common/ityp_array.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/BuddyMemoryAllocator.h" #include "dawn/native/BuddyMemoryAllocator.h"
#include <utility>
#include "dawn/common/Math.h" #include "dawn/common/Math.h"
#include "dawn/native/ResourceHeapAllocator.h" #include "dawn/native/ResourceHeapAllocator.h"

View File

@ -16,6 +16,7 @@
#include <cstdio> #include <cstdio>
#include <cstring> #include <cstring>
#include <limits>
#include <utility> #include <utility>
#include "dawn/common/Alloc.h" #include "dawn/common/Alloc.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/CallbackTaskManager.h" #include "dawn/native/CallbackTaskManager.h"
#include <utility>
namespace dawn::native { namespace dawn::native {
bool CallbackTaskManager::IsEmpty() { bool CallbackTaskManager::IsEmpty() {

View File

@ -17,6 +17,7 @@
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
#include <limits>
#include <vector> #include <vector>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"

View File

@ -15,6 +15,8 @@
#ifndef SRC_DAWN_NATIVE_COMMANDBUFFERSTATETRACKER_H_ #ifndef SRC_DAWN_NATIVE_COMMANDBUFFERSTATETRACKER_H_
#define SRC_DAWN_NATIVE_COMMANDBUFFERSTATETRACKER_H_ #define SRC_DAWN_NATIVE_COMMANDBUFFERSTATETRACKER_H_
#include <vector>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/common/ityp_array.h" #include "dawn/common/ityp_array.h"
#include "dawn/common/ityp_bitset.h" #include "dawn/common/ityp_bitset.h"

View File

@ -14,6 +14,9 @@
#include "dawn/native/CommandEncoder.h" #include "dawn/native/CommandEncoder.h"
#include <utility>
#include <vector>
#include "dawn/common/BitSetIterator.h" #include "dawn/common/BitSetIterator.h"
#include "dawn/common/Math.h" #include "dawn/common/Math.h"
#include "dawn/native/BindGroup.h" #include "dawn/native/BindGroup.h"

View File

@ -15,6 +15,7 @@
#ifndef SRC_DAWN_NATIVE_COMMANDENCODER_H_ #ifndef SRC_DAWN_NATIVE_COMMANDENCODER_H_
#define SRC_DAWN_NATIVE_COMMANDENCODER_H_ #define SRC_DAWN_NATIVE_COMMANDENCODER_H_
#include <set>
#include <string> #include <string>
#include "dawn/native/dawn_platform.h" #include "dawn/native/dawn_platform.h"

View File

@ -14,6 +14,10 @@
#include "dawn/native/CommandValidation.h" #include "dawn/native/CommandValidation.h"
#include <algorithm>
#include <limits>
#include <utility>
#include "dawn/common/BitSetIterator.h" #include "dawn/common/BitSetIterator.h"
#include "dawn/native/BindGroup.h" #include "dawn/native/BindGroup.h"
#include "dawn/native/Buffer.h" #include "dawn/native/Buffer.h"

View File

@ -17,6 +17,7 @@
#include <array> #include <array>
#include <bitset> #include <bitset>
#include <vector>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"

View File

@ -15,6 +15,9 @@
#ifndef SRC_DAWN_NATIVE_COMPUTEPASSENCODER_H_ #ifndef SRC_DAWN_NATIVE_COMPUTEPASSENCODER_H_
#define SRC_DAWN_NATIVE_COMPUTEPASSENCODER_H_ #define SRC_DAWN_NATIVE_COMPUTEPASSENCODER_H_
#include <utility>
#include <vector>
#include "dawn/native/CommandBufferStateTracker.h" #include "dawn/native/CommandBufferStateTracker.h"
#include "dawn/native/Error.h" #include "dawn/native/Error.h"
#include "dawn/native/Forward.h" #include "dawn/native/Forward.h"

View File

@ -15,6 +15,7 @@
#include "dawn/native/CopyTextureForBrowserHelper.h" #include "dawn/native/CopyTextureForBrowserHelper.h"
#include <unordered_set> #include <unordered_set>
#include <utility>
#include "dawn/common/Log.h" #include "dawn/common/Log.h"
#include "dawn/native/BindGroup.h" #include "dawn/native/BindGroup.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/CreatePipelineAsyncTask.h" #include "dawn/native/CreatePipelineAsyncTask.h"
#include <utility>
#include "dawn/native/AsyncTask.h" #include "dawn/native/AsyncTask.h"
#include "dawn/native/ComputePipeline.h" #include "dawn/native/ComputePipeline.h"
#include "dawn/native/Device.h" #include "dawn/native/Device.h"

View File

@ -15,6 +15,9 @@
#ifndef SRC_DAWN_NATIVE_CREATEPIPELINEASYNCTASK_H_ #ifndef SRC_DAWN_NATIVE_CREATEPIPELINEASYNCTASK_H_
#define SRC_DAWN_NATIVE_CREATEPIPELINEASYNCTASK_H_ #define SRC_DAWN_NATIVE_CREATEPIPELINEASYNCTASK_H_
#include <memory>
#include <string>
#include "dawn/common/RefCounted.h" #include "dawn/common/RefCounted.h"
#include "dawn/native/CallbackTaskManager.h" #include "dawn/native/CallbackTaskManager.h"
#include "dawn/native/Error.h" #include "dawn/native/Error.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/DawnNative.h" #include "dawn/native/DawnNative.h"
#include <vector>
#include "dawn/common/Log.h" #include "dawn/common/Log.h"
#include "dawn/native/BindGroupLayout.h" #include "dawn/native/BindGroupLayout.h"
#include "dawn/native/Buffer.h" #include "dawn/native/Buffer.h"

View File

@ -14,6 +14,7 @@
#include "dawn/native/Device.h" #include "dawn/native/Device.h"
#include <algorithm>
#include <array> #include <array>
#include <mutex> #include <mutex>
#include <unordered_set> #include <unordered_set>

View File

@ -15,8 +15,11 @@
#ifndef SRC_DAWN_NATIVE_DEVICE_H_ #ifndef SRC_DAWN_NATIVE_DEVICE_H_
#define SRC_DAWN_NATIVE_DEVICE_H_ #define SRC_DAWN_NATIVE_DEVICE_H_
#include <memory>
#include <mutex> #include <mutex>
#include <string>
#include <utility> #include <utility>
#include <vector>
#include "dawn/native/CacheKey.h" #include "dawn/native/CacheKey.h"
#include "dawn/native/Commands.h" #include "dawn/native/Commands.h"

View File

@ -13,6 +13,9 @@
// limitations under the License. // limitations under the License.
#include "dawn/native/DynamicUploader.h" #include "dawn/native/DynamicUploader.h"
#include <utility>
#include "dawn/common/Math.h" #include "dawn/common/Math.h"
#include "dawn/native/Device.h" #include "dawn/native/Device.h"

View File

@ -15,6 +15,9 @@
#ifndef SRC_DAWN_NATIVE_DYNAMICUPLOADER_H_ #ifndef SRC_DAWN_NATIVE_DYNAMICUPLOADER_H_
#define SRC_DAWN_NATIVE_DYNAMICUPLOADER_H_ #define SRC_DAWN_NATIVE_DYNAMICUPLOADER_H_
#include <memory>
#include <vector>
#include "dawn/native/Forward.h" #include "dawn/native/Forward.h"
#include "dawn/native/IntegerTypes.h" #include "dawn/native/IntegerTypes.h"
#include "dawn/native/RingBufferAllocator.h" #include "dawn/native/RingBufferAllocator.h"

View File

@ -15,7 +15,10 @@
#ifndef SRC_DAWN_NATIVE_ENCODINGCONTEXT_H_ #ifndef SRC_DAWN_NATIVE_ENCODINGCONTEXT_H_
#define SRC_DAWN_NATIVE_ENCODINGCONTEXT_H_ #define SRC_DAWN_NATIVE_ENCODINGCONTEXT_H_
#include <memory>
#include <string> #include <string>
#include <utility>
#include <vector>
#include "dawn/native/CommandAllocator.h" #include "dawn/native/CommandAllocator.h"
#include "dawn/native/Error.h" #include "dawn/native/Error.h"

View File

@ -15,7 +15,9 @@
#ifndef SRC_DAWN_NATIVE_ERROR_H_ #ifndef SRC_DAWN_NATIVE_ERROR_H_
#define SRC_DAWN_NATIVE_ERROR_H_ #define SRC_DAWN_NATIVE_ERROR_H_
#include <memory>
#include <string> #include <string>
#include <utility>
#include "absl/strings/str_format.h" #include "absl/strings/str_format.h"
#include "dawn/common/Result.h" #include "dawn/common/Result.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/ErrorData.h" #include "dawn/native/ErrorData.h"
#include <utility>
#include "dawn/native/Error.h" #include "dawn/native/Error.h"
#include "dawn/native/ObjectBase.h" #include "dawn/native/ObjectBase.h"
#include "dawn/native/dawn_platform.h" #include "dawn/native/dawn_platform.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/ErrorScope.h" #include "dawn/native/ErrorScope.h"
#include <utility>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"
namespace dawn::native { namespace dawn::native {

View File

@ -14,6 +14,8 @@
#include "dawn/native/ExternalTexture.h" #include "dawn/native/ExternalTexture.h"
#include <utility>
#include "dawn/native/Buffer.h" #include "dawn/native/Buffer.h"
#include "dawn/native/Device.h" #include "dawn/native/Device.h"
#include "dawn/native/ObjectType_autogen.h" #include "dawn/native/ObjectType_autogen.h"

View File

@ -12,11 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "dawn/native/Features.h"
#include <array> #include <array>
#include <utility>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"
#include "dawn/common/BitSetIterator.h" #include "dawn/common/BitSetIterator.h"
#include "dawn/native/Features.h"
namespace dawn::native { namespace dawn::native {
namespace { namespace {

View File

@ -16,6 +16,7 @@
#define SRC_DAWN_NATIVE_FEATURES_H_ #define SRC_DAWN_NATIVE_FEATURES_H_
#include <bitset> #include <bitset>
#include <string>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>

View File

@ -14,8 +14,12 @@
#include "dawn/native/IndirectDrawValidationEncoder.h" #include "dawn/native/IndirectDrawValidationEncoder.h"
#include <algorithm>
#include <cstdlib> #include <cstdlib>
#include <limits> #include <limits>
#include <memory>
#include <utility>
#include <vector>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/common/Math.h" #include "dawn/common/Math.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/Instance.h" #include "dawn/native/Instance.h"
#include <utility>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"
#include "dawn/common/GPUInfo.h" #include "dawn/common/GPUInfo.h"
#include "dawn/common/Log.h" #include "dawn/common/Log.h"

View File

@ -17,6 +17,7 @@
#include <array> #include <array>
#include <memory> #include <memory>
#include <string>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>

View File

@ -16,6 +16,8 @@
#define SRC_DAWN_NATIVE_PASSRESOURCEUSAGETRACKER_H_ #define SRC_DAWN_NATIVE_PASSRESOURCEUSAGETRACKER_H_
#include <map> #include <map>
#include <set>
#include <vector>
#include "dawn/native/PassResourceUsage.h" #include "dawn/native/PassResourceUsage.h"

View File

@ -15,7 +15,9 @@
#ifndef SRC_DAWN_NATIVE_PERSISTENTCACHE_H_ #ifndef SRC_DAWN_NATIVE_PERSISTENTCACHE_H_
#define SRC_DAWN_NATIVE_PERSISTENTCACHE_H_ #define SRC_DAWN_NATIVE_PERSISTENTCACHE_H_
#include <memory>
#include <mutex> #include <mutex>
#include <utility>
#include <vector> #include <vector>
#include "dawn/native/Error.h" #include "dawn/native/Error.h"

View File

@ -14,6 +14,10 @@
#include "dawn/native/Pipeline.h" #include "dawn/native/Pipeline.h"
#include <algorithm>
#include <unordered_set>
#include <utility>
#include "dawn/native/BindGroupLayout.h" #include "dawn/native/BindGroupLayout.h"
#include "dawn/native/Device.h" #include "dawn/native/Device.h"
#include "dawn/native/ObjectBase.h" #include "dawn/native/ObjectBase.h"

View File

@ -17,6 +17,9 @@
#include <array> #include <array>
#include <bitset> #include <bitset>
#include <map>
#include <string>
#include <vector>
#include "dawn/native/CachedObject.h" #include "dawn/native/CachedObject.h"
#include "dawn/native/Forward.h" #include "dawn/native/Forward.h"

View File

@ -14,6 +14,10 @@
#include "dawn/native/PipelineLayout.h" #include "dawn/native/PipelineLayout.h"
#include <algorithm>
#include <map>
#include <utility>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"
#include "dawn/common/BitSetIterator.h" #include "dawn/common/BitSetIterator.h"
#include "dawn/common/ityp_stack_vec.h" #include "dawn/common/ityp_stack_vec.h"

View File

@ -17,6 +17,8 @@
#include <array> #include <array>
#include <bitset> #include <bitset>
#include <string>
#include <vector>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/common/ityp_array.h" #include "dawn/common/ityp_array.h"

View File

@ -13,6 +13,9 @@
// limitations under the License. // limitations under the License.
#include "dawn/native/PooledResourceMemoryAllocator.h" #include "dawn/native/PooledResourceMemoryAllocator.h"
#include <utility>
#include "dawn/native/Device.h" #include "dawn/native/Device.h"
namespace dawn::native { namespace dawn::native {

View File

@ -16,6 +16,7 @@
#define SRC_DAWN_NATIVE_POOLEDRESOURCEMEMORYALLOCATOR_H_ #define SRC_DAWN_NATIVE_POOLEDRESOURCEMEMORYALLOCATOR_H_
#include <deque> #include <deque>
#include <memory>
#include "dawn/common/SerialQueue.h" #include "dawn/common/SerialQueue.h"
#include "dawn/native/ResourceHeapAllocator.h" #include "dawn/native/ResourceHeapAllocator.h"

View File

@ -14,6 +14,7 @@
#include "dawn/native/QueryHelper.h" #include "dawn/native/QueryHelper.h"
#include <algorithm>
#include <cmath> #include <cmath>
#include "dawn/native/BindGroup.h" #include "dawn/native/BindGroup.h"

View File

@ -15,6 +15,8 @@
#ifndef SRC_DAWN_NATIVE_QUERYSET_H_ #ifndef SRC_DAWN_NATIVE_QUERYSET_H_
#define SRC_DAWN_NATIVE_QUERYSET_H_ #define SRC_DAWN_NATIVE_QUERYSET_H_
#include <vector>
#include "dawn/native/Error.h" #include "dawn/native/Error.h"
#include "dawn/native/Forward.h" #include "dawn/native/Forward.h"
#include "dawn/native/ObjectBase.h" #include "dawn/native/ObjectBase.h"

View File

@ -14,7 +14,10 @@
#include "dawn/native/Queue.h" #include "dawn/native/Queue.h"
#include <algorithm>
#include <cstring> #include <cstring>
#include <utility>
#include <vector>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/native/Buffer.h" #include "dawn/native/Buffer.h"

View File

@ -15,6 +15,8 @@
#ifndef SRC_DAWN_NATIVE_QUEUE_H_ #ifndef SRC_DAWN_NATIVE_QUEUE_H_
#define SRC_DAWN_NATIVE_QUEUE_H_ #define SRC_DAWN_NATIVE_QUEUE_H_
#include <memory>
#include "dawn/common/SerialQueue.h" #include "dawn/common/SerialQueue.h"
#include "dawn/native/Error.h" #include "dawn/native/Error.h"
#include "dawn/native/Forward.h" #include "dawn/native/Forward.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/RenderBundle.h" #include "dawn/native/RenderBundle.h"
#include <utility>
#include "dawn/common/BitSetIterator.h" #include "dawn/common/BitSetIterator.h"
#include "dawn/native/Commands.h" #include "dawn/native/Commands.h"
#include "dawn/native/Device.h" #include "dawn/native/Device.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/RenderBundleEncoder.h" #include "dawn/native/RenderBundleEncoder.h"
#include <utility>
#include "dawn/native/CommandValidation.h" #include "dawn/native/CommandValidation.h"
#include "dawn/native/Commands.h" #include "dawn/native/Commands.h"
#include "dawn/native/Device.h" #include "dawn/native/Device.h"

View File

@ -16,6 +16,7 @@
#include <math.h> #include <math.h>
#include <cstring> #include <cstring>
#include <utility>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/common/Log.h" #include "dawn/common/Log.h"

View File

@ -16,6 +16,7 @@
#include <math.h> #include <math.h>
#include <cstring> #include <cstring>
#include <utility>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/native/Buffer.h" #include "dawn/native/Buffer.h"

View File

@ -15,6 +15,8 @@
#ifndef SRC_DAWN_NATIVE_RENDERPASSENCODER_H_ #ifndef SRC_DAWN_NATIVE_RENDERPASSENCODER_H_
#define SRC_DAWN_NATIVE_RENDERPASSENCODER_H_ #define SRC_DAWN_NATIVE_RENDERPASSENCODER_H_
#include <vector>
#include "dawn/native/Error.h" #include "dawn/native/Error.h"
#include "dawn/native/Forward.h" #include "dawn/native/Forward.h"
#include "dawn/native/RenderEncoderBase.h" #include "dawn/native/RenderEncoderBase.h"

View File

@ -14,6 +14,7 @@
#include "dawn/native/RenderPipeline.h" #include "dawn/native/RenderPipeline.h"
#include <algorithm>
#include <cmath> #include <cmath>
#include <sstream> #include <sstream>

View File

@ -17,6 +17,7 @@
#include <array> #include <array>
#include <bitset> #include <bitset>
#include <vector>
#include "dawn/common/TypedInteger.h" #include "dawn/common/TypedInteger.h"
#include "dawn/native/AttachmentState.h" #include "dawn/native/AttachmentState.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/RingBufferAllocator.h" #include "dawn/native/RingBufferAllocator.h"
#include <utility>
// Note: Current RingBufferAllocator implementation uses two indices (start and end) to implement a // 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. // circular queue. However, this approach defines a full queue when one element is still unused.
// //

View File

@ -14,6 +14,7 @@
#include "dawn/native/ShaderModule.h" #include "dawn/native/ShaderModule.h"
#include <algorithm>
#include <sstream> #include <sstream>
#include "absl/strings/str_format.h" #include "absl/strings/str_format.h"

View File

@ -17,8 +17,11 @@
#include <bitset> #include <bitset>
#include <map> #include <map>
#include <memory>
#include <string>
#include <unordered_map> #include <unordered_map>
#include <unordered_set> #include <unordered_set>
#include <utility>
#include <vector> #include <vector>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"

View File

@ -15,7 +15,9 @@
#include "dawn/native/SpirvValidation.h" #include "dawn/native/SpirvValidation.h"
#include <spirv-tools/libspirv.hpp> #include <spirv-tools/libspirv.hpp>
#include <sstream> #include <sstream>
#include <string>
#include "dawn/native/Device.h" #include "dawn/native/Device.h"

View File

@ -16,6 +16,7 @@
#define SRC_DAWN_NATIVE_TOGGLES_H_ #define SRC_DAWN_NATIVE_TOGGLES_H_
#include <bitset> #include <bitset>
#include <string>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>

View File

@ -14,6 +14,8 @@
#include "dawn/native/d3d12/BackendD3D12.h" #include "dawn/native/d3d12/BackendD3D12.h"
#include <utility>
#include "dawn/native/D3D12Backend.h" #include "dawn/native/D3D12Backend.h"
#include "dawn/native/Instance.h" #include "dawn/native/Instance.h"
#include "dawn/native/d3d12/AdapterD3D12.h" #include "dawn/native/d3d12/AdapterD3D12.h"

View File

@ -15,6 +15,9 @@
#ifndef SRC_DAWN_NATIVE_D3D12_BACKENDD3D12_H_ #ifndef SRC_DAWN_NATIVE_D3D12_BACKENDD3D12_H_
#define SRC_DAWN_NATIVE_D3D12_BACKENDD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_BACKENDD3D12_H_
#include <memory>
#include <vector>
#include "dawn/native/BackendConnection.h" #include "dawn/native/BackendConnection.h"
#include "dawn/native/d3d12/d3d12_platform.h" #include "dawn/native/d3d12/d3d12_platform.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/d3d12/BindGroupD3D12.h" #include "dawn/native/d3d12/BindGroupD3D12.h"
#include <utility>
#include "dawn/common/BitSetIterator.h" #include "dawn/common/BitSetIterator.h"
#include "dawn/native/ExternalTexture.h" #include "dawn/native/ExternalTexture.h"
#include "dawn/native/d3d12/BindGroupLayoutD3D12.h" #include "dawn/native/d3d12/BindGroupLayoutD3D12.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/d3d12/BindGroupLayoutD3D12.h" #include "dawn/native/d3d12/BindGroupLayoutD3D12.h"
#include <utility>
#include "dawn/common/BitSetIterator.h" #include "dawn/common/BitSetIterator.h"
#include "dawn/native/d3d12/BindGroupD3D12.h" #include "dawn/native/d3d12/BindGroupD3D12.h"
#include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/DeviceD3D12.h"

View File

@ -15,6 +15,8 @@
#ifndef SRC_DAWN_NATIVE_D3D12_BINDGROUPLAYOUTD3D12_H_ #ifndef SRC_DAWN_NATIVE_D3D12_BINDGROUPLAYOUTD3D12_H_
#define SRC_DAWN_NATIVE_D3D12_BINDGROUPLAYOUTD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_BINDGROUPLAYOUTD3D12_H_
#include <vector>
#include "dawn/native/BindGroupLayout.h" #include "dawn/native/BindGroupLayout.h"
#include "dawn/common/SlabAllocator.h" #include "dawn/common/SlabAllocator.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/d3d12/BufferD3D12.h" #include "dawn/native/d3d12/BufferD3D12.h"
#include <algorithm>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/common/Math.h" #include "dawn/common/Math.h"

View File

@ -15,6 +15,8 @@
#ifndef SRC_DAWN_NATIVE_D3D12_BUFFERD3D12_H_ #ifndef SRC_DAWN_NATIVE_D3D12_BUFFERD3D12_H_
#define SRC_DAWN_NATIVE_D3D12_BUFFERD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_BUFFERD3D12_H_
#include <limits>
#include "dawn/native/Buffer.h" #include "dawn/native/Buffer.h"
#include "dawn/native/d3d12/ResourceHeapAllocationD3D12.h" #include "dawn/native/d3d12/ResourceHeapAllocationD3D12.h"

View File

@ -14,6 +14,10 @@
#include "dawn/native/d3d12/CommandBufferD3D12.h" #include "dawn/native/d3d12/CommandBufferD3D12.h"
#include <algorithm>
#include <utility>
#include <vector>
#include "dawn/native/BindGroupTracker.h" #include "dawn/native/BindGroupTracker.h"
#include "dawn/native/CommandValidation.h" #include "dawn/native/CommandValidation.h"
#include "dawn/native/DynamicUploader.h" #include "dawn/native/DynamicUploader.h"

View File

@ -11,11 +11,15 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "dawn/native/d3d12/CommandRecordingContext.h" #include "dawn/native/d3d12/CommandRecordingContext.h"
#include <profileapi.h> #include <profileapi.h>
#include <sysinfoapi.h> #include <sysinfoapi.h>
#include <string>
#include <utility>
#include "dawn/native/d3d12/CommandAllocatorManager.h" #include "dawn/native/d3d12/CommandAllocatorManager.h"
#include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/D3D12Error.h"
#include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/DeviceD3D12.h"

View File

@ -15,6 +15,7 @@
#define SRC_DAWN_NATIVE_D3D12_COMMANDRECORDINGCONTEXT_H_ #define SRC_DAWN_NATIVE_D3D12_COMMANDRECORDINGCONTEXT_H_
#include <set> #include <set>
#include <vector>
#include "dawn/native/Error.h" #include "dawn/native/Error.h"
#include "dawn/native/IntegerTypes.h" #include "dawn/native/IntegerTypes.h"

View File

@ -14,6 +14,9 @@
#include "dawn/native/d3d12/ComputePipelineD3D12.h" #include "dawn/native/d3d12/ComputePipelineD3D12.h"
#include <memory>
#include <utility>
#include "dawn/native/CreatePipelineAsyncTask.h" #include "dawn/native/CreatePipelineAsyncTask.h"
#include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/D3D12Error.h"
#include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/DeviceD3D12.h"

View File

@ -17,11 +17,12 @@
#include "dawn/native/d3d12/D3D11on12Util.h" #include "dawn/native/d3d12/D3D11on12Util.h"
#include <utility>
#include "dawn/common/HashUtils.h" #include "dawn/common/HashUtils.h"
#include "dawn/common/Log.h" #include "dawn/common/Log.h"
#include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/D3D12Error.h"
#include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/DeviceD3D12.h"
#include "dawn/native/D3D12Backend.h" #include "dawn/native/D3D12Backend.h"
namespace dawn::native::d3d12 { namespace dawn::native::d3d12 {

View File

@ -17,6 +17,9 @@
#include "dawn/native/D3D12Backend.h" #include "dawn/native/D3D12Backend.h"
#include <memory>
#include <utility>
#include "dawn/common/Log.h" #include "dawn/common/Log.h"
#include "dawn/common/Math.h" #include "dawn/common/Math.h"
#include "dawn/common/SwapChainUtils.h" #include "dawn/common/SwapChainUtils.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/d3d12/D3D12Info.h" #include "dawn/native/d3d12/D3D12Info.h"
#include <utility>
#include "dawn/common/GPUInfo.h" #include "dawn/common/GPUInfo.h"
#include "dawn/native/d3d12/AdapterD3D12.h" #include "dawn/native/d3d12/AdapterD3D12.h"
#include "dawn/native/d3d12/BackendD3D12.h" #include "dawn/native/d3d12/BackendD3D12.h"

View File

@ -14,7 +14,10 @@
#include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/DeviceD3D12.h"
#include <algorithm>
#include <limits>
#include <sstream> #include <sstream>
#include <utility>
#include "dawn/common/GPUInfo.h" #include "dawn/common/GPUInfo.h"
#include "dawn/native/DynamicUploader.h" #include "dawn/native/DynamicUploader.h"

View File

@ -15,6 +15,8 @@
#ifndef SRC_DAWN_NATIVE_D3D12_DEVICED3D12_H_ #ifndef SRC_DAWN_NATIVE_D3D12_DEVICED3D12_H_
#define SRC_DAWN_NATIVE_D3D12_DEVICED3D12_H_ #define SRC_DAWN_NATIVE_D3D12_DEVICED3D12_H_
#include <memory>
#include "dawn/common/SerialQueue.h" #include "dawn/common/SerialQueue.h"
#include "dawn/native/Device.h" #include "dawn/native/Device.h"
#include "dawn/native/d3d12/CommandRecordingContext.h" #include "dawn/native/d3d12/CommandRecordingContext.h"

View File

@ -13,6 +13,9 @@
// limitations under the License. // limitations under the License.
#include "dawn/native/d3d12/HeapAllocatorD3D12.h" #include "dawn/native/d3d12/HeapAllocatorD3D12.h"
#include <utility>
#include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/D3D12Error.h"
#include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/DeviceD3D12.h"
#include "dawn/native/d3d12/HeapD3D12.h" #include "dawn/native/d3d12/HeapD3D12.h"

View File

@ -15,6 +15,8 @@
#ifndef SRC_DAWN_NATIVE_D3D12_HEAPALLOCATORD3D12_H_ #ifndef SRC_DAWN_NATIVE_D3D12_HEAPALLOCATORD3D12_H_
#define SRC_DAWN_NATIVE_D3D12_HEAPALLOCATORD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_HEAPALLOCATORD3D12_H_
#include <memory>
#include "dawn/native/D3D12Backend.h" #include "dawn/native/D3D12Backend.h"
#include "dawn/native/ResourceHeapAllocator.h" #include "dawn/native/ResourceHeapAllocator.h"
#include "dawn/native/d3d12/d3d12_platform.h" #include "dawn/native/d3d12/d3d12_platform.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/d3d12/HeapD3D12.h" #include "dawn/native/d3d12/HeapD3D12.h"
#include <utility>
namespace dawn::native::d3d12 { namespace dawn::native::d3d12 {
Heap::Heap(ComPtr<ID3D12Pageable> d3d12Pageable, MemorySegment memorySegment, uint64_t size) Heap::Heap(ComPtr<ID3D12Pageable> d3d12Pageable, MemorySegment memorySegment, uint64_t size)
: Pageable(std::move(d3d12Pageable), memorySegment, size) { : Pageable(std::move(d3d12Pageable), memorySegment, size) {

View File

@ -14,6 +14,8 @@
#include "dawn/native/d3d12/PageableD3D12.h" #include "dawn/native/d3d12/PageableD3D12.h"
#include <utility>
namespace dawn::native::d3d12 { namespace dawn::native::d3d12 {
Pageable::Pageable(ComPtr<ID3D12Pageable> d3d12Pageable, Pageable::Pageable(ComPtr<ID3D12Pageable> d3d12Pageable,
MemorySegment memorySegment, MemorySegment memorySegment,

View File

@ -13,6 +13,8 @@
// limitations under the License. // limitations under the License.
#include "dawn/native/d3d12/PipelineLayoutD3D12.h" #include "dawn/native/d3d12/PipelineLayoutD3D12.h"
#include <limits>
#include <sstream> #include <sstream>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"

View File

@ -15,6 +15,8 @@
#ifndef SRC_DAWN_NATIVE_D3D12_PIPELINELAYOUTD3D12_H_ #ifndef SRC_DAWN_NATIVE_D3D12_PIPELINELAYOUTD3D12_H_
#define SRC_DAWN_NATIVE_D3D12_PIPELINELAYOUTD3D12_H_ #define SRC_DAWN_NATIVE_D3D12_PIPELINELAYOUTD3D12_H_
#include <vector>
#include "dawn/common/Constants.h" #include "dawn/common/Constants.h"
#include "dawn/common/ityp_array.h" #include "dawn/common/ityp_array.h"
#include "dawn/native/BindingInfo.h" #include "dawn/native/BindingInfo.h"

View File

@ -15,8 +15,11 @@
#include "dawn/native/d3d12/PlatformFunctions.h" #include "dawn/native/d3d12/PlatformFunctions.h"
#include <comdef.h> #include <comdef.h>
#include <algorithm>
#include <array> #include <array>
#include <sstream> #include <sstream>
#include <utility>
#include "dawn/common/DynamicLib.h" #include "dawn/common/DynamicLib.h"

View File

@ -17,6 +17,8 @@
#include <d3dcompiler.h> #include <d3dcompiler.h>
#include <string>
#include "dawn/native/d3d12/d3d12_platform.h" #include "dawn/native/d3d12/d3d12_platform.h"
#include "dawn/common/DynamicLib.h" #include "dawn/common/DynamicLib.h"

View File

@ -14,6 +14,8 @@
#include "dawn/native/d3d12/QuerySetD3D12.h" #include "dawn/native/d3d12/QuerySetD3D12.h"
#include <algorithm>
#include "dawn/native/d3d12/D3D12Error.h" #include "dawn/native/d3d12/D3D12Error.h"
#include "dawn/native/d3d12/DeviceD3D12.h" #include "dawn/native/d3d12/DeviceD3D12.h"
#include "dawn/native/d3d12/UtilsD3D12.h" #include "dawn/native/d3d12/UtilsD3D12.h"

View File

@ -14,11 +14,12 @@
#include "dawn/native/d3d12/RenderPassBuilderD3D12.h" #include "dawn/native/d3d12/RenderPassBuilderD3D12.h"
#include <algorithm>
#include "dawn/native/Format.h" #include "dawn/native/Format.h"
#include "dawn/native/d3d12/CommandBufferD3D12.h" #include "dawn/native/d3d12/CommandBufferD3D12.h"
#include "dawn/native/d3d12/Forward.h" #include "dawn/native/d3d12/Forward.h"
#include "dawn/native/d3d12/TextureD3D12.h" #include "dawn/native/d3d12/TextureD3D12.h"
#include "dawn/native/dawn_platform.h" #include "dawn/native/dawn_platform.h"
namespace dawn::native::d3d12 { namespace dawn::native::d3d12 {

View File

@ -16,6 +16,9 @@
#include <d3dcompiler.h> #include <d3dcompiler.h>
#include <memory>
#include <utility>
#include "dawn/common/Assert.h" #include "dawn/common/Assert.h"
#include "dawn/common/Log.h" #include "dawn/common/Log.h"
#include "dawn/native/CreatePipelineAsyncTask.h" #include "dawn/native/CreatePipelineAsyncTask.h"

Some files were not shown because too many files have changed in this diff Show More