#include "dawn/wire/client/Adapter.h"
#include <memory>
#include <string>
#include <utility>
#include "dawn/common/Log.h"
#include "dawn/wire/client/Client.h"
#include "dawn/wire/client/webgpu.h"
#include "partition_alloc/pointers/raw_ptr.h"
namespace dawn::wire::client {
namespace {
class RequestDeviceEvent : public TrackedEvent { … };
}
ObjectType Adapter::GetObjectType() const { … }
WGPUStatus Adapter::GetLimits(WGPUSupportedLimits* limits) const { … }
bool Adapter::HasFeature(WGPUFeatureName feature) const { … }
size_t Adapter::EnumerateFeatures(WGPUFeatureName* features) const { … }
void Adapter::SetLimits(const WGPUSupportedLimits* limits) { … }
void Adapter::SetFeatures(const WGPUFeatureName* features, uint32_t featuresCount) { … }
void Adapter::SetInfo(const WGPUAdapterInfo* info) { … }
void Adapter::SetProperties(const WGPUAdapterInfo* info) { … }
WGPUStatus Adapter::GetInfo(WGPUAdapterInfo* info) const { … }
WGPUStatus Adapter::GetProperties(WGPUAdapterProperties* properties) const { … }
void Adapter::RequestDevice(const WGPUDeviceDescriptor* descriptor,
WGPURequestDeviceCallback callback,
void* userdata) { … }
WGPUFuture Adapter::RequestDeviceF(const WGPUDeviceDescriptor* descriptor,
const WGPURequestDeviceCallbackInfo& callbackInfo) { … }
WGPUFuture Adapter::RequestDevice2(const WGPUDeviceDescriptor* descriptor,
const WGPURequestDeviceCallbackInfo2& callbackInfo) { … }
WireResult Client::DoAdapterRequestDeviceCallback(ObjectHandle eventManager,
WGPUFuture future,
WGPURequestDeviceStatus status,
const char* message,
const WGPUSupportedLimits* limits,
uint32_t featuresCount,
const WGPUFeatureName* features) { … }
WGPUInstance Adapter::GetInstance() const { … }
WGPUDevice Adapter::CreateDevice(const WGPUDeviceDescriptor*) { … }
WGPUStatus Adapter::GetFormatCapabilities(WGPUTextureFormat format,
WGPUFormatCapabilities* capabilities) { … }
}
DAWN_WIRE_EXPORT void wgpuDawnWireClientAdapterInfoFreeMembers(WGPUAdapterInfo info) { … }
DAWN_WIRE_EXPORT void wgpuDawnWireClientAdapterPropertiesFreeMembers(
WGPUAdapterProperties properties) { … }
DAWN_WIRE_EXPORT void wgpuDawnWireClientAdapterPropertiesMemoryHeapsFreeMembers(
WGPUAdapterPropertiesMemoryHeaps memoryHeapProperties) { … }
DAWN_WIRE_EXPORT void wgpuDawnWireClientDrmFormatCapabilitiesFreeMembers(
WGPUDrmFormatCapabilities capabilities) { … }