#include "dawn/native/DawnNative.h"
#include <vector>
#include "dawn/common/Log.h"
#include "dawn/native/BindGroupLayout.h"
#include "dawn/native/Buffer.h"
#include "dawn/native/Device.h"
#include "dawn/native/Instance.h"
#include "dawn/native/Texture.h"
#include "dawn/platform/DawnPlatform.h"
#include "tint/tint.h"
namespace dawn::native {
const char MemoryDump::kNameSize[] = …;
const char MemoryDump::kNameObjectCount[] = …;
const char MemoryDump::kUnitsBytes[] = …;
const char MemoryDump::kUnitsObjects[] = …;
const DawnProcTable& GetProcsAutogen();
const DawnProcTable& GetProcs() { … }
std::vector<const char*> GetTogglesUsed(WGPUDevice device) { … }
Adapter::Adapter() = default;
Adapter::Adapter(AdapterBase* impl) : … { … }
Adapter::~Adapter() { … }
Adapter::Adapter(const Adapter& other) : … { … }
Adapter& Adapter::operator=(const Adapter& other) { … }
wgpu::Status Adapter::GetInfo(wgpu::AdapterInfo* info) const { … }
wgpu::Status Adapter::GetInfo(WGPUAdapterInfo* info) const { … }
wgpu::Status Adapter::GetProperties(wgpu::AdapterProperties* properties) const { … }
wgpu::Status Adapter::GetProperties(WGPUAdapterProperties* properties) const { … }
WGPUAdapter Adapter::Get() const { … }
std::vector<const char*> Adapter::GetSupportedFeatures() const { … }
wgpu::ConvertibleStatus Adapter::GetLimits(WGPUSupportedLimits* limits) const { … }
void Adapter::SetUseTieredLimits(bool useTieredLimits) { … }
bool Adapter::SupportsExternalImages() const { … }
operator bool()
WGPUDevice Adapter::CreateDevice(const wgpu::DeviceDescriptor* deviceDescriptor) { … }
WGPUDevice Adapter::CreateDevice(const WGPUDeviceDescriptor* deviceDescriptor) { … }
void Adapter::RequestDevice(const wgpu::DeviceDescriptor* descriptor,
WGPURequestDeviceCallback callback,
void* userdata) { … }
void Adapter::RequestDevice(const WGPUDeviceDescriptor* descriptor,
WGPURequestDeviceCallback callback,
void* userdata) { … }
void Adapter::ResetInternalDeviceForTesting() { … }
DawnInstanceDescriptor::DawnInstanceDescriptor() { … }
bool DawnInstanceDescriptor::operator==(const DawnInstanceDescriptor& rhs) const { … }
Instance::Instance(const WGPUInstanceDescriptor* desc)
: … { … }
Instance::Instance(InstanceBase* impl) : … { … }
Instance::~Instance() { … }
std::vector<Adapter> Instance::EnumerateAdapters(const WGPURequestAdapterOptions* options) const { … }
std::vector<Adapter> Instance::EnumerateAdapters(const wgpu::RequestAdapterOptions* options) const { … }
const ToggleInfo* Instance::GetToggleInfo(const char* toggleName) { … }
void Instance::SetBackendValidationLevel(BackendValidationLevel level) { … }
uint64_t Instance::GetDeviceCountForTesting() const { … }
uint64_t Instance::GetDeprecationWarningCountForTesting() const { … }
WGPUInstance Instance::Get() const { … }
void Instance::DisconnectDawnPlatform() { … }
size_t GetLazyClearCountForTesting(WGPUDevice device) { … }
bool IsTextureSubresourceInitialized(WGPUTexture texture,
uint32_t baseMipLevel,
uint32_t levelCount,
uint32_t baseArrayLayer,
uint32_t layerCount,
WGPUTextureAspect cAspect) { … }
std::vector<std::string_view> GetProcMapNamesForTestingInternal();
std::vector<std::string_view> GetProcMapNamesForTesting() { … }
DAWN_NATIVE_EXPORT bool DeviceTick(WGPUDevice device) { … }
DAWN_NATIVE_EXPORT bool InstanceProcessEvents(WGPUInstance instance) { … }
ExternalImageDescriptor::ExternalImageDescriptor(ExternalImageType type) : … { … }
ExternalImageType ExternalImageDescriptor::GetType() const { … }
ExternalImageExportInfo::ExternalImageExportInfo(ExternalImageType type) : … { … }
ExternalImageType ExternalImageExportInfo::GetType() const { … }
bool CheckIsErrorForTesting(void* objectHandle) { … }
const char* GetObjectLabelForTesting(void* objectHandle) { … }
uint64_t GetAllocatedSizeForTesting(WGPUBuffer buffer) { … }
std::vector<const ToggleInfo*> AllToggleInfos() { … }
const FeatureInfo* GetFeatureInfo(wgpu::FeatureName feature) { … }
void DumpMemoryStatistics(WGPUDevice device, MemoryDump* dump) { … }
uint64_t ComputeEstimatedMemoryUsage(WGPUDevice device) { … }
void ReduceMemoryUsage(WGPUDevice device) { … }
}