Home
last modified time | relevance | path

Searched refs:ResultOrError (Results 1 – 25 of 153) sorted by relevance

1234567

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DErrorTests.cpp48 auto ReturnSuccess = []() -> ResultOrError<int*> { return &dummySuccess; }; in TEST()
50 ResultOrError<int*> result = ReturnSuccess(); in TEST()
57 auto ReturnError = []() -> ResultOrError<int*> { in TEST()
61 ResultOrError<int*> result = ReturnError(); in TEST()
132 auto ReturnSuccess = []() -> ResultOrError<int*> { return &dummySuccess; }; in TEST()
137 auto Try = [ReturnSuccess, &tryReturned]() -> ResultOrError<int*> { in TEST()
146 ResultOrError<int*> result = Try(); in TEST()
154 auto ReturnError = []() -> ResultOrError<int*> { in TEST()
158 auto Try = [ReturnError]() -> ResultOrError<int*> { in TEST()
168 ResultOrError<int*> result = Try(); in TEST()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DDevice.h73 bool ConsumedError(ResultOrError<T> resultOrError, T* result) { in ConsumedError()
103 bool ConsumedError(ResultOrError<T> resultOrError, in ConsumedError()
134 ResultOrError<const Format*> GetInternalFormat(wgpu::TextureFormat format) const;
141 virtual ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
164 ResultOrError<Ref<BindGroupLayoutBase>> GetOrCreateBindGroupLayout(
173 ResultOrError<Ref<PipelineLayoutBase>> GetOrCreatePipelineLayout(
179 ResultOrError<Ref<SamplerBase>> GetOrCreateSampler(const SamplerDescriptor* descriptor);
182 ResultOrError<Ref<ShaderModuleBase>> GetOrCreateShaderModule(
196 ResultOrError<Ref<BindGroupBase>> CreateBindGroup(const BindGroupDescriptor* descriptor);
197 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayout(
[all …]
DDevice.cpp128 ResultOrError<Ref<PipelineLayoutBase>>
151 ResultOrError<Ref<PipelineLayoutBase>>
662 ResultOrError<const Format*> DeviceBase::GetInternalFormat(wgpu::TextureFormat format) const { in GetInternalFormat()
679 ResultOrError<Ref<BindGroupLayoutBase>> DeviceBase::GetOrCreateBindGroupLayout( in GetOrCreateBindGroupLayout()
710 ResultOrError<Ref<BindGroupLayoutBase>> DeviceBase::CreateEmptyBindGroupLayout() { in CreateEmptyBindGroupLayout()
772 ResultOrError<Ref<PipelineLayoutBase>> DeviceBase::GetOrCreatePipelineLayout( in GetOrCreatePipelineLayout()
805 ResultOrError<Ref<SamplerBase>> DeviceBase::GetOrCreateSampler( in GetOrCreateSampler()
832 ResultOrError<Ref<ShaderModuleBase>> DeviceBase::GetOrCreateShaderModule( in GetOrCreateShaderModule()
1231 ResultOrError<Ref<BindGroupBase>> DeviceBase::CreateBindGroup( in CreateBindGroup()
1241 ResultOrError<Ref<BindGroupLayoutBase>> DeviceBase::CreateBindGroupLayout( in CreateBindGroupLayout()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/mocks/
DDeviceMock.h31 MOCK_METHOD(ResultOrError<Ref<CommandBufferBase>>,
36 MOCK_METHOD(ResultOrError<std::unique_ptr<StagingBufferBase>>,
55 MOCK_METHOD(ResultOrError<Ref<BindGroupBase>>,
59 MOCK_METHOD(ResultOrError<Ref<BindGroupLayoutBase>>,
63 MOCK_METHOD(ResultOrError<Ref<BufferBase>>,
71 MOCK_METHOD(ResultOrError<Ref<PipelineLayoutBase>>,
75 MOCK_METHOD(ResultOrError<Ref<QuerySetBase>>,
83 MOCK_METHOD(ResultOrError<Ref<SamplerBase>>,
87 MOCK_METHOD(ResultOrError<Ref<ShaderModuleBase>>,
91 MOCK_METHOD(ResultOrError<Ref<SwapChainBase>>,
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DDeviceGL.h40 static ResultOrError<Device*> Create(AdapterBase* adapter,
59 ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
65 ResultOrError<std::unique_ptr<StagingBufferBase>> CreateStagingBuffer(size_t size) override;
87 ResultOrError<Ref<BindGroupBase>> CreateBindGroupImpl(
89 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayoutImpl(
92 ResultOrError<Ref<BufferBase>> CreateBufferImpl(
94 ResultOrError<Ref<PipelineLayoutBase>> CreatePipelineLayoutImpl(
96 ResultOrError<Ref<QuerySetBase>> CreateQuerySetImpl(
98 ResultOrError<Ref<SamplerBase>> CreateSamplerImpl(
100 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModuleImpl(
[all …]
DDeviceGL.cpp38 ResultOrError<Device*> Device::Create(AdapterBase* adapter, in Create()
115 ResultOrError<Ref<BindGroupBase>> Device::CreateBindGroupImpl( in CreateBindGroupImpl()
120 ResultOrError<Ref<BindGroupLayoutBase>> Device::CreateBindGroupLayoutImpl( in CreateBindGroupLayoutImpl()
125 ResultOrError<Ref<BufferBase>> Device::CreateBufferImpl(const BufferDescriptor* descriptor) { in CreateBufferImpl()
128 ResultOrError<Ref<CommandBufferBase>> Device::CreateCommandBuffer( in CreateCommandBuffer()
137 ResultOrError<Ref<PipelineLayoutBase>> Device::CreatePipelineLayoutImpl( in CreatePipelineLayoutImpl()
141 ResultOrError<Ref<QuerySetBase>> Device::CreateQuerySetImpl( in CreateQuerySetImpl()
149 ResultOrError<Ref<SamplerBase>> Device::CreateSamplerImpl(const SamplerDescriptor* descriptor) { in CreateSamplerImpl()
152 ResultOrError<Ref<ShaderModuleBase>> Device::CreateShaderModuleImpl( in CreateShaderModuleImpl()
157 ResultOrError<Ref<SwapChainBase>> Device::CreateSwapChainImpl( in CreateSwapChainImpl()
[all …]
DShaderModuleGL.h52 static ResultOrError<Ref<ShaderModule>> Create(Device* device,
56 ResultOrError<std::string> TranslateToGLSL(const char* entryPointName,
66 static ResultOrError<BindingInfoArrayTable> ReflectShaderUsingSPIRVCross(
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DDeviceVk.h46 static ResultOrError<Device*> Create(Adapter* adapter,
82 ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
88 ResultOrError<std::unique_ptr<StagingBufferBase>> CreateStagingBuffer(size_t size) override;
111 ResultOrError<Ref<BindGroupBase>> CreateBindGroupImpl(
113 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayoutImpl(
116 ResultOrError<Ref<BufferBase>> CreateBufferImpl(
118 ResultOrError<Ref<PipelineLayoutBase>> CreatePipelineLayoutImpl(
120 ResultOrError<Ref<QuerySetBase>> CreateQuerySetImpl(
122 ResultOrError<Ref<SamplerBase>> CreateSamplerImpl(
124 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModuleImpl(
[all …]
DVulkanInfo.h80 ResultOrError<VulkanGlobalInfo> GatherGlobalInfo(const VulkanFunctions& vkFunctions);
81 ResultOrError<std::vector<VkPhysicalDevice>> GatherPhysicalDevices(
84 ResultOrError<VulkanDeviceInfo> GatherDeviceInfo(const Adapter& adapter);
85 ResultOrError<VulkanSurfaceInfo> GatherSurfaceInfo(const Adapter& adapter,
DSwapChainVk.h47 static ResultOrError<Ref<SwapChain>> Create(Device* device,
77 ResultOrError<Config> ChooseConfig(const VulkanSurfaceInfo& surfaceInfo) const;
78 ResultOrError<TextureViewBase*> GetCurrentTextureViewInternal(bool isReentrant = false);
82 ResultOrError<TextureViewBase*> GetCurrentTextureViewImpl() override;
DDeviceVk.cpp48 ResultOrError<Device*> Device::Create(Adapter* adapter, in Create()
107 ResultOrError<Ref<BindGroupBase>> Device::CreateBindGroupImpl( in CreateBindGroupImpl()
111 ResultOrError<Ref<BindGroupLayoutBase>> Device::CreateBindGroupLayoutImpl( in CreateBindGroupLayoutImpl()
116 ResultOrError<Ref<BufferBase>> Device::CreateBufferImpl(const BufferDescriptor* descriptor) { in CreateBufferImpl()
119 ResultOrError<Ref<CommandBufferBase>> Device::CreateCommandBuffer( in CreateCommandBuffer()
128 ResultOrError<Ref<PipelineLayoutBase>> Device::CreatePipelineLayoutImpl( in CreatePipelineLayoutImpl()
132 ResultOrError<Ref<QuerySetBase>> Device::CreateQuerySetImpl( in CreateQuerySetImpl()
140 ResultOrError<Ref<SamplerBase>> Device::CreateSamplerImpl(const SamplerDescriptor* descriptor) { in CreateSamplerImpl()
143 ResultOrError<Ref<ShaderModuleBase>> Device::CreateShaderModuleImpl( in CreateShaderModuleImpl()
148 ResultOrError<Ref<SwapChainBase>> Device::CreateSwapChainImpl( in CreateSwapChainImpl()
[all …]
DBackendVk.h43 static ResultOrError<Ref<VulkanInstance>> Create(const InstanceBase* instance, ICD icd);
55 ResultOrError<VulkanGlobalKnobs> CreateVkInstance(const InstanceBase* instance);
77 ResultOrError<std::vector<std::unique_ptr<AdapterBase>>> DiscoverAdapters(
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DDeviceMTL.h41 static ResultOrError<Device*> Create(AdapterBase* adapter,
61 ResultOrError<std::unique_ptr<StagingBufferBase>> CreateStagingBuffer(size_t size) override;
82 ResultOrError<Ref<BindGroupBase>> CreateBindGroupImpl(
84 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayoutImpl(
87 ResultOrError<Ref<BufferBase>> CreateBufferImpl(
89 ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
92 ResultOrError<Ref<PipelineLayoutBase>> CreatePipelineLayoutImpl(
94 ResultOrError<Ref<QuerySetBase>> CreateQuerySetImpl(
96 ResultOrError<Ref<SamplerBase>> CreateSamplerImpl(
98 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModuleImpl(
[all …]
DDeviceMTL.mm109 ResultOrError<Device*> Device::Create(AdapterBase* adapter,
229 ResultOrError<Ref<BindGroupBase>> Device::CreateBindGroupImpl(
233 ResultOrError<Ref<BindGroupLayoutBase>> Device::CreateBindGroupLayoutImpl(
238 ResultOrError<Ref<BufferBase>> Device::CreateBufferImpl(const BufferDescriptor* descriptor) {
241 ResultOrError<Ref<CommandBufferBase>> Device::CreateCommandBuffer(
250 ResultOrError<Ref<PipelineLayoutBase>> Device::CreatePipelineLayoutImpl(
254 ResultOrError<Ref<QuerySetBase>> Device::CreateQuerySetImpl(
262 ResultOrError<Ref<SamplerBase>> Device::CreateSamplerImpl(const SamplerDescriptor* descriptor) {
265 ResultOrError<Ref<ShaderModuleBase>> Device::CreateShaderModuleImpl(
270 ResultOrError<Ref<SwapChainBase>> Device::CreateSwapChainImpl(
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DDeviceD3D12.h44 static ResultOrError<Device*> Create(Adapter* adapter,
50 ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
73 ResultOrError<CommandRecordingContext*> GetPendingCommandContext();
89 ResultOrError<std::unique_ptr<StagingBufferBase>> CreateStagingBuffer(size_t size) override;
108 ResultOrError<ResourceHeapAllocation> AllocateMemory(
154 ResultOrError<Ref<BindGroupBase>> CreateBindGroupImpl(
156 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayoutImpl(
159 ResultOrError<Ref<BufferBase>> CreateBufferImpl(
161 ResultOrError<Ref<PipelineLayoutBase>> CreatePipelineLayoutImpl(
163 ResultOrError<Ref<QuerySetBase>> CreateQuerySetImpl(
[all …]
DDeviceD3D12.cpp59 ResultOrError<Device*> Device::Create(Adapter* adapter, in Create()
252 ResultOrError<CommandRecordingContext*> Device::GetPendingCommandContext() { in GetPendingCommandContext()
355 ResultOrError<ExecutionSerial> Device::CheckAndUpdateCompletedSerials() { in CheckAndUpdateCompletedSerials()
381 ResultOrError<Ref<BindGroupBase>> Device::CreateBindGroupImpl( in CreateBindGroupImpl()
385 ResultOrError<Ref<BindGroupLayoutBase>> Device::CreateBindGroupLayoutImpl( in CreateBindGroupLayoutImpl()
390 ResultOrError<Ref<BufferBase>> Device::CreateBufferImpl(const BufferDescriptor* descriptor) { in CreateBufferImpl()
393 ResultOrError<Ref<CommandBufferBase>> Device::CreateCommandBuffer( in CreateCommandBuffer()
402 ResultOrError<Ref<PipelineLayoutBase>> Device::CreatePipelineLayoutImpl( in CreatePipelineLayoutImpl()
406 ResultOrError<Ref<QuerySetBase>> Device::CreateQuerySetImpl( in CreateQuerySetImpl()
414 ResultOrError<Ref<SamplerBase>> Device::CreateSamplerImpl(const SamplerDescriptor* descriptor) { in CreateSamplerImpl()
[all …]
DResourceAllocatorManagerD3D12.h63 ResultOrError<ResourceHeapAllocation> AllocateMemory(
77 ResultOrError<ResourceHeapAllocation> CreatePlacedResource(
83 ResultOrError<ResourceHeapAllocation> CreateCommittedResource(
/third_party/skia/third_party/externals/dawn/src/dawn_native/null/
DDeviceNull.h89 static ResultOrError<Device*> Create(Adapter* adapter,
95 ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
104 ResultOrError<std::unique_ptr<StagingBufferBase>> CreateStagingBuffer(size_t size) override;
126 ResultOrError<Ref<BindGroupBase>> CreateBindGroupImpl(
128 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayoutImpl(
131 ResultOrError<Ref<BufferBase>> CreateBufferImpl(
135 ResultOrError<Ref<PipelineLayoutBase>> CreatePipelineLayoutImpl(
137 ResultOrError<Ref<QuerySetBase>> CreateQuerySetImpl(
141 ResultOrError<Ref<SamplerBase>> CreateSamplerImpl(
143 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModuleImpl(
[all …]
DDeviceNull.cpp60 ResultOrError<DeviceBase*> Adapter::CreateDeviceImpl(const DawnDeviceDescriptor* descriptor) { in CreateDeviceImpl()
98 ResultOrError<Device*> Device::Create(Adapter* adapter, in Create()
113 ResultOrError<Ref<BindGroupBase>> Device::CreateBindGroupImpl( in CreateBindGroupImpl()
117 ResultOrError<Ref<BindGroupLayoutBase>> Device::CreateBindGroupLayoutImpl( in CreateBindGroupLayoutImpl()
122 ResultOrError<Ref<BufferBase>> Device::CreateBufferImpl(const BufferDescriptor* descriptor) { in CreateBufferImpl()
126 ResultOrError<Ref<CommandBufferBase>> Device::CreateCommandBuffer( in CreateCommandBuffer()
135 ResultOrError<Ref<PipelineLayoutBase>> Device::CreatePipelineLayoutImpl( in CreatePipelineLayoutImpl()
139 ResultOrError<Ref<QuerySetBase>> Device::CreateQuerySetImpl( in CreateQuerySetImpl()
147 ResultOrError<Ref<SamplerBase>> Device::CreateSamplerImpl(const SamplerDescriptor* descriptor) { in CreateSamplerImpl()
150 ResultOrError<Ref<ShaderModuleBase>> Device::CreateShaderModuleImpl( in CreateShaderModuleImpl()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/utils/
DWGPUHelpers.h29 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModule(DeviceBase* device, const char* source);
31 ResultOrError<Ref<BufferBase>> CreateBufferFromData(DeviceBase* device,
37 ResultOrError<Ref<BufferBase>> CreateBufferFromData(DeviceBase* device, in CreateBufferFromData()
43 ResultOrError<Ref<PipelineLayoutBase>> MakeBasicPipelineLayout(
80 ResultOrError<Ref<BindGroupLayoutBase>> MakeBindGroupLayout(
114 ResultOrError<Ref<BindGroupBase>> MakeBindGroup(
DWGPUHelpers.cpp36 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModule(DeviceBase* device, in CreateShaderModule()
45 ResultOrError<Ref<BufferBase>> CreateBufferFromData(DeviceBase* device, in CreateBufferFromData()
60 ResultOrError<Ref<PipelineLayoutBase>> MakeBasicPipelineLayout( in MakeBasicPipelineLayout()
70 ResultOrError<Ref<BindGroupLayoutBase>> MakeBindGroupLayout( in MakeBindGroupLayout()
171 ResultOrError<Ref<BindGroupBase>> MakeBindGroup( in MakeBindGroup()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_semaphore/
DSemaphoreServiceNull.cpp38 ResultOrError<VkSemaphore> Service::ImportSemaphore(ExternalSemaphoreHandle handle) { in ImportSemaphore()
42 ResultOrError<VkSemaphore> Service::CreateExportableSemaphore() { in CreateExportableSemaphore()
46 ResultOrError<ExternalSemaphoreHandle> Service::ExportSemaphore(VkSemaphore semaphore) { in ExportSemaphore()
DSemaphoreService.h43 ResultOrError<VkSemaphore> ImportSemaphore(ExternalSemaphoreHandle handle);
46 ResultOrError<VkSemaphore> CreateExportableSemaphore();
49 ResultOrError<ExternalSemaphoreHandle> ExportSemaphore(VkSemaphore semaphore);
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_memory/
DMemoryServiceNull.cpp46 ResultOrError<MemoryImportParams> Service::GetMemoryImportParams( in GetMemoryImportParams()
52 ResultOrError<VkDeviceMemory> Service::ImportMemory(ExternalMemoryHandle handle, in ImportMemory()
58 ResultOrError<VkImage> Service::CreateImage(const ExternalImageDescriptor* descriptor, in CreateImage()
DMemoryService.h55 ResultOrError<MemoryImportParams> GetMemoryImportParams(
60 ResultOrError<VkDeviceMemory> ImportMemory(ExternalMemoryHandle handle,
65 ResultOrError<VkImage> CreateImage(const ExternalImageDescriptor* descriptor,

1234567