/src/mozilla-central/dom/webgpu/Device.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
3 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | | |
6 | | #include "Device.h" |
7 | | |
8 | | #include "Adapter.h" |
9 | | #include "mozilla/dom/WebGPUBinding.h" |
10 | | |
11 | | namespace mozilla { |
12 | | namespace webgpu { |
13 | | |
14 | 0 | Device::~Device() = default; |
15 | | |
16 | | already_AddRefed<webgpu::Adapter> |
17 | | Device::Adapter() const |
18 | 0 | { |
19 | 0 | MOZ_CRASH("todo"); |
20 | 0 | } |
21 | | |
22 | | void |
23 | | Device::Extensions(dom::WebGPUExtensions& out) const |
24 | 0 | { |
25 | 0 | MOZ_CRASH("todo"); |
26 | 0 | } |
27 | | |
28 | | void |
29 | | Device::Features(dom::WebGPUFeatures& out) const |
30 | 0 | { |
31 | 0 | MOZ_CRASH("todo"); |
32 | 0 | } |
33 | | |
34 | | void |
35 | | Device::Limits(dom::WebGPULimits& out) const |
36 | 0 | { |
37 | 0 | MOZ_CRASH("todo"); |
38 | 0 | } |
39 | | |
40 | | already_AddRefed<Buffer> |
41 | | Device::CreateBuffer(const dom::WebGPUBufferDescriptor& desc) const |
42 | 0 | { |
43 | 0 | MOZ_CRASH("todo"); |
44 | 0 | } |
45 | | |
46 | | already_AddRefed<Texture> |
47 | | Device::CreateTexture(const dom::WebGPUTextureDescriptor& desc) const |
48 | 0 | { |
49 | 0 | MOZ_CRASH("todo"); |
50 | 0 | } |
51 | | |
52 | | already_AddRefed<Sampler> |
53 | | Device::CreateSampler(const dom::WebGPUSamplerDescriptor& desc) const |
54 | 0 | { |
55 | 0 | MOZ_CRASH("todo"); |
56 | 0 | } |
57 | | |
58 | | |
59 | | already_AddRefed<BindGroupLayout> |
60 | | Device::CreateBindGroupLayout(const dom::WebGPUBindGroupLayoutDescriptor& desc) const |
61 | 0 | { |
62 | 0 | MOZ_CRASH("todo"); |
63 | 0 | } |
64 | | |
65 | | already_AddRefed<PipelineLayout> |
66 | | Device::CreatePipelineLayout(const dom::WebGPUPipelineLayoutDescriptor& desc) const |
67 | 0 | { |
68 | 0 | MOZ_CRASH("todo"); |
69 | 0 | } |
70 | | |
71 | | already_AddRefed<BindGroup> |
72 | | Device::CreateBindGroup(const dom::WebGPUBindGroupDescriptor& desc) const |
73 | 0 | { |
74 | 0 | MOZ_CRASH("todo"); |
75 | 0 | } |
76 | | |
77 | | |
78 | | already_AddRefed<BlendState> |
79 | | Device::CreateBlendState(const dom::WebGPUBlendStateDescriptor& desc) const |
80 | 0 | { |
81 | 0 | MOZ_CRASH("todo"); |
82 | 0 | } |
83 | | |
84 | | already_AddRefed<DepthStencilState> |
85 | | Device::CreateDepthStencilState(const dom::WebGPUDepthStencilStateDescriptor& desc) const |
86 | 0 | { |
87 | 0 | MOZ_CRASH("todo"); |
88 | 0 | } |
89 | | |
90 | | already_AddRefed<InputState> |
91 | | Device::CreateInputState(const dom::WebGPUInputStateDescriptor& desc) const |
92 | 0 | { |
93 | 0 | MOZ_CRASH("todo"); |
94 | 0 | } |
95 | | |
96 | | already_AddRefed<ShaderModule> |
97 | | Device::CreateShaderModule(const dom::WebGPUShaderModuleDescriptor& desc) const |
98 | 0 | { |
99 | 0 | MOZ_CRASH("todo"); |
100 | 0 | } |
101 | | |
102 | | already_AddRefed<AttachmentState> |
103 | | Device::CreateAttachmentState(const dom::WebGPUAttachmentStateDescriptor& desc) const |
104 | 0 | { |
105 | 0 | MOZ_CRASH("todo"); |
106 | 0 | } |
107 | | |
108 | | already_AddRefed<ComputePipeline> |
109 | | Device::CreateComputePipeline(const dom::WebGPUComputePipelineDescriptor& desc) const |
110 | 0 | { |
111 | 0 | MOZ_CRASH("todo"); |
112 | 0 | } |
113 | | |
114 | | already_AddRefed<RenderPipeline> |
115 | | Device::CreateRenderPipeline(const dom::WebGPURenderPipelineDescriptor& desc) const |
116 | 0 | { |
117 | 0 | MOZ_CRASH("todo"); |
118 | 0 | } |
119 | | |
120 | | already_AddRefed<CommandEncoder> |
121 | | Device::CreateCommandEncoder(const dom::WebGPUCommandEncoderDescriptor& desc) const |
122 | 0 | { |
123 | 0 | MOZ_CRASH("todo"); |
124 | 0 | } |
125 | | |
126 | | already_AddRefed<Queue> |
127 | | Device::GetQueue() const |
128 | 0 | { |
129 | 0 | MOZ_CRASH("todo"); |
130 | 0 | } |
131 | | |
132 | | RefPtr<dom::WebGPULogCallback> |
133 | | Device::OnLog() const |
134 | 0 | { |
135 | 0 | MOZ_CRASH("todo"); |
136 | 0 | } |
137 | | |
138 | | void |
139 | | Device::SetOnLog(const dom::WebGPULogCallback& callback) const |
140 | 0 | { |
141 | 0 | MOZ_CRASH("todo"); |
142 | 0 | } |
143 | | |
144 | | already_AddRefed<dom::Promise> |
145 | | Device::GetObjectStatus(const dom::WebGPUBufferOrWebGPUTexture& obj) const |
146 | 0 | { |
147 | 0 | MOZ_CRASH("todo"); |
148 | 0 | } |
149 | | |
150 | | WEBGPU_IMPL_GOOP_0(Device) |
151 | | |
152 | | } // namespace webgpu |
153 | | } // namespace mozilla |