⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 285792 in webkit


Ignore:
Timestamp:
Nov 14, 2021, 11:38:16 AM (5 years ago)
Author:
mmaxfield@apple.com
Message:

[WebGPU] Add necessary additions to WebGPU.framework
https://bugs.webkit.org/show_bug.cgi?id=233091

Reviewed by Dean Jackson.

WebGPU.framework's header file is lagging a bit behind the official WebGPU API.
This updates a companion header, WebGPUExt.h, with the necessary additions.
I don't want to modify the primary header, WebGPU.h, because it's shared among
multiple projects, so coordination is necessary to modify it.

  • WebGPU/Adapter.h:
  • WebGPU/Adapter.mm:

(WebGPU::Adapter::getFeatureAtIndex):
(wgpuAdapterGetFeatureAtIndex):

  • WebGPU/BindGroup.h:
  • WebGPU/BindGroup.mm:

(WebGPU::BindGroup::setLabel):
(wgpuBindGroupSetLabel):

  • WebGPU/BindGroupLayout.h:
  • WebGPU/BindGroupLayout.mm:

(WebGPU::BindGroupLayout::setLabel):
(wgpuBindGroupLayoutSetLabel):

  • WebGPU/Buffer.h:
  • WebGPU/Buffer.mm:

(WebGPU::Buffer::setLabel):
(wgpuBufferSetLabel):

  • WebGPU/CommandBuffer.h:
  • WebGPU/CommandBuffer.mm:

(WebGPU::CommandBuffer::setLabel):
(wgpuCommandBufferSetLabel):

  • WebGPU/CommandEncoder.h:
  • WebGPU/CommandEncoder.mm:

(WebGPU::CommandEncoder::fillBuffer):
(WebGPU::CommandEncoder::setLabel):
(wgpuCommandEncoderFillBuffer):
(wgpuCommandEncoderSetLabel):

  • WebGPU/ComputePassEncoder.h:
  • WebGPU/ComputePassEncoder.mm:

(WebGPU::ComputePassEncoder::setLabel):
(wgpuComputePassEncoderSetLabel):

  • WebGPU/Device.h:
  • WebGPU/Device.mm:

(WebGPU::Device::setLabel):
(wgpuDeviceSetLabel):

  • WebGPU/Instance.mm:

(wgpuGetProcAddress):

  • WebGPU/PipelineLayout.h:
  • WebGPU/PipelineLayout.mm:

(WebGPU::PipelineLayout::setLabel):
(wgpuPipelineLayoutSetLabel):

  • WebGPU/QuerySet.h:
  • WebGPU/QuerySet.mm:

(WebGPU::QuerySet::setLabel):
(wgpuQuerySetSetLabel):

  • WebGPU/Queue.h:
  • WebGPU/Queue.mm:

(WebGPU::Queue::setLabel):
(wgpuQueueSetLabel):

  • WebGPU/RenderBundle.h:
  • WebGPU/RenderBundle.mm:

(WebGPU::RenderBundle::setLabel):
(wgpuRenderBundleSetLabel):

  • WebGPU/RenderBundleEncoder.h:
  • WebGPU/RenderBundleEncoder.mm:

(WebGPU::RenderBundleEncoder::setLabel):
(wgpuRenderBundleEncoderSetLabel):

  • WebGPU/RenderPassEncoder.h:
  • WebGPU/RenderPassEncoder.mm:

(WebGPU::RenderPassEncoder::setLabel):
(wgpuRenderPassEncoderSetLabel):

  • WebGPU/Sampler.h:
  • WebGPU/Sampler.mm:

(WebGPU::Sampler::setLabel):
(wgpuSamplerSetLabel):

  • WebGPU/Texture.h:
  • WebGPU/Texture.mm:

(WebGPU::Texture::setLabel):
(wgpuTextureSetLabel):

  • WebGPU/TextureView.h:
  • WebGPU/TextureView.mm:

(WebGPU::TextureView::setLabel):
(wgpuTextureViewSetLabel):

  • WebGPU/WebGPUExt.h:
Location:
trunk/Source/WebGPU
Files:
37 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebGPU/ChangeLog

    r285527 r285792  
     12021-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
    1872021-11-09  Myles C. Maxfield  <mmaxfield@apple.com>
    288
  • trunk/Source/WebGPU/WebGPU/Adapter.h

    r285527 r285792  
    3838    void getProperties(WGPUAdapterProperties*);
    3939    bool hasFeature(WGPUFeatureName);
     40    WGPUFeatureName getFeatureAtIndex(size_t);
    4041    void requestDevice(const WGPUDeviceDescriptor*, std::function<void(WGPURequestDeviceStatus, Device&&, const char*)>&& callback);
    4142};
  • trunk/Source/WebGPU/WebGPU/Adapter.mm

    r285527 r285792  
    5050}
    5151
     52WGPUFeatureName Adapter::getFeatureAtIndex(size_t index)
     53{
     54    UNUSED_PARAM(index);
     55    return WGPUFeatureName_Undefined;
     56}
     57
    5258void Adapter::requestDevice(const WGPUDeviceDescriptor* descriptor, std::function<void(WGPURequestDeviceStatus, Device&&, const char*)>&& callback)
    5359{
     
    7884}
    7985
     86WGPUFeatureName wgpuAdapterGetFeatureAtIndex(WGPUAdapter adapter, size_t index)
     87{
     88    return adapter->adapter.getFeatureAtIndex(index);
     89}
     90
    8091void wgpuAdapterRequestDevice(WGPUAdapter adapter, const WGPUDeviceDescriptor* descriptor, WGPURequestDeviceCallback callback, void* userdata)
    8192{
  • trunk/Source/WebGPU/WebGPU/BindGroup.h

    r285527 r285792  
    3131
    3232class BindGroup {
    33 
     33public:
     34    void setLabel(const char*);
    3435};
    3536
  • trunk/Source/WebGPU/WebGPU/BindGroup.mm

    r285527 r285792  
    3131namespace WebGPU {
    3232
     33void BindGroup::setLabel(const char* label)
     34{
     35    UNUSED_PARAM(label);
     36}
     37
    3338}
    3439
     
    3742    delete bindGroup;
    3843}
     44
     45void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, const char* label)
     46{
     47    bindGroup->bindGroup.setLabel(label);
     48}
  • trunk/Source/WebGPU/WebGPU/BindGroupLayout.h

    r285527 r285792  
    3131
    3232class BindGroupLayout {
    33 
     33public:
     34    void setLabel(const char*);
    3435};
    3536
  • trunk/Source/WebGPU/WebGPU/BindGroupLayout.mm

    r285527 r285792  
    3131namespace WebGPU {
    3232
     33void BindGroupLayout::setLabel(const char* label)
     34{
     35    UNUSED_PARAM(label);
     36}
     37
    3338}
    3439
     
    3742    delete bindGroupLayout;
    3843}
     44
     45void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, const char* label)
     46{
     47    bindGroupLayout->bindGroupLayout.setLabel(label);
     48}
  • trunk/Source/WebGPU/WebGPU/Buffer.h

    r285527 r285792  
    3838    void mapAsync(WGPUMapModeFlags, size_t offset, size_t, std::function<void(WGPUBufferMapAsyncStatus)>&& callback);
    3939    void unmap();
     40    void setLabel(const char*);
    4041};
    4142
  • trunk/Source/WebGPU/WebGPU/Buffer.mm

    r285527 r285792  
    6161}
    6262
     63void Buffer::setLabel(const char* label)
     64{
     65    UNUSED_PARAM(label);
     66}
     67
    6368} // namespace WebGPU
    6469
     
    9499    buffer->buffer.unmap();
    95100}
     101
     102void wgpuBufferSetLabel(WGPUBuffer buffer, const char* label)
     103{
     104    buffer->buffer.setLabel(label);
     105}
  • trunk/Source/WebGPU/WebGPU/CommandBuffer.h

    r285527 r285792  
    3131
    3232class CommandBuffer {
    33 
     33public:
     34    void setLabel(const char*);
    3435};
    3536
  • trunk/Source/WebGPU/WebGPU/CommandBuffer.mm

    r285527 r285792  
    3131namespace WebGPU {
    3232
     33void CommandBuffer::setLabel(const char* label)
     34{
     35    UNUSED_PARAM(label);
     36}
     37
    3338}
    3439
     
    3742    delete commandBuffer;
    3843}
     44
     45void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, const char* label)
     46{
     47    commandBuffer->commandBuffer.setLabel(label);
     48}
  • trunk/Source/WebGPU/WebGPU/CommandEncoder.h

    r285527 r285792  
    4444    void copyTextureToBuffer(const WGPUImageCopyTexture* source, const WGPUImageCopyBuffer* destination, const WGPUExtent3D* copySize);
    4545    void copyTextureToTexture(const WGPUImageCopyTexture* source, const WGPUImageCopyTexture* destination, const WGPUExtent3D* copySize);
     46    void fillBuffer(const Buffer& destination, uint64_t destinationOffset, uint64_t size);
    4647    CommandBuffer finish(const WGPUCommandBufferDescriptor*);
    4748    void insertDebugMarker(const char* markerLabel);
     
    5051    void resolveQuerySet(const QuerySet&, uint32_t firstQuery, uint32_t queryCount, const Buffer& destination, uint64_t destinationOffset);
    5152    void writeTimestamp(const QuerySet&, uint32_t queryIndex);
     53    void setLabel(const char*);
    5254};
    5355
  • trunk/Source/WebGPU/WebGPU/CommandEncoder.mm

    r285527 r285792  
    7878}
    7979
     80void 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
    8087CommandBuffer CommandEncoder::finish(const WGPUCommandBufferDescriptor* descriptor)
    8188{
     
    113120}
    114121
     122void CommandEncoder::setLabel(const char* label)
     123{
     124    UNUSED_PARAM(label);
     125}
     126
    115127} // namespace WebGPU
    116128
     
    150162}
    151163
     164void wgpuCommandEncoderFillBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
     165{
     166    commandEncoder->commandEncoder.fillBuffer(destination->buffer, destinationOffset, size);
     167}
     168
    152169WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, const WGPUCommandBufferDescriptor* descriptor)
    153170{
     
    180197}
    181198
     199void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, const char* label)
     200{
     201    commandEncoder->commandEncoder.setLabel(label);
     202}
     203
  • trunk/Source/WebGPU/WebGPU/ComputePassEncoder.h

    r285527 r285792  
    4848    void setPipeline(const ComputePipeline&);
    4949    void writeTimestamp(const QuerySet&, uint32_t queryIndex);
     50    void setLabel(const char*);
    5051};
    5152
  • trunk/Source/WebGPU/WebGPU/ComputePassEncoder.mm

    r285527 r285792  
    9595}
    9696
     97void ComputePassEncoder::setLabel(const char* label)
     98{
     99    UNUSED_PARAM(label);
     100}
     101
    97102} // namespace WebGPU
    98103
     
    157162}
    158163
     164void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, const char* label)
     165{
     166    computePassEncoder->computePassEncoder.setLabel(label);
     167}
  • trunk/Source/WebGPU/WebGPU/Device.h

    r285527 r285792  
    7171    void setDeviceLostCallback(std::function<void(WGPUDeviceLostReason, const char*)>&&);
    7272    void setUncapturedErrorCallback(std::function<void(WGPUErrorType, const char*)>&&);
     73    void setLabel(const char*);
    7374};
    7475
  • trunk/Source/WebGPU/WebGPU/Device.mm

    r285527 r285792  
    174174}
    175175
     176void Device::setLabel(const char* label)
     177{
     178    UNUSED_PARAM(label);
     179}
     180
    176181} // namespace WebGPU
    177182
     
    303308}
    304309
     310void wgpuDeviceSetLabel(WGPUDevice device, const char* label)
     311{
     312    device->device.setLabel(label);
     313}
  • trunk/Source/WebGPU/WebGPU/Instance.mm

    r285527 r285792  
    6868    UNUSED_PARAM(device);
    6969    // 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);
    7472    if (!strcmp(procName, "wgpuAdapterGetLimits"))
    7573        return reinterpret_cast<WGPUProc>(&wgpuAdapterGetLimits);
     
    7876    if (!strcmp(procName, "wgpuAdapterHasFeature"))
    7977        return reinterpret_cast<WGPUProc>(&wgpuAdapterHasFeature);
     78    if (!strcmp(procName, "wgpuAdapterRelease"))
     79        return reinterpret_cast<WGPUProc>(&wgpuAdapterRelease);
    8080    if (!strcmp(procName, "wgpuAdapterRequestDevice"))
    8181        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);
    8290    if (!strcmp(procName, "wgpuBufferDestroy"))
    8391        return reinterpret_cast<WGPUProc>(&wgpuBufferDestroy);
     
    8896    if (!strcmp(procName, "wgpuBufferMapAsync"))
    8997        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);
    90102    if (!strcmp(procName, "wgpuBufferUnmap"))
    91103        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);
    92108    if (!strcmp(procName, "wgpuCommandEncoderBeginComputePass"))
    93109        return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderBeginComputePass);
     
    102118    if (!strcmp(procName, "wgpuCommandEncoderCopyTextureToTexture"))
    103119        return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderCopyTextureToTexture);
     120    if (!strcmp(procName, "wgpuCommandEncoderFillBuffer"))
     121        return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderFillBuffer);
    104122    if (!strcmp(procName, "wgpuCommandEncoderFinish"))
    105123        return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderFinish);
     
    110128    if (!strcmp(procName, "wgpuCommandEncoderPushDebugGroup"))
    111129        return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderPushDebugGroup);
     130    if (!strcmp(procName, "wgpuCommandEncoderRelease"))
     131        return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderRelease);
    112132    if (!strcmp(procName, "wgpuCommandEncoderResolveQuerySet"))
    113133        return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderResolveQuerySet);
     134    if (!strcmp(procName, "wgpuCommandEncoderSetLabel"))
     135        return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderSetLabel);
    114136    if (!strcmp(procName, "wgpuCommandEncoderWriteTimestamp"))
    115137        return reinterpret_cast<WGPUProc>(&wgpuCommandEncoderWriteTimestamp);
     
    130152    if (!strcmp(procName, "wgpuComputePassEncoderPushDebugGroup"))
    131153        return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderPushDebugGroup);
     154    if (!strcmp(procName, "wgpuComputePassEncoderRelease"))
     155        return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderRelease);
    132156    if (!strcmp(procName, "wgpuComputePassEncoderSetBindGroup"))
    133157        return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderSetBindGroup);
     158    if (!strcmp(procName, "wgpuComputePassEncoderSetLabel"))
     159        return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderSetLabel);
    134160    if (!strcmp(procName, "wgpuComputePassEncoderSetPipeline"))
    135161        return reinterpret_cast<WGPUProc>(&wgpuComputePassEncoderSetPipeline);
     
    138164    if (!strcmp(procName, "wgpuComputePipelineGetBindGroupLayout"))
    139165        return reinterpret_cast<WGPUProc>(&wgpuComputePipelineGetBindGroupLayout);
     166    if (!strcmp(procName, "wgpuComputePipelineRelease"))
     167        return reinterpret_cast<WGPUProc>(&wgpuComputePipelineRelease);
    140168    if (!strcmp(procName, "wgpuComputePipelineSetLabel"))
    141169        return reinterpret_cast<WGPUProc>(&wgpuComputePipelineSetLabel);
     170    if (!strcmp(procName, "wgpuCreateInstance"))
     171        return reinterpret_cast<WGPUProc>(&wgpuCreateInstance);
    142172    if (!strcmp(procName, "wgpuDeviceCreateBindGroup"))
    143173        return reinterpret_cast<WGPUProc>(&wgpuDeviceCreateBindGroup);
     
    180210    if (!strcmp(procName, "wgpuDevicePushErrorScope"))
    181211        return reinterpret_cast<WGPUProc>(&wgpuDevicePushErrorScope);
     212    if (!strcmp(procName, "wgpuDeviceRelease"))
     213        return reinterpret_cast<WGPUProc>(&wgpuDeviceRelease);
    182214    if (!strcmp(procName, "wgpuDeviceSetDeviceLostCallback"))
    183215        return reinterpret_cast<WGPUProc>(&wgpuDeviceSetDeviceLostCallback);
     216    if (!strcmp(procName, "wgpuDeviceSetLabel"))
     217        return reinterpret_cast<WGPUProc>(&wgpuDeviceSetLabel);
    184218    if (!strcmp(procName, "wgpuDeviceSetUncapturedErrorCallback"))
    185219        return reinterpret_cast<WGPUProc>(&wgpuDeviceSetUncapturedErrorCallback);
     220    if (!strcmp(procName, "wgpuGetProcAddress"))
     221        return reinterpret_cast<WGPUProc>(&wgpuGetProcAddress);
    186222    if (!strcmp(procName, "wgpuInstanceCreateSurface"))
    187223        return reinterpret_cast<WGPUProc>(&wgpuInstanceCreateSurface);
    188224    if (!strcmp(procName, "wgpuInstanceProcessEvents"))
    189225        return reinterpret_cast<WGPUProc>(&wgpuInstanceProcessEvents);
     226    if (!strcmp(procName, "wgpuInstanceRelease"))
     227        return reinterpret_cast<WGPUProc>(&wgpuInstanceRelease);
    190228    if (!strcmp(procName, "wgpuInstanceRequestAdapter"))
    191229        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);
    192234    if (!strcmp(procName, "wgpuQuerySetDestroy"))
    193235        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);
    194240    if (!strcmp(procName, "wgpuQueueOnSubmittedWorkDone"))
    195241        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);
    196246    if (!strcmp(procName, "wgpuQueueSubmit"))
    197247        return reinterpret_cast<WGPUProc>(&wgpuQueueSubmit);
     
    216266    if (!strcmp(procName, "wgpuRenderBundleEncoderPushDebugGroup"))
    217267        return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderPushDebugGroup);
     268    if (!strcmp(procName, "wgpuRenderBundleEncoderRelease"))
     269        return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderRelease);
    218270    if (!strcmp(procName, "wgpuRenderBundleEncoderSetBindGroup"))
    219271        return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderSetBindGroup);
    220272    if (!strcmp(procName, "wgpuRenderBundleEncoderSetIndexBuffer"))
    221273        return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderSetIndexBuffer);
     274    if (!strcmp(procName, "wgpuRenderBundleEncoderSetLabel"))
     275        return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderSetLabel);
    222276    if (!strcmp(procName, "wgpuRenderBundleEncoderSetPipeline"))
    223277        return reinterpret_cast<WGPUProc>(&wgpuRenderBundleEncoderSetPipeline);
    224278    if (!strcmp(procName, "wgpuRenderBundleEncoderSetVertexBuffer"))
    225279        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);
    226284    if (!strcmp(procName, "wgpuRenderPassEncoderBeginOcclusionQuery"))
    227285        return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderBeginOcclusionQuery);
     
    250308    if (!strcmp(procName, "wgpuRenderPassEncoderPushDebugGroup"))
    251309        return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderPushDebugGroup);
     310    if (!strcmp(procName, "wgpuRenderPassEncoderRelease"))
     311        return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderRelease);
    252312    if (!strcmp(procName, "wgpuRenderPassEncoderSetBindGroup"))
    253313        return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderSetBindGroup);
     
    256316    if (!strcmp(procName, "wgpuRenderPassEncoderSetIndexBuffer"))
    257317        return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderSetIndexBuffer);
     318    if (!strcmp(procName, "wgpuRenderPassEncoderSetLabel"))
     319        return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderSetLabel);
    258320    if (!strcmp(procName, "wgpuRenderPassEncoderSetPipeline"))
    259321        return reinterpret_cast<WGPUProc>(&wgpuRenderPassEncoderSetPipeline);
     
    270332    if (!strcmp(procName, "wgpuRenderPipelineGetBindGroupLayout"))
    271333        return reinterpret_cast<WGPUProc>(&wgpuRenderPipelineGetBindGroupLayout);
     334    if (!strcmp(procName, "wgpuRenderPipelineRelease"))
     335        return reinterpret_cast<WGPUProc>(&wgpuRenderPipelineRelease);
    272336    if (!strcmp(procName, "wgpuRenderPipelineSetLabel"))
    273337        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);
    274344    if (!strcmp(procName, "wgpuShaderModuleSetLabel"))
    275345        return reinterpret_cast<WGPUProc>(&wgpuShaderModuleSetLabel);
    276346    if (!strcmp(procName, "wgpuSurfaceGetPreferredFormat"))
    277347        return reinterpret_cast<WGPUProc>(&wgpuSurfaceGetPreferredFormat);
     348    if (!strcmp(procName, "wgpuSurfaceRelease"))
     349        return reinterpret_cast<WGPUProc>(&wgpuSurfaceRelease);
    278350    if (!strcmp(procName, "wgpuSwapChainGetCurrentTextureView"))
    279351        return reinterpret_cast<WGPUProc>(&wgpuSwapChainGetCurrentTextureView);
    280352    if (!strcmp(procName, "wgpuSwapChainPresent"))
    281353        return reinterpret_cast<WGPUProc>(&wgpuSwapChainPresent);
     354    if (!strcmp(procName, "wgpuSwapChainRelease"))
     355        return reinterpret_cast<WGPUProc>(&wgpuSwapChainRelease);
    282356    if (!strcmp(procName, "wgpuTextureCreateView"))
    283357        return reinterpret_cast<WGPUProc>(&wgpuTextureCreateView);
    284358    if (!strcmp(procName, "wgpuTextureDestroy"))
    285359        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);
    286368    return nullptr;
    287369}
  • trunk/Source/WebGPU/WebGPU/PipelineLayout.h

    r285527 r285792  
    3131
    3232class PipelineLayout {
    33 
     33public:
     34    void setLabel(const char*);
    3435};
    3536
  • trunk/Source/WebGPU/WebGPU/PipelineLayout.mm

    r285527 r285792  
    3131namespace WebGPU {
    3232
     33void PipelineLayout::setLabel(const char* label)
     34{
     35    UNUSED_PARAM(label);
     36}
     37
    3338}
    3439
     
    3742    delete pipelineLayout;
    3843}
     44
     45void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, const char* label)
     46{
     47    pipelineLayout->pipelineLayout.setLabel(label);
     48}
  • trunk/Source/WebGPU/WebGPU/QuerySet.h

    r285527 r285792  
    3333public:
    3434    void destroy();
     35    void setLabel(const char*);
    3536};
    3637
  • trunk/Source/WebGPU/WebGPU/QuerySet.mm

    r285527 r285792  
    3535}
    3636
     37void QuerySet::setLabel(const char* label)
     38{
     39    UNUSED_PARAM(label);
     40}
     41
    3742} // namespace WebGPU
    3843
     
    4752}
    4853
     54void wgpuQuerySetSetLabel(WGPUQuerySet querySet, const char* label)
     55{
     56    querySet->querySet.setLabel(label);
     57}
  • trunk/Source/WebGPU/WebGPU/Queue.h

    r285527 r285792  
    4141    void writeBuffer(const Buffer&, uint64_t bufferOffset, const void* data, size_t);
    4242    void writeTexture(const WGPUImageCopyTexture* destination, const void* data, size_t dataSize, const WGPUTextureDataLayout*, const WGPUExtent3D* writeSize);
     43    void setLabel(const char*);
    4344};
    4445
  • trunk/Source/WebGPU/WebGPU/Queue.mm

    r285527 r285792  
    6161}
    6262
     63void Queue::setLabel(const char* label)
     64{
     65    UNUSED_PARAM(label);
     66}
     67
    6368} // namespace WebGPU
    6469
     
    9398}
    9499
     100void wgpuQueueSetLabel(WGPUQueue queue, const char* label)
     101{
     102    queue->queue.setLabel(label);
     103}
     104
  • trunk/Source/WebGPU/WebGPU/RenderBundle.h

    r285527 r285792  
    3131
    3232class RenderBundle {
    33 
     33public:
     34    void setLabel(const char*);
    3435};
    3536
  • trunk/Source/WebGPU/WebGPU/RenderBundle.mm

    r285527 r285792  
    3131namespace WebGPU {
    3232
     33void RenderBundle::setLabel(const char* label)
     34{
     35    UNUSED_PARAM(label);
     36}
     37
    3338}
    3439
     
    3742    delete renderBundle;
    3843}
     44
     45void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, const char* label)
     46{
     47    renderBundle->renderBundle.setLabel(label);
     48}
  • trunk/Source/WebGPU/WebGPU/RenderBundleEncoder.h

    r285527 r285792  
    4949    void setPipeline(const RenderPipeline&);
    5050    void setVertexBuffer(uint32_t slot, const Buffer&, uint64_t offset, uint64_t size);
     51    void setLabel(const char*);
    5152};
    5253
  • trunk/Source/WebGPU/WebGPU/RenderBundleEncoder.mm

    r285527 r285792  
    113113}
    114114
     115void RenderBundleEncoder::setLabel(const char* label)
     116{
     117    UNUSED_PARAM(label);
     118}
     119
    115120} // namespace WebGPU
    116121
     
    180185}
    181186
     187void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, const char* label)
     188{
     189    renderBundleEncoder->renderBundleEncoder.setLabel(label);
     190}
  • trunk/Source/WebGPU/WebGPU/RenderPassEncoder.h

    r285527 r285792  
    6262    void setViewport(float x, float y, float width, float height, float minDepth, float maxDepth);
    6363    void writeTimestamp(const QuerySet&, uint32_t queryIndex);
     64    void setLabel(const char*);
    6465};
    6566
  • trunk/Source/WebGPU/WebGPU/RenderPassEncoder.mm

    r285527 r285792  
    174174}
    175175
     176void RenderPassEncoder::setLabel(const char* label)
     177{
     178    UNUSED_PARAM(label);
     179}
     180
    176181} // namespace WebGPU
    177182
     
    294299}
    295300
     301void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, const char* label)
     302{
     303    renderPassEncoder->renderPassEncoder.setLabel(label);
     304}
  • trunk/Source/WebGPU/WebGPU/Sampler.h

    r285527 r285792  
    3131
    3232class Sampler {
    33 
     33public:
     34    void setLabel(const char*);
    3435};
    3536
  • trunk/Source/WebGPU/WebGPU/Sampler.mm

    r285527 r285792  
    3131namespace WebGPU {
    3232
     33void Sampler::setLabel(const char* label)
     34{
     35    UNUSED_PARAM(label);
     36}
     37
    3338}
    3439
     
    3742    delete sampler;
    3843}
     44
     45void wgpuSamplerSetLabel(WGPUSampler sampler, const char* label)
     46{
     47    sampler->sampler.setLabel(label);
     48}
  • trunk/Source/WebGPU/WebGPU/Texture.h

    r285527 r285792  
    3636    TextureView createView(const WGPUTextureViewDescriptor*);
    3737    void destroy();
     38    void setLabel(const char*);
    3839};
    3940
  • trunk/Source/WebGPU/WebGPU/Texture.mm

    r285527 r285792  
    4242}
    4343
     44void Texture::setLabel(const char* label)
     45{
     46    UNUSED_PARAM(label);
     47}
     48
    4449} // namespace WebGPU
    4550
     
    5964}
    6065
     66void wgpuTextureSetLabel(WGPUTexture texture, const char* label)
     67{
     68    texture->texture.setLabel(label);
     69}
  • trunk/Source/WebGPU/WebGPU/TextureView.h

    r285527 r285792  
    3131
    3232class TextureView {
    33 
     33public:
     34    void setLabel(const char*);
    3435};
    3536
  • trunk/Source/WebGPU/WebGPU/TextureView.mm

    r285527 r285792  
    3131namespace WebGPU {
    3232
     33void TextureView::setLabel(const char* label)
     34{
     35    UNUSED_PARAM(label);
     36}
     37
    3338}
    3439
     
    3742    UNUSED_PARAM(textureView);
    3843}
     44
     45void wgpuTextureViewSetLabel(WGPUTextureView textureView, const char* label)
     46{
     47    textureView->textureView.setLabel(label);
     48}
  • trunk/Source/WebGPU/WebGPU/WebGPUExt.h

    r285527 r285792  
    2727#define WEBGPUEXT_H_
    2828
     29typedef enum WGPUSTypeExtended {
     30    WGPUSType_DeviceDescriptorLabel = 0x242A99E0, // Random
     31} WGPUSTypeExtended;
     32
     33typedef 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
     77typedef 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
     84typedef enum WGPUPowerPreferenceExtended {
     85    WGPUPowerPreference_NoPreference = 0x4748336F,
     86} WGPUPowerPreferenceExtended;
     87
     88typedef struct WGPUDeviceDescriptorLabel {
     89    WGPUChainedStruct header;
     90    WGPUChainedStruct const * nextInChain;
     91    char const * label;
     92} WGPUDeviceDescriptorLabel;
     93
    2994#ifdef __cplusplus
    3095extern "C" {
    3196#endif
    3297
     98#if !defined(WGPU_SKIP_PROCS)
     99
     100typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter);
     101typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout);
     102typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup);
     103typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer);
     104typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer);
     105typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder);
     106typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder);
     107typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline);
     108typedef void (*WGPUProcDeviceRelease)(WGPUDevice device);
     109typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance);
     110typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout);
     111typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet);
     112typedef void (*WGPUProcQueueRelease)(WGPUQueue queue);
     113typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder);
     114typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle);
     115typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder);
     116typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline);
     117typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler);
     118typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule);
     119typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface);
     120typedef void (*WGPUProcSwapChainRelease)(WGPUSwapChain swapChain);
     121typedef void (*WGPUProcTextureRelease)(WGPUTexture texture);
     122typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView);
     123
     124typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, char const * label);
     125typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, char const * label);
     126typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, char const * label);
     127typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, char const * label);
     128typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, char const * label);
     129typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, char const * label);
     130typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice queue, char const * label);
     131typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, char const * label);
     132typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, char const * label);
     133typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, char const * label);
     134typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, char const * label);
     135typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, char const * label);
     136typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderBundleEncoder, char const * label);
     137typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, char const * label);
     138typedef void (*WGPUProcTextureSetLabel)(WGPUTexture sampler, char const * label);
     139typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView sampler, char const * label);
     140
     141typedef WGPUFeatureName (*WGPUProcAdapterGetFeatureAtIndex)(WGPUAdapter adapter, size_t index);
     142
     143typedef 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
    33149WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter);
     150WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout);
    34151WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup);
    35 WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout);
    36152WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer);
    37153WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer);
     
    44160WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet);
    45161WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue);
     162WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder);
    46163WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle);
    47 WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder);
    48164WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder);
    49165WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline);
     
    55171WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView);
    56172
     173WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, char const * label);
     174WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, char const * label);
     175WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, char const * label);
     176WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, char const * label);
     177WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, char const * label);
     178WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, char const * label);
     179WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice queue, char const * label);
     180WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, char const * label);
     181WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, char const * label);
     182WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, char const * label);
     183WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, char const * label);
     184WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, char const * label);
     185WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderBundleEncoder, char const * label);
     186WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, char const * label);
     187WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture sampler, char const * label);
     188WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView sampler, char const * label);
     189
     190WGPU_EXPORT WGPUFeatureName wgpuAdapterGetFeatureAtIndex(WGPUAdapter adapter, size_t index);
     191
     192WGPU_EXPORT void wgpuCommandEncoderFillBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size);
     193
     194#endif  // !defined(WGPU_SKIP_DECLARATIONS)
     195
    57196#ifdef __cplusplus
    58197} // extern "C"
    59198#endif
    60199
    61 #endif
     200#endif // WEBGPUEXT_H_
Note: See TracChangeset for help on using the changeset viewer.