Changeset 285792 in webkit
- Timestamp:
- Nov 14, 2021, 11:38:16 AM (5 years ago)
- Location:
- trunk/Source/WebGPU
- Files:
-
- 37 edited
-
ChangeLog (modified) (1 diff)
-
WebGPU/Adapter.h (modified) (1 diff)
-
WebGPU/Adapter.mm (modified) (2 diffs)
-
WebGPU/BindGroup.h (modified) (1 diff)
-
WebGPU/BindGroup.mm (modified) (2 diffs)
-
WebGPU/BindGroupLayout.h (modified) (1 diff)
-
WebGPU/BindGroupLayout.mm (modified) (2 diffs)
-
WebGPU/Buffer.h (modified) (1 diff)
-
WebGPU/Buffer.mm (modified) (2 diffs)
-
WebGPU/CommandBuffer.h (modified) (1 diff)
-
WebGPU/CommandBuffer.mm (modified) (2 diffs)
-
WebGPU/CommandEncoder.h (modified) (2 diffs)
-
WebGPU/CommandEncoder.mm (modified) (4 diffs)
-
WebGPU/ComputePassEncoder.h (modified) (1 diff)
-
WebGPU/ComputePassEncoder.mm (modified) (2 diffs)
-
WebGPU/Device.h (modified) (1 diff)
-
WebGPU/Device.mm (modified) (2 diffs)
-
WebGPU/Instance.mm (modified) (12 diffs)
-
WebGPU/PipelineLayout.h (modified) (1 diff)
-
WebGPU/PipelineLayout.mm (modified) (2 diffs)
-
WebGPU/QuerySet.h (modified) (1 diff)
-
WebGPU/QuerySet.mm (modified) (2 diffs)
-
WebGPU/Queue.h (modified) (1 diff)
-
WebGPU/Queue.mm (modified) (2 diffs)
-
WebGPU/RenderBundle.h (modified) (1 diff)
-
WebGPU/RenderBundle.mm (modified) (2 diffs)
-
WebGPU/RenderBundleEncoder.h (modified) (1 diff)
-
WebGPU/RenderBundleEncoder.mm (modified) (2 diffs)
-
WebGPU/RenderPassEncoder.h (modified) (1 diff)
-
WebGPU/RenderPassEncoder.mm (modified) (2 diffs)
-
WebGPU/Sampler.h (modified) (1 diff)
-
WebGPU/Sampler.mm (modified) (2 diffs)
-
WebGPU/Texture.h (modified) (1 diff)
-
WebGPU/Texture.mm (modified) (2 diffs)
-
WebGPU/TextureView.h (modified) (1 diff)
-
WebGPU/TextureView.mm (modified) (2 diffs)
-
WebGPU/WebGPUExt.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebGPU/ChangeLog
r285527 r285792 1 2021-11-14 Myles C. Maxfield <mmaxfield@apple.com> 2 3 [WebGPU] Add necessary additions to WebGPU.framework 4 https://bugs.webkit.org/show_bug.cgi?id=233091 5 6 Reviewed by Dean Jackson. 7 8 WebGPU.framework's header file is lagging a bit behind the official WebGPU API. 9 This updates a companion header, WebGPUExt.h, with the necessary additions. 10 I don't want to modify the primary header, WebGPU.h, because it's shared among 11 multiple projects, so coordination is necessary to modify it. 12 13 * WebGPU/Adapter.h: 14 * WebGPU/Adapter.mm: 15 (WebGPU::Adapter::getFeatureAtIndex): 16 (wgpuAdapterGetFeatureAtIndex): 17 * WebGPU/BindGroup.h: 18 * WebGPU/BindGroup.mm: 19 (WebGPU::BindGroup::setLabel): 20 (wgpuBindGroupSetLabel): 21 * WebGPU/BindGroupLayout.h: 22 * WebGPU/BindGroupLayout.mm: 23 (WebGPU::BindGroupLayout::setLabel): 24 (wgpuBindGroupLayoutSetLabel): 25 * WebGPU/Buffer.h: 26 * WebGPU/Buffer.mm: 27 (WebGPU::Buffer::setLabel): 28 (wgpuBufferSetLabel): 29 * WebGPU/CommandBuffer.h: 30 * WebGPU/CommandBuffer.mm: 31 (WebGPU::CommandBuffer::setLabel): 32 (wgpuCommandBufferSetLabel): 33 * WebGPU/CommandEncoder.h: 34 * WebGPU/CommandEncoder.mm: 35 (WebGPU::CommandEncoder::fillBuffer): 36 (WebGPU::CommandEncoder::setLabel): 37 (wgpuCommandEncoderFillBuffer): 38 (wgpuCommandEncoderSetLabel): 39 * WebGPU/ComputePassEncoder.h: 40 * WebGPU/ComputePassEncoder.mm: 41 (WebGPU::ComputePassEncoder::setLabel): 42 (wgpuComputePassEncoderSetLabel): 43 * WebGPU/Device.h: 44 * WebGPU/Device.mm: 45 (WebGPU::Device::setLabel): 46 (wgpuDeviceSetLabel): 47 * WebGPU/Instance.mm: 48 (wgpuGetProcAddress): 49 * WebGPU/PipelineLayout.h: 50 * WebGPU/PipelineLayout.mm: 51 (WebGPU::PipelineLayout::setLabel): 52 (wgpuPipelineLayoutSetLabel): 53 * WebGPU/QuerySet.h: 54 * WebGPU/QuerySet.mm: 55 (WebGPU::QuerySet::setLabel): 56 (wgpuQuerySetSetLabel): 57 * WebGPU/Queue.h: 58 * WebGPU/Queue.mm: 59 (WebGPU::Queue::setLabel): 60 (wgpuQueueSetLabel): 61 * WebGPU/RenderBundle.h: 62 * WebGPU/RenderBundle.mm: 63 (WebGPU::RenderBundle::setLabel): 64 (wgpuRenderBundleSetLabel): 65 * WebGPU/RenderBundleEncoder.h: 66 * WebGPU/RenderBundleEncoder.mm: 67 (WebGPU::RenderBundleEncoder::setLabel): 68 (wgpuRenderBundleEncoderSetLabel): 69 * WebGPU/RenderPassEncoder.h: 70 * WebGPU/RenderPassEncoder.mm: 71 (WebGPU::RenderPassEncoder::setLabel): 72 (wgpuRenderPassEncoderSetLabel): 73 * WebGPU/Sampler.h: 74 * WebGPU/Sampler.mm: 75 (WebGPU::Sampler::setLabel): 76 (wgpuSamplerSetLabel): 77 * WebGPU/Texture.h: 78 * WebGPU/Texture.mm: 79 (WebGPU::Texture::setLabel): 80 (wgpuTextureSetLabel): 81 * WebGPU/TextureView.h: 82 * WebGPU/TextureView.mm: 83 (WebGPU::TextureView::setLabel): 84 (wgpuTextureViewSetLabel): 85 * WebGPU/WebGPUExt.h: 86 1 87 2021-11-09 Myles C. Maxfield <mmaxfield@apple.com> 2 88 -
trunk/Source/WebGPU/WebGPU/Adapter.h
r285527 r285792 38 38 void getProperties(WGPUAdapterProperties*); 39 39 bool hasFeature(WGPUFeatureName); 40 WGPUFeatureName getFeatureAtIndex(size_t); 40 41 void requestDevice(const WGPUDeviceDescriptor*, std::function<void(WGPURequestDeviceStatus, Device&&, const char*)>&& callback); 41 42 }; -
trunk/Source/WebGPU/WebGPU/Adapter.mm
r285527 r285792 50 50 } 51 51 52 WGPUFeatureName Adapter::getFeatureAtIndex(size_t index) 53 { 54 UNUSED_PARAM(index); 55 return WGPUFeatureName_Undefined; 56 } 57 52 58 void Adapter::requestDevice(const WGPUDeviceDescriptor* descriptor, std::function<void(WGPURequestDeviceStatus, Device&&, const char*)>&& callback) 53 59 { … … 78 84 } 79 85 86 WGPUFeatureName wgpuAdapterGetFeatureAtIndex(WGPUAdapter adapter, size_t index) 87 { 88 return adapter->adapter.getFeatureAtIndex(index); 89 } 90 80 91 void wgpuAdapterRequestDevice(WGPUAdapter adapter, const WGPUDeviceDescriptor* descriptor, WGPURequestDeviceCallback callback, void* userdata) 81 92 { -
trunk/Source/WebGPU/WebGPU/BindGroup.h
r285527 r285792 31 31 32 32 class BindGroup { 33 33 public: 34 void setLabel(const char*); 34 35 }; 35 36 -
trunk/Source/WebGPU/WebGPU/BindGroup.mm
r285527 r285792 31 31 namespace WebGPU { 32 32 33 void BindGroup::setLabel(const char* label) 34 { 35 UNUSED_PARAM(label); 36 } 37 33 38 } 34 39 … … 37 42 delete bindGroup; 38 43 } 44 45 void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, const char* label) 46 { 47 bindGroup->bindGroup.setLabel(label); 48 } -
trunk/Source/WebGPU/WebGPU/BindGroupLayout.h
r285527 r285792 31 31 32 32 class BindGroupLayout { 33 33 public: 34 void setLabel(const char*); 34 35 }; 35 36 -
trunk/Source/WebGPU/WebGPU/BindGroupLayout.mm
r285527 r285792 31 31 namespace WebGPU { 32 32 33 void BindGroupLayout::setLabel(const char* label) 34 { 35 UNUSED_PARAM(label); 36 } 37 33 38 } 34 39 … … 37 42 delete bindGroupLayout; 38 43 } 44 45 void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, const char* label) 46 { 47 bindGroupLayout->bindGroupLayout.setLabel(label); 48 } -
trunk/Source/WebGPU/WebGPU/Buffer.h
r285527 r285792 38 38 void mapAsync(WGPUMapModeFlags, size_t offset, size_t, std::function<void(WGPUBufferMapAsyncStatus)>&& callback); 39 39 void unmap(); 40 void setLabel(const char*); 40 41 }; 41 42 -
trunk/Source/WebGPU/WebGPU/Buffer.mm
r285527 r285792 61 61 } 62 62 63 void Buffer::setLabel(const char* label) 64 { 65 UNUSED_PARAM(label); 66 } 67 63 68 } // namespace WebGPU 64 69 … … 94 99 buffer->buffer.unmap(); 95 100 } 101 102 void wgpuBufferSetLabel(WGPUBuffer buffer, const char* label) 103 { 104 buffer->buffer.setLabel(label); 105 } -
trunk/Source/WebGPU/WebGPU/CommandBuffer.h
r285527 r285792 31 31 32 32 class CommandBuffer { 33 33 public: 34 void setLabel(const char*); 34 35 }; 35 36 -
trunk/Source/WebGPU/WebGPU/CommandBuffer.mm
r285527 r285792 31 31 namespace WebGPU { 32 32 33 void CommandBuffer::setLabel(const char* label) 34 { 35 UNUSED_PARAM(label); 36 } 37 33 38 } 34 39 … … 37 42 delete commandBuffer; 38 43 } 44 45 void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, const char* label) 46 { 47 commandBuffer->commandBuffer.setLabel(label); 48 } -
trunk/Source/WebGPU/WebGPU/CommandEncoder.h
r285527 r285792 44 44 void copyTextureToBuffer(const WGPUImageCopyTexture* source, const WGPUImageCopyBuffer* destination, const WGPUExtent3D* copySize); 45 45 void copyTextureToTexture(const WGPUImageCopyTexture* source, const WGPUImageCopyTexture* destination, const WGPUExtent3D* copySize); 46 void fillBuffer(const Buffer& destination, uint64_t destinationOffset, uint64_t size); 46 47 CommandBuffer finish(const WGPUCommandBufferDescriptor*); 47 48 void insertDebugMarker(const char* markerLabel); … … 50 51 void resolveQuerySet(const QuerySet&, uint32_t firstQuery, uint32_t queryCount, const Buffer& destination, uint64_t destinationOffset); 51 52 void writeTimestamp(const QuerySet&, uint32_t queryIndex); 53 void setLabel(const char*); 52 54 }; 53 55 -
trunk/Source/WebGPU/WebGPU/CommandEncoder.mm
r285527 r285792 78 78 } 79 79 80 void CommandEncoder::fillBuffer(const Buffer& destination, uint64_t destinationOffset, uint64_t size) 81 { 82 UNUSED_PARAM(destination); 83 UNUSED_PARAM(destinationOffset); 84 UNUSED_PARAM(size); 85 } 86 80 87 CommandBuffer CommandEncoder::finish(const WGPUCommandBufferDescriptor* descriptor) 81 88 { … … 113 120 } 114 121 122 void CommandEncoder::setLabel(const char* label) 123 { 124 UNUSED_PARAM(label); 125 } 126 115 127 } // namespace WebGPU 116 128 … … 150 162 } 151 163 164 void wgpuCommandEncoderFillBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) 165 { 166 commandEncoder->commandEncoder.fillBuffer(destination->buffer, destinationOffset, size); 167 } 168 152 169 WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, const WGPUCommandBufferDescriptor* descriptor) 153 170 { … … 180 197 } 181 198 199 void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, const char* label) 200 { 201 commandEncoder->commandEncoder.setLabel(label); 202 } 203 -
trunk/Source/WebGPU/WebGPU/ComputePassEncoder.h
r285527 r285792 48 48 void setPipeline(const ComputePipeline&); 49 49 void writeTimestamp(const QuerySet&, uint32_t queryIndex); 50 void setLabel(const char*); 50 51 }; 51 52 -
trunk/Source/WebGPU/WebGPU/ComputePassEncoder.mm
r285527 r285792 95 95 } 96 96 97 void ComputePassEncoder::setLabel(const char* label) 98 { 99 UNUSED_PARAM(label); 100 } 101 97 102 } // namespace WebGPU 98 103 … … 157 162 } 158 163 164 void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, const char* label) 165 { 166 computePassEncoder->computePassEncoder.setLabel(label); 167 } -
trunk/Source/WebGPU/WebGPU/Device.h
r285527 r285792 71 71 void setDeviceLostCallback(std::function<void(WGPUDeviceLostReason, const char*)>&&); 72 72 void setUncapturedErrorCallback(std::function<void(WGPUErrorType, const char*)>&&); 73 void setLabel(const char*); 73 74 }; 74 75 -
trunk/Source/WebGPU/WebGPU/Device.mm
r285527 r285792 174 174 } 175 175 176 void Device::setLabel(const char* label) 177 { 178 UNUSED_PARAM(label); 179 } 180 176 181 } // namespace WebGPU 177 182 … … 303 308 } 304 309 310 void wgpuDeviceSetLabel(WGPUDevice device, const char* label) 311 { 312 device->device.setLabel(label); 313 } -
trunk/Source/WebGPU/WebGPU/Instance.mm
r285527 r285792 68 68 UNUSED_PARAM(device); 69 69 // FIXME: Use gperf to make this faster. 70 if (!strcmp(procName, "wgpuCreateInstance")) 71 return reinterpret_cast<WGPUProc>(&wgpuCreateInstance); 72 if (!strcmp(procName, "wgpuGetProcAddress")) 73 return reinterpret_cast<WGPUProc>(&wgpuGetProcAddress); 70 if (!strcmp(procName, "wgpuAdapterGetFeatureAtIndex")) 71 return reinterpret_cast<WGPUProc>(&wgpuAdapterGetFeatureAtIndex); 74 72 if (!strcmp(procName, "wgpuAdapterGetLimits")) 75 73 return reinterpret_cast<WGPUProc>(&wgpuAdapterGetLimits); … … 78 76 if (!strcmp(procName, "wgpuAdapterHasFeature")) 79 77 return reinterpret_cast<WGPUProc>(&wgpuAdapterHasFeature); 78 if (!strcmp(procName, "wgpuAdapterRelease")) 79 return reinterpret_cast<WGPUProc>(&wgpuAdapterRelease); 80 80 if (!strcmp(procName, "wgpuAdapterRequestDevice")) 81 81 return reinterpret_cast<WGPUProc>(&wgpuAdapterRequestDevice); 82 if (!strcmp(procName, "wgpuBindGroupLayoutRelease")) 83 return reinterpret_cast<WGPUProc>(&wgpuBindGroupLayoutRelease); 84 if (!strcmp(procName, "wgpuBindGroupLayoutSetLabel")) 85 return reinterpret_cast<WGPUProc>(&wgpuBindGroupLayoutSetLabel); 86 if (!strcmp(procName, "wgpuBindGroupRelease")) 87 return reinterpret_cast<WGPUProc>(&wgpuBindGroupRelease); 88 if (!strcmp(procName, "wgpuBindGroupSetLabel")) 89 return reinterpret_cast<WGPUProc>(&wgpuBindGroupSetLabel); 82 90 if (!strcmp(procName, "wgpuBufferDestroy")) 83 91 return reinterpret_cast<WGPUProc>(&wgpuBufferDestroy); … … 88 96 if (!strcmp(procName, "wgpuBufferMapAsync")) 89 97 return reinterpret_cast<WGPUProc>(&wgpuBufferMapAsync); 98 if (!strcmp(procName, "wgpuBufferRelease")) 99 return reinterpret_cast<WGPUProc>(&wgpuBufferRelease); 100 if (!strcmp(procName, "wgpuBufferSetLabel")) 101 return reinterpret_cast<WGPUProc>(&wgpuBufferSetLabel); 90 102 if (!strcmp(procName, "wgpuBufferUnmap")) 91 103 return reinterpret_cast<WGPUProc>(&wgpuBufferUnmap); 104 if (!strcmp(procName, "wgpuCommandBufferRelease")) 105 return reinterpret_cast<WGPUProc>(&wgpuCommandBufferRelease); 106 if (!strcmp(procName, "wgpuCommandBufferSetLabel")) 107 return reinterpret_cast<WGPUProc>(&wgpuCommandBufferSetLabel); 92 108 if (!strcmp(procName, "wgpuCommandEncoderBeginComputePass")) 93 109 return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderBeginComputePass); … … 102 118 if (!strcmp(procName, "wgpuCommandEncoderCopyTextureToTexture")) 103 119 return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderCopyTextureToTexture); 120 if (!strcmp(procName, "wgpuCommandEncoderFillBuffer")) 121 return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderFillBuffer); 104 122 if (!strcmp(procName, "wgpuCommandEncoderFinish")) 105 123 return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderFinish); … … 110 128 if (!strcmp(procName, "wgpuCommandEncoderPushDebugGroup")) 111 129 return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderPushDebugGroup); 130 if (!strcmp(procName, "wgpuCommandEncoderRelease")) 131 return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderRelease); 112 132 if (!strcmp(procName, "wgpuCommandEncoderResolveQuerySet")) 113 133 return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderResolveQuerySet); 134 if (!strcmp(procName, "wgpuCommandEncoderSetLabel")) 135 return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderSetLabel); 114 136 if (!strcmp(procName, "wgpuCommandEncoderWriteTimestamp")) 115 137 return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderWriteTimestamp); … … 130 152 if (!strcmp(procName, "wgpuComputePassEncoderPushDebugGroup")) 131 153 return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderPushDebugGroup); 154 if (!strcmp(procName, "wgpuComputePassEncoderRelease")) 155 return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderRelease); 132 156 if (!strcmp(procName, "wgpuComputePassEncoderSetBindGroup")) 133 157 return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderSetBindGroup); 158 if (!strcmp(procName, "wgpuComputePassEncoderSetLabel")) 159 return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderSetLabel); 134 160 if (!strcmp(procName, "wgpuComputePassEncoderSetPipeline")) 135 161 return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderSetPipeline); … … 138 164 if (!strcmp(procName, "wgpuComputePipelineGetBindGroupLayout")) 139 165 return reinterpret_cast<WGPUProc>(&wgpuComputePipelineGetBindGroupLayout); 166 if (!strcmp(procName, "wgpuComputePipelineRelease")) 167 return reinterpret_cast<WGPUProc>(&wgpuComputePipelineRelease); 140 168 if (!strcmp(procName, "wgpuComputePipelineSetLabel")) 141 169 return reinterpret_cast<WGPUProc>(&wgpuComputePipelineSetLabel); 170 if (!strcmp(procName, "wgpuCreateInstance")) 171 return reinterpret_cast<WGPUProc>(&wgpuCreateInstance); 142 172 if (!strcmp(procName, "wgpuDeviceCreateBindGroup")) 143 173 return reinterpret_cast<WGPUProc>(&wgpuDeviceCreateBindGroup); … … 180 210 if (!strcmp(procName, "wgpuDevicePushErrorScope")) 181 211 return reinterpret_cast<WGPUProc>(&wgpuDevicePushErrorScope); 212 if (!strcmp(procName, "wgpuDeviceRelease")) 213 return reinterpret_cast<WGPUProc>(&wgpuDeviceRelease); 182 214 if (!strcmp(procName, "wgpuDeviceSetDeviceLostCallback")) 183 215 return reinterpret_cast<WGPUProc>(&wgpuDeviceSetDeviceLostCallback); 216 if (!strcmp(procName, "wgpuDeviceSetLabel")) 217 return reinterpret_cast<WGPUProc>(&wgpuDeviceSetLabel); 184 218 if (!strcmp(procName, "wgpuDeviceSetUncapturedErrorCallback")) 185 219 return reinterpret_cast<WGPUProc>(&wgpuDeviceSetUncapturedErrorCallback); 220 if (!strcmp(procName, "wgpuGetProcAddress")) 221 return reinterpret_cast<WGPUProc>(&wgpuGetProcAddress); 186 222 if (!strcmp(procName, "wgpuInstanceCreateSurface")) 187 223 return reinterpret_cast<WGPUProc>(&wgpuInstanceCreateSurface); 188 224 if (!strcmp(procName, "wgpuInstanceProcessEvents")) 189 225 return reinterpret_cast<WGPUProc>(&wgpuInstanceProcessEvents); 226 if (!strcmp(procName, "wgpuInstanceRelease")) 227 return reinterpret_cast<WGPUProc>(&wgpuInstanceRelease); 190 228 if (!strcmp(procName, "wgpuInstanceRequestAdapter")) 191 229 return reinterpret_cast<WGPUProc>(&wgpuInstanceRequestAdapter); 230 if (!strcmp(procName, "wgpuPipelineLayoutRelease")) 231 return reinterpret_cast<WGPUProc>(&wgpuPipelineLayoutRelease); 232 if (!strcmp(procName, "wgpuPipelineLayoutSetLabel")) 233 return reinterpret_cast<WGPUProc>(&wgpuPipelineLayoutSetLabel); 192 234 if (!strcmp(procName, "wgpuQuerySetDestroy")) 193 235 return reinterpret_cast<WGPUProc>(&wgpuQuerySetDestroy); 236 if (!strcmp(procName, "wgpuQuerySetRelease")) 237 return reinterpret_cast<WGPUProc>(&wgpuQuerySetRelease); 238 if (!strcmp(procName, "wgpuQuerySetSetLabel")) 239 return reinterpret_cast<WGPUProc>(&wgpuQuerySetSetLabel); 194 240 if (!strcmp(procName, "wgpuQueueOnSubmittedWorkDone")) 195 241 return reinterpret_cast<WGPUProc>(&wgpuQueueOnSubmittedWorkDone); 242 if (!strcmp(procName, "wgpuQueueRelease")) 243 return reinterpret_cast<WGPUProc>(&wgpuQueueRelease); 244 if (!strcmp(procName, "wgpuQueueSetLabel")) 245 return reinterpret_cast<WGPUProc>(&wgpuQueueSetLabel); 196 246 if (!strcmp(procName, "wgpuQueueSubmit")) 197 247 return reinterpret_cast<WGPUProc>(&wgpuQueueSubmit); … … 216 266 if (!strcmp(procName, "wgpuRenderBundleEncoderPushDebugGroup")) 217 267 return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderPushDebugGroup); 268 if (!strcmp(procName, "wgpuRenderBundleEncoderRelease")) 269 return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderRelease); 218 270 if (!strcmp(procName, "wgpuRenderBundleEncoderSetBindGroup")) 219 271 return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderSetBindGroup); 220 272 if (!strcmp(procName, "wgpuRenderBundleEncoderSetIndexBuffer")) 221 273 return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderSetIndexBuffer); 274 if (!strcmp(procName, "wgpuRenderBundleEncoderSetLabel")) 275 return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderSetLabel); 222 276 if (!strcmp(procName, "wgpuRenderBundleEncoderSetPipeline")) 223 277 return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderSetPipeline); 224 278 if (!strcmp(procName, "wgpuRenderBundleEncoderSetVertexBuffer")) 225 279 return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderSetVertexBuffer); 280 if (!strcmp(procName, "wgpuRenderBundleRelease")) 281 return reinterpret_cast<WGPUProc>(&wgpuRenderBundleRelease); 282 if (!strcmp(procName, "wgpuRenderBundleSetLabel")) 283 return reinterpret_cast<WGPUProc>(&wgpuRenderBundleSetLabel); 226 284 if (!strcmp(procName, "wgpuRenderPassEncoderBeginOcclusionQuery")) 227 285 return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderBeginOcclusionQuery); … … 250 308 if (!strcmp(procName, "wgpuRenderPassEncoderPushDebugGroup")) 251 309 return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderPushDebugGroup); 310 if (!strcmp(procName, "wgpuRenderPassEncoderRelease")) 311 return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderRelease); 252 312 if (!strcmp(procName, "wgpuRenderPassEncoderSetBindGroup")) 253 313 return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderSetBindGroup); … … 256 316 if (!strcmp(procName, "wgpuRenderPassEncoderSetIndexBuffer")) 257 317 return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderSetIndexBuffer); 318 if (!strcmp(procName, "wgpuRenderPassEncoderSetLabel")) 319 return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderSetLabel); 258 320 if (!strcmp(procName, "wgpuRenderPassEncoderSetPipeline")) 259 321 return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderSetPipeline); … … 270 332 if (!strcmp(procName, "wgpuRenderPipelineGetBindGroupLayout")) 271 333 return reinterpret_cast<WGPUProc>(&wgpuRenderPipelineGetBindGroupLayout); 334 if (!strcmp(procName, "wgpuRenderPipelineRelease")) 335 return reinterpret_cast<WGPUProc>(&wgpuRenderPipelineRelease); 272 336 if (!strcmp(procName, "wgpuRenderPipelineSetLabel")) 273 337 return reinterpret_cast<WGPUProc>(&wgpuRenderPipelineSetLabel); 338 if (!strcmp(procName, "wgpuSamplerRelease")) 339 return reinterpret_cast<WGPUProc>(&wgpuSamplerRelease); 340 if (!strcmp(procName, "wgpuSamplerSetLabel")) 341 return reinterpret_cast<WGPUProc>(&wgpuSamplerSetLabel); 342 if (!strcmp(procName, "wgpuShaderModuleRelease")) 343 return reinterpret_cast<WGPUProc>(&wgpuShaderModuleRelease); 274 344 if (!strcmp(procName, "wgpuShaderModuleSetLabel")) 275 345 return reinterpret_cast<WGPUProc>(&wgpuShaderModuleSetLabel); 276 346 if (!strcmp(procName, "wgpuSurfaceGetPreferredFormat")) 277 347 return reinterpret_cast<WGPUProc>(&wgpuSurfaceGetPreferredFormat); 348 if (!strcmp(procName, "wgpuSurfaceRelease")) 349 return reinterpret_cast<WGPUProc>(&wgpuSurfaceRelease); 278 350 if (!strcmp(procName, "wgpuSwapChainGetCurrentTextureView")) 279 351 return reinterpret_cast<WGPUProc>(&wgpuSwapChainGetCurrentTextureView); 280 352 if (!strcmp(procName, "wgpuSwapChainPresent")) 281 353 return reinterpret_cast<WGPUProc>(&wgpuSwapChainPresent); 354 if (!strcmp(procName, "wgpuSwapChainRelease")) 355 return reinterpret_cast<WGPUProc>(&wgpuSwapChainRelease); 282 356 if (!strcmp(procName, "wgpuTextureCreateView")) 283 357 return reinterpret_cast<WGPUProc>(&wgpuTextureCreateView); 284 358 if (!strcmp(procName, "wgpuTextureDestroy")) 285 359 return reinterpret_cast<WGPUProc>(&wgpuTextureDestroy); 360 if (!strcmp(procName, "wgpuTextureRelease")) 361 return reinterpret_cast<WGPUProc>(&wgpuTextureRelease); 362 if (!strcmp(procName, "wgpuTextureSetLabel")) 363 return reinterpret_cast<WGPUProc>(&wgpuTextureSetLabel); 364 if (!strcmp(procName, "wgpuTextureViewRelease")) 365 return reinterpret_cast<WGPUProc>(&wgpuTextureViewRelease); 366 if (!strcmp(procName, "wgpuTextureViewSetLabel")) 367 return reinterpret_cast<WGPUProc>(&wgpuTextureViewSetLabel); 286 368 return nullptr; 287 369 } -
trunk/Source/WebGPU/WebGPU/PipelineLayout.h
r285527 r285792 31 31 32 32 class PipelineLayout { 33 33 public: 34 void setLabel(const char*); 34 35 }; 35 36 -
trunk/Source/WebGPU/WebGPU/PipelineLayout.mm
r285527 r285792 31 31 namespace WebGPU { 32 32 33 void PipelineLayout::setLabel(const char* label) 34 { 35 UNUSED_PARAM(label); 36 } 37 33 38 } 34 39 … … 37 42 delete pipelineLayout; 38 43 } 44 45 void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, const char* label) 46 { 47 pipelineLayout->pipelineLayout.setLabel(label); 48 } -
trunk/Source/WebGPU/WebGPU/QuerySet.h
r285527 r285792 33 33 public: 34 34 void destroy(); 35 void setLabel(const char*); 35 36 }; 36 37 -
trunk/Source/WebGPU/WebGPU/QuerySet.mm
r285527 r285792 35 35 } 36 36 37 void QuerySet::setLabel(const char* label) 38 { 39 UNUSED_PARAM(label); 40 } 41 37 42 } // namespace WebGPU 38 43 … … 47 52 } 48 53 54 void wgpuQuerySetSetLabel(WGPUQuerySet querySet, const char* label) 55 { 56 querySet->querySet.setLabel(label); 57 } -
trunk/Source/WebGPU/WebGPU/Queue.h
r285527 r285792 41 41 void writeBuffer(const Buffer&, uint64_t bufferOffset, const void* data, size_t); 42 42 void writeTexture(const WGPUImageCopyTexture* destination, const void* data, size_t dataSize, const WGPUTextureDataLayout*, const WGPUExtent3D* writeSize); 43 void setLabel(const char*); 43 44 }; 44 45 -
trunk/Source/WebGPU/WebGPU/Queue.mm
r285527 r285792 61 61 } 62 62 63 void Queue::setLabel(const char* label) 64 { 65 UNUSED_PARAM(label); 66 } 67 63 68 } // namespace WebGPU 64 69 … … 93 98 } 94 99 100 void wgpuQueueSetLabel(WGPUQueue queue, const char* label) 101 { 102 queue->queue.setLabel(label); 103 } 104 -
trunk/Source/WebGPU/WebGPU/RenderBundle.h
r285527 r285792 31 31 32 32 class RenderBundle { 33 33 public: 34 void setLabel(const char*); 34 35 }; 35 36 -
trunk/Source/WebGPU/WebGPU/RenderBundle.mm
r285527 r285792 31 31 namespace WebGPU { 32 32 33 void RenderBundle::setLabel(const char* label) 34 { 35 UNUSED_PARAM(label); 36 } 37 33 38 } 34 39 … … 37 42 delete renderBundle; 38 43 } 44 45 void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, const char* label) 46 { 47 renderBundle->renderBundle.setLabel(label); 48 } -
trunk/Source/WebGPU/WebGPU/RenderBundleEncoder.h
r285527 r285792 49 49 void setPipeline(const RenderPipeline&); 50 50 void setVertexBuffer(uint32_t slot, const Buffer&, uint64_t offset, uint64_t size); 51 void setLabel(const char*); 51 52 }; 52 53 -
trunk/Source/WebGPU/WebGPU/RenderBundleEncoder.mm
r285527 r285792 113 113 } 114 114 115 void RenderBundleEncoder::setLabel(const char* label) 116 { 117 UNUSED_PARAM(label); 118 } 119 115 120 } // namespace WebGPU 116 121 … … 180 185 } 181 186 187 void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, const char* label) 188 { 189 renderBundleEncoder->renderBundleEncoder.setLabel(label); 190 } -
trunk/Source/WebGPU/WebGPU/RenderPassEncoder.h
r285527 r285792 62 62 void setViewport(float x, float y, float width, float height, float minDepth, float maxDepth); 63 63 void writeTimestamp(const QuerySet&, uint32_t queryIndex); 64 void setLabel(const char*); 64 65 }; 65 66 -
trunk/Source/WebGPU/WebGPU/RenderPassEncoder.mm
r285527 r285792 174 174 } 175 175 176 void RenderPassEncoder::setLabel(const char* label) 177 { 178 UNUSED_PARAM(label); 179 } 180 176 181 } // namespace WebGPU 177 182 … … 294 299 } 295 300 301 void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, const char* label) 302 { 303 renderPassEncoder->renderPassEncoder.setLabel(label); 304 } -
trunk/Source/WebGPU/WebGPU/Sampler.h
r285527 r285792 31 31 32 32 class Sampler { 33 33 public: 34 void setLabel(const char*); 34 35 }; 35 36 -
trunk/Source/WebGPU/WebGPU/Sampler.mm
r285527 r285792 31 31 namespace WebGPU { 32 32 33 void Sampler::setLabel(const char* label) 34 { 35 UNUSED_PARAM(label); 36 } 37 33 38 } 34 39 … … 37 42 delete sampler; 38 43 } 44 45 void wgpuSamplerSetLabel(WGPUSampler sampler, const char* label) 46 { 47 sampler->sampler.setLabel(label); 48 } -
trunk/Source/WebGPU/WebGPU/Texture.h
r285527 r285792 36 36 TextureView createView(const WGPUTextureViewDescriptor*); 37 37 void destroy(); 38 void setLabel(const char*); 38 39 }; 39 40 -
trunk/Source/WebGPU/WebGPU/Texture.mm
r285527 r285792 42 42 } 43 43 44 void Texture::setLabel(const char* label) 45 { 46 UNUSED_PARAM(label); 47 } 48 44 49 } // namespace WebGPU 45 50 … … 59 64 } 60 65 66 void wgpuTextureSetLabel(WGPUTexture texture, const char* label) 67 { 68 texture->texture.setLabel(label); 69 } -
trunk/Source/WebGPU/WebGPU/TextureView.h
r285527 r285792 31 31 32 32 class TextureView { 33 33 public: 34 void setLabel(const char*); 34 35 }; 35 36 -
trunk/Source/WebGPU/WebGPU/TextureView.mm
r285527 r285792 31 31 namespace WebGPU { 32 32 33 void TextureView::setLabel(const char* label) 34 { 35 UNUSED_PARAM(label); 36 } 37 33 38 } 34 39 … … 37 42 UNUSED_PARAM(textureView); 38 43 } 44 45 void wgpuTextureViewSetLabel(WGPUTextureView textureView, const char* label) 46 { 47 textureView->textureView.setLabel(label); 48 } -
trunk/Source/WebGPU/WebGPU/WebGPUExt.h
r285527 r285792 27 27 #define WEBGPUEXT_H_ 28 28 29 typedef enum WGPUSTypeExtended { 30 WGPUSType_DeviceDescriptorLabel = 0x242A99E0, // Random 31 } WGPUSTypeExtended; 32 33 typedef enum WGPUTextureFormatExtended { 34 WGPUTextureFormat_ETC2RGB8Unorm = 0x28C25C67, // Random 35 WGPUTextureFormat_ETC2RGB8unormSrgb = 0x566AAFEE, // Random 36 WGPUTextureFormat_ETC2RGB8a1Unorm = 0x2F794348, // Random 37 WGPUTextureFormat_ETC2RGB8a1unormSrgb = 0x5EF38ABA, // Random 38 WGPUTextureFormat_ETC2RGBA8Unorm = 0x5A4E6480, // Random 39 WGPUTextureFormat_ETC2RGBA8UnormSrgb = 0x780968EB, // Random 40 WGPUTextureFormat_EACR11Unorm = 0x69863090, // Random 41 WGPUTextureFormat_EACR11Snorm = 0x25E5428A, // Random 42 WGPUTextureFormat_EACRG11Unorm = 0x1B0969B3, // Random 43 WGPUTextureFormat_EACRG11Snorm = 0x16F4BB6D, // Random 44 45 WGPUTextureFormat_ASTC4x4Unorm = 0x39F60F6E, // Random 46 WGPUTextureFormat_ASTC4x4UnormSrgb = 0x24472700, // Random 47 WGPUTextureFormat_ASTC5x4Unorm = 0x67D32B0E, // Random 48 WGPUTextureFormat_ASTC5x4UnormSrgb = 0x313DA1BE, // Random 49 WGPUTextureFormat_ASTC5x5Unorm = 0x15AB8DFD, // Random 50 WGPUTextureFormat_ASTC5x5UnormSrgb = 0x7B00EB57, // Random 51 WGPUTextureFormat_ASTC6x5Unorm = 0x653E80C3, // Random 52 WGPUTextureFormat_ASTC6x5UnormSrgb = 0x50AE869A, // Random 53 WGPUTextureFormat_ASTC6x6Unorm = 0x579AF598, // Random 54 WGPUTextureFormat_ASTC6x6UnormSrgb = 0x73B69732, // Random 55 WGPUTextureFormat_ASTC8x5Unorm = 0x06F70308, // Random 56 WGPUTextureFormat_ASTC8x5UnormSrgb = 0x420EA946, // Random 57 WGPUTextureFormat_ASTC8x6Unorm = 0x61086AC8, // Random 58 WGPUTextureFormat_ASTC8x6UnormSrgb = 0x0E17D39A, // Random 59 WGPUTextureFormat_ASTC8x8Unorm = 0x569BF2E8, // Random 60 WGPUTextureFormat_ASTC8x8UnormSrgb = 0x572A4849, // Random 61 WGPUTextureFormat_ASTC10x5Unorm = 0x63ABE432, // Random 62 WGPUTextureFormat_ASTC10x5UnormSrgb = 0x3BC3AA4C, // Random 63 WGPUTextureFormat_ASTC10x6Unorm = 0x6FE19499, // Random 64 WGPUTextureFormat_ASTC10x6UnormSrgb = 0x7FF0B5C0, // Random 65 WGPUTextureFormat_ASTC10x8Unorm = 0x2015F4C3, // Random 66 WGPUTextureFormat_ASTC10x8UnormSrgb = 0x7D51DC6F, // Random 67 WGPUTextureFormat_ASTC10x10Unorm = 0x67F10173, // Random 68 WGPUTextureFormat_ASTC10x10UnormSrgb = 0x35D74D21, // Random 69 WGPUTextureFormat_ASTC12x10Unorm = 0x09DAD0A7, // Random 70 WGPUTextureFormat_ASTC12x10UnormSrgb = 0x3560C93A, // Random 71 WGPUTextureFormat_ASTC12x12Unorm = 0x26CC3050, // Random 72 WGPUTextureFormat_ASTC12x12UnormSrgb = 0x3EF578A0, // Random 73 74 WGPUTextureFormat_Depth32FloatStencil8 = 0x53DC2307, // Random 75 } WGPUTextureFormatExtended; 76 77 typedef enum WGPUFeatureNameExtended { 78 WGPUFeatureName_DepthClipControl = 0x55ABC13D, // Random 79 WGPUFeatureName_IndirectFirstInstance = 0x2A7084F5, // Random 80 WGPUFeatureName_TextureCompressionETC2 = 0x7BF66F69, // Random 81 WGPUFeatureName_TextureCompressionASTC = 0x26173399, // Random 82 } WGPUFeatureNameExtended; 83 84 typedef enum WGPUPowerPreferenceExtended { 85 WGPUPowerPreference_NoPreference = 0x4748336F, 86 } WGPUPowerPreferenceExtended; 87 88 typedef struct WGPUDeviceDescriptorLabel { 89 WGPUChainedStruct header; 90 WGPUChainedStruct const * nextInChain; 91 char const * label; 92 } WGPUDeviceDescriptorLabel; 93 29 94 #ifdef __cplusplus 30 95 extern "C" { 31 96 #endif 32 97 98 #if !defined(WGPU_SKIP_PROCS) 99 100 typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter); 101 typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout); 102 typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup); 103 typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer); 104 typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer); 105 typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder); 106 typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder); 107 typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline); 108 typedef void (*WGPUProcDeviceRelease)(WGPUDevice device); 109 typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance); 110 typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout); 111 typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet); 112 typedef void (*WGPUProcQueueRelease)(WGPUQueue queue); 113 typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder); 114 typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle); 115 typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder); 116 typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline); 117 typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler); 118 typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule); 119 typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface); 120 typedef void (*WGPUProcSwapChainRelease)(WGPUSwapChain swapChain); 121 typedef void (*WGPUProcTextureRelease)(WGPUTexture texture); 122 typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView); 123 124 typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, char const * label); 125 typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, char const * label); 126 typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, char const * label); 127 typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, char const * label); 128 typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, char const * label); 129 typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, char const * label); 130 typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice queue, char const * label); 131 typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, char const * label); 132 typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, char const * label); 133 typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, char const * label); 134 typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, char const * label); 135 typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, char const * label); 136 typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderBundleEncoder, char const * label); 137 typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, char const * label); 138 typedef void (*WGPUProcTextureSetLabel)(WGPUTexture sampler, char const * label); 139 typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView sampler, char const * label); 140 141 typedef WGPUFeatureName (*WGPUProcAdapterGetFeatureAtIndex)(WGPUAdapter adapter, size_t index); 142 143 typedef void (*WGPUProcCommandEncoderFillBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size); 144 145 #endif // !defined(WGPU_SKIP_PROCS) 146 147 #if !defined(WGPU_SKIP_DECLARATIONS) 148 33 149 WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter); 150 WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout); 34 151 WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup); 35 WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout);36 152 WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer); 37 153 WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer); … … 44 160 WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet); 45 161 WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue); 162 WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder); 46 163 WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle); 47 WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder);48 164 WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder); 49 165 WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline); … … 55 171 WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView); 56 172 173 WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, char const * label); 174 WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, char const * label); 175 WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, char const * label); 176 WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, char const * label); 177 WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, char const * label); 178 WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, char const * label); 179 WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice queue, char const * label); 180 WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, char const * label); 181 WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, char const * label); 182 WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, char const * label); 183 WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, char const * label); 184 WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, char const * label); 185 WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderBundleEncoder, char const * label); 186 WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, char const * label); 187 WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture sampler, char const * label); 188 WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView sampler, char const * label); 189 190 WGPU_EXPORT WGPUFeatureName wgpuAdapterGetFeatureAtIndex(WGPUAdapter adapter, size_t index); 191 192 WGPU_EXPORT void wgpuCommandEncoderFillBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size); 193 194 #endif // !defined(WGPU_SKIP_DECLARATIONS) 195 57 196 #ifdef __cplusplus 58 197 } // extern "C" 59 198 #endif 60 199 61 #endif 200 #endif // WEBGPUEXT_H_
Note:
See TracChangeset
for help on using the changeset viewer.