A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
Definition RenderAPI.hpp:81
WebGPU RenderAPI device object.
Definition WGDevice.hpp:32
Definition WGRenderAPI.hpp:20
GPUDevicePtr getDefaultDevice() final
GPUDevicePtr createDevice(const GPUDeviceDescriptor &descriptor, const DevicePickerFunc &pickerFunc=nullptr) final
WGDevicePtr mDevice
The default WebGPU device.
Definition WGRenderAPI.hpp:25
WGRenderAPI(const RenderAPIDescriptor &descriptor)
Definition Application.hpp:19
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
std::function< bool(const GPUDeviceInfo &, const GPURenderingCapabilities &)> DevicePickerFunc
Callback interface for the createDevice method.
Definition RenderAPI.hpp:79
Device descriptor structure.
Definition GPUDevice.hpp:313
Definition RenderAPI.hpp:61
Definition WGRenderAPI.hpp:18