Title: [243438] trunk
Revision
243438
Author
justin_...@apple.com
Date
2019-03-25 08:29:17 -0700 (Mon, 25 Mar 2019)

Log Message

Update WebGPU class names based on sketch.idl
https://bugs.webkit.org/show_bug.cgi?id=194260

Reviewed by Dean Jackson.
Source/WebCore:

Update all exposed Web GPU interface names to GPU* prefix.

Existing Web GPU tests updated to expect new names.

* Modules/webgpu/WebGPU.idl:
* Modules/webgpu/WebGPUAdapter.idl:
* Modules/webgpu/WebGPUBindGroup.idl:
* Modules/webgpu/WebGPUBindGroupLayout.idl:
* Modules/webgpu/WebGPUBuffer.idl:
* Modules/webgpu/WebGPUDevice.idl:
* Modules/webgpu/WebGPUInputStepMode.h: Removed.
* Modules/webgpu/WebGPUPipelineLayout.idl:
* Modules/webgpu/WebGPUProgrammablePassEncoder.idl:
* Modules/webgpu/WebGPUQueue.idl:
* Modules/webgpu/WebGPURenderPassEncoder.idl:
* Modules/webgpu/WebGPURenderPipeline.idl:
* Modules/webgpu/WebGPUSampler.idl:
* Modules/webgpu/WebGPUTexture.idl:
* Modules/webgpu/WebGPUTextureView.idl:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/WebCoreBuiltinNames.h:

LayoutTests:

Update all exposed Web GPU interface names to GPU* prefix.

* webgpu/adapter-options.html:
* webgpu/bind-groups.html:
* webgpu/map-read-buffers.html:
* webgpu/map-write-buffers.html:
* webgpu/pipeline-layouts.html:
* webgpu/queue-creation.html:
* webgpu/render-command-encoding.html:
* webgpu/render-pipelines.html:
* webgpu/textures-textureviews.html:
* webgpu/webgpu-enabled.html:

Modified Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (243437 => 243438)


--- trunk/LayoutTests/ChangeLog	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/ChangeLog	2019-03-25 15:29:17 UTC (rev 243438)
@@ -1,3 +1,23 @@
+2019-03-25  Justin Fan  <justin_...@apple.com>
+
+        Update WebGPU class names based on sketch.idl
+        https://bugs.webkit.org/show_bug.cgi?id=194260
+
+        Reviewed by Dean Jackson.
+        
+        Update all exposed Web GPU interface names to GPU* prefix.
+
+        * webgpu/adapter-options.html:
+        * webgpu/bind-groups.html:
+        * webgpu/map-read-buffers.html:
+        * webgpu/map-write-buffers.html:
+        * webgpu/pipeline-layouts.html:
+        * webgpu/queue-creation.html:
+        * webgpu/render-command-encoding.html:
+        * webgpu/render-pipelines.html:
+        * webgpu/textures-textureviews.html:
+        * webgpu/webgpu-enabled.html:
+
 2019-03-25  Javier Fernandez  <jfernan...@igalia.com>
 
         A single leading space is not considered as a word break even when word-break: break-all is set

Modified: trunk/LayoutTests/webgpu/adapter-options.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/adapter-options.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/adapter-options.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -9,7 +9,7 @@
     const defaultAdapter = await gpu.requestAdapter();
     const device = await defaultAdapter.requestDevice();
 
-    assert_true(device instanceof WebGPUDevice, "Default device successfully created.");
+    assert_true(device instanceof GPUDevice, "Default device successfully created.");
 }, "Create the default device.");
 
 promise_test(async () => {
@@ -16,7 +16,7 @@
     const lowPowerAdapter = await gpu.requestAdapter({ powerPreference: "low-power" });
     const device = await lowPowerAdapter.requestDevice();
 
-    assert_true(device instanceof WebGPUDevice, "Device successfully created using low-power option.");
+    assert_true(device instanceof GPUDevice, "Device successfully created using low-power option.");
 }, "Create a device with a low-power option.");
 
 promise_test(async () => {
@@ -23,7 +23,7 @@
     const highPerfAdapter = await gpu.requestAdapter({ powerPreference: "high-performance" });
     const device = await highPerfAdapter.requestDevice();
 
-    assert_true(device instanceof WebGPUDevice, "Device successfully created using high-performance option.");
+    assert_true(device instanceof GPUDevice, "Device successfully created using high-performance option.");
 }, "Create a device with a high-performance option.");
 </script>
 </body>
\ No newline at end of file

Modified: trunk/LayoutTests/webgpu/bind-groups.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/bind-groups.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/bind-groups.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -24,7 +24,7 @@
     const bindGroupBinding = { binding: 1, resource: bufferBinding };
 
     const bindGroup = device.createBindGroup({ layout: bindGroupLayout, bindings: [bindGroupBinding]});
-    assert_true(bindGroup instanceof WebGPUBindGroup, "WebGPUBindGroup successfully created.")
+    assert_true(bindGroup instanceof GPUBindGroup, "WebGPUBindGroup successfully created.")
 }, "Create a basic WebGPUBindGroup via WebGPUDevice.")
 </script>
 </body>
\ No newline at end of file

Modified: trunk/LayoutTests/webgpu/map-read-buffers.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/map-read-buffers.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/map-read-buffers.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -12,7 +12,7 @@
     // Basic mapReadAsync functionality
     promise_test(async () => {
         const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.TRANSFER_DST | GPUBufferUsage.MAP_READ });
-        assert_true(buffer instanceof WebGPUBuffer, "createBuffer returned a WebGPUBuffer");
+        assert_true(buffer instanceof GPUBuffer, "createBuffer returned a WebGPUBuffer");
 
         let array = new Float32Array([1, 2, 3, 4]);
         buffer.setSubData(0, array.buffer);

Modified: trunk/LayoutTests/webgpu/map-write-buffers.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/map-write-buffers.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/map-write-buffers.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -12,7 +12,7 @@
     // Basic mapWriteAsync functionality
     promise_test(async () => {
         const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.MAP_WRITE });
-        assert_true(buffer instanceof WebGPUBuffer, "createBuffer returned a WebGPUBuffer");
+        assert_true(buffer instanceof GPUBuffer, "createBuffer returned a WebGPUBuffer");
 
         let arrayBuffer = await buffer.mapWriteAsync();
 

Modified: trunk/LayoutTests/webgpu/pipeline-layouts.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/pipeline-layouts.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/pipeline-layouts.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -24,10 +24,10 @@
 promise_test(async () => {
     const device = await getBasicDevice();
     const bindGroupLayout = device.createBindGroupLayout({ bindings: [createBindGroupLayoutBinding()] });
-    assert_true(bindGroupLayout instanceof WebGPUBindGroupLayout, "createBindGroupLayout returned a WebGPUBindGroupLayout");
+    assert_true(bindGroupLayout instanceof GPUBindGroupLayout, "createBindGroupLayout returned a WebGPUBindGroupLayout");
 
     const pipelineLayout = device.createPipelineLayout({ bindGroupLayouts: [bindGroupLayout] });
-    assert_true(pipelineLayout instanceof WebGPUPipelineLayout, "createPipelineLayout returned a WebGPUPipelineLayout");
+    assert_true(pipelineLayout instanceof GPUPipelineLayout, "createPipelineLayout returned a WebGPUPipelineLayout");
 }, "Create a basic WebGPUPipelineLayout wtih a WebGPUDevice.");
 </script>
 </body>
\ No newline at end of file

Modified: trunk/LayoutTests/webgpu/queue-creation.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/queue-creation.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/queue-creation.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -15,13 +15,13 @@
     assert_true(context instanceof GPUCanvasContext, "getContext returned a GPUCanvasContext.");
 
     const adapter = await window.gpu.requestAdapter({});
-    assert_true(adapter instanceof WebGPUAdapter, "requestAdapter returned a WebGPUAdapter.");
+    assert_true(adapter instanceof GPUAdapter, "requestAdapter returned a WebGPUAdapter.");
 
     const device = await adapter.requestDevice();
-    assert_true(device instanceof WebGPUDevice, "requestDevice returned a WebGPUDevice.");
+    assert_true(device instanceof GPUDevice, "requestDevice returned a WebGPUDevice.");
 
     const queue = device.getQueue();
-    assert_true(queue instanceof WebGPUQueue, "getQueue returned a WebGPUQueue.");
+    assert_true(queue instanceof GPUQueue, "getQueue returned a WebGPUQueue.");
 
     queue.label = "Example label";
     assert_equals(queue.label, "Example label", "queue.label was set.");

Modified: trunk/LayoutTests/webgpu/render-command-encoding.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/render-command-encoding.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/render-command-encoding.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -38,7 +38,7 @@
     assert_true(commandEncoder instanceof GPUCommandEncoder, "createCommandEncoder returned a GPUCommandEncoder");
 
     const encoder = beginBasicRenderPass(swapChain, commandEncoder);
-    assert_true(encoder instanceof WebGPURenderPassEncoder, "beginRenderPass() returned a WebGPURenderPassEncoder");
+    assert_true(encoder instanceof GPURenderPassEncoder, "beginRenderPass() returned a WebGPURenderPassEncoder");
 
     encoder.setPipeline(pipeline);
     encoder.endPass();

Modified: trunk/LayoutTests/webgpu/render-pipelines.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/render-pipelines.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/render-pipelines.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -48,7 +48,7 @@
     const pipelineLayout = device.createPipelineLayout({ bindGroupLayouts: [bindGroupLayout] });
 
     const pipeline = createBasicPipeline(shaderModule, device, pipelineLayout);
-    assert_true(pipeline instanceof WebGPURenderPipeline, "Successfully created WebGPURenderPipeline");
+    assert_true(pipeline instanceof GPURenderPipeline, "Successfully created WebGPURenderPipeline");
 }, "Create basic WebGPURenderPipeline");
 </script>
 </html>
\ No newline at end of file

Modified: trunk/LayoutTests/webgpu/textures-textureviews.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/textures-textureviews.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/textures-textureviews.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -31,15 +31,15 @@
     swapChain = createBasicSwapChain(canvas, device);
 
     const texture = swapChain.getCurrentTexture();
-    assert_true(texture instanceof WebGPUTexture, "Successfully acquired next texture.");
+    assert_true(texture instanceof GPUTexture, "Successfully acquired next texture.");
 
     const textureView = texture.createDefaultView();
-    assert_true(textureView instanceof WebGPUTextureView, "Successfully created texture view from next texture.");
+    assert_true(textureView instanceof GPUTextureView, "Successfully created texture view from next texture.");
 }, "Create texture view from swap chain.");
 
 promise_test(async () => {
     const depthTexture = device.createTexture(texDescriptor);
-    assert_true(depthTexture instanceof WebGPUTexture, "Successfully created depth texture.");
+    assert_true(depthTexture instanceof GPUTexture, "Successfully created depth texture.");
 }, "Create basic depth texture from device.");
 
 promise_test(async () => {
@@ -48,7 +48,7 @@
     texDescriptor.usage = GPUTextureUsage.SAMPLED | GPUTextureUsage.TRANSFER_SRC
 
     const multisampledTexture = device.createTexture(texDescriptor);
-    assert_true(multisampledTexture instanceof WebGPUTexture, "Successfully created multisampled texture.");
+    assert_true(multisampledTexture instanceof GPUTexture, "Successfully created multisampled texture.");
 }, "Create basic 4x multisampled texture.");
 
 promise_test(async () => {
@@ -57,7 +57,7 @@
     texDescriptor.dimension = "3d";
 
     const texture3d = device.createTexture(texDescriptor);
-    assert_true(texture3d instanceof WebGPUTexture, "Successfully created basic 3D texture.");
+    assert_true(texture3d instanceof GPUTexture, "Successfully created basic 3D texture.");
 }, "Create basic 3D texture from device.");
 
 // FIXME: Add tests for 1D textures, textureArrays, and WebGPUTextureViews.

Modified: trunk/LayoutTests/webgpu/webgpu-enabled.html (243437 => 243438)


--- trunk/LayoutTests/webgpu/webgpu-enabled.html	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/LayoutTests/webgpu/webgpu-enabled.html	2019-03-25 15:29:17 UTC (rev 243438)
@@ -13,10 +13,10 @@
     assert_not_equals(window.gpu, undefined, "window.gpu is defined.");
 
     const adapter = await window.gpu.requestAdapter();
-    assert_true(adapter instanceof WebGPUAdapter, "Created default GPUAdapter.");
+    assert_true(adapter instanceof GPUAdapter, "Created default GPUAdapter.");
     
     const device = await adapter.requestDevice();
-    assert_true(device instanceof WebGPUDevice, "Created GPUDevice.");
+    assert_true(device instanceof GPUDevice, "Created GPUDevice.");
 }, "Web GPU is enabled.");
 </script>
 </html>
\ No newline at end of file

Modified: trunk/Source/WebCore/ChangeLog (243437 => 243438)


--- trunk/Source/WebCore/ChangeLog	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/ChangeLog	2019-03-25 15:29:17 UTC (rev 243438)
@@ -1,3 +1,32 @@
+2019-03-25  Justin Fan  <justin_...@apple.com>
+
+        Update WebGPU class names based on sketch.idl
+        https://bugs.webkit.org/show_bug.cgi?id=194260
+
+        Reviewed by Dean Jackson.
+
+        Update all exposed Web GPU interface names to GPU* prefix. 
+
+        Existing Web GPU tests updated to expect new names.
+
+        * Modules/webgpu/WebGPU.idl:
+        * Modules/webgpu/WebGPUAdapter.idl:
+        * Modules/webgpu/WebGPUBindGroup.idl:
+        * Modules/webgpu/WebGPUBindGroupLayout.idl:
+        * Modules/webgpu/WebGPUBuffer.idl:
+        * Modules/webgpu/WebGPUDevice.idl:
+        * Modules/webgpu/WebGPUInputStepMode.h: Removed.
+        * Modules/webgpu/WebGPUPipelineLayout.idl:
+        * Modules/webgpu/WebGPUProgrammablePassEncoder.idl:
+        * Modules/webgpu/WebGPUQueue.idl:
+        * Modules/webgpu/WebGPURenderPassEncoder.idl:
+        * Modules/webgpu/WebGPURenderPipeline.idl:
+        * Modules/webgpu/WebGPUSampler.idl:
+        * Modules/webgpu/WebGPUTexture.idl:
+        * Modules/webgpu/WebGPUTextureView.idl:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/js/WebCoreBuiltinNames.h:
+
 2019-03-25  Javier Fernandez  <jfernan...@igalia.com>
 
         A single leading space is not considered as a word break even when word-break: break-all is set

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPU.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPU.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPU.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,7 +27,8 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPU
 ] interface WebGPU {
     Promise<WebGPUAdapter> requestAdapter(optional GPURequestAdapterOptions options);
 };

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUAdapter.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUAdapter.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUAdapter.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,7 +27,8 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUAdapter
 ] interface WebGPUAdapter {
     // readonly attribute DOMString name;
     // readonly attribute WebGPUExtensions extensions;

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroup.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroup.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroup.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,6 +27,7 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUBindGroup
 ] interface WebGPUBindGroup {
 };

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroupLayout.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroupLayout.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroupLayout.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,6 +27,7 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUBindGroupLayout
 ] interface WebGPUBindGroupLayout {
 };

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUBuffer.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUBuffer.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUBuffer.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -29,7 +29,8 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUBuffer
 ] interface WebGPUBuffer {
     void setSubData(u64 offset, ArrayBuffer data);
 

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUDevice.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUDevice.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUDevice.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -39,7 +39,8 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUDevice
 ] interface WebGPUDevice {
     readonly attribute WebGPUAdapter adapter;
 

Deleted: trunk/Source/WebCore/Modules/webgpu/WebGPUInputStepMode.h (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUInputStepMode.h	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUInputStepMode.h	2019-03-25 15:29:17 UTC (rev 243438)
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2018 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#if ENABLE(WEBGPU)
-
-#include "GPUVertexInputDescriptor.h"
-
-namespace WebCore {
-
-using WebGPUInputStepMode = GPUInputStepMode;
-
-} // namespace WebCore
-
-#endif // ENABLE(WEBGPU)

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUPipelineLayout.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUPipelineLayout.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUPipelineLayout.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,6 +27,7 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUPipelineLayout
 ] interface WebGPUPipelineLayout {
 };

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUProgrammablePassEncoder.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUProgrammablePassEncoder.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUProgrammablePassEncoder.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -29,6 +29,7 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
+    InterfaceName=GPUProgrammablePassEncoder,
     SkipVTableValidation
 ] interface WebGPUProgrammablePassEncoder {
     void endPass();

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUQueue.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUQueue.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUQueue.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,7 +27,8 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUQueue
 ] interface WebGPUQueue {
     void submit(sequence<WebGPUCommandBuffer> buffers);
 

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPURenderPassEncoder.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPURenderPassEncoder.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPURenderPassEncoder.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -30,6 +30,7 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
+    InterfaceName=GPURenderPassEncoder,
     JSGenerateToJSObject
 ] interface WebGPURenderPassEncoder : WebGPUProgrammablePassEncoder {
     void setPipeline(WebGPURenderPipeline pipeline);

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPURenderPipeline.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPURenderPipeline.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPURenderPipeline.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,6 +27,7 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPURenderPipeline
 ] interface WebGPURenderPipeline {
 };

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUSampler.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUSampler.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUSampler.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,6 +27,7 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUSampler
 ] interface WebGPUSampler {
 };

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUTexture.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUTexture.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUTexture.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,7 +27,8 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUTexture
 ] interface WebGPUTexture {
     WebGPUTextureView createDefaultView();
     void destroy();

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUTextureView.idl (243437 => 243438)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUTextureView.idl	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUTextureView.idl	2019-03-25 15:29:17 UTC (rev 243438)
@@ -27,6 +27,7 @@
 [
     Conditional=WEBGPU,
     EnabledAtRuntime=WebGPU,
-    ImplementationLacksVTable
+    ImplementationLacksVTable,
+    InterfaceName=GPUTextureView
 ] interface WebGPUTextureView {
 };

Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (243437 => 243438)


--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2019-03-25 15:29:17 UTC (rev 243438)
@@ -14123,7 +14123,6 @@
 		D0615FCC217FE5C6008A48A8 /* WebGPUShaderModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebGPUShaderModule.h; sourceTree = "<group>"; };
 		D0615FCD217FE5C6008A48A8 /* WebGPUShaderModule.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebGPUShaderModule.cpp; sourceTree = "<group>"; };
 		D0615FCE217FE5C6008A48A8 /* WebGPUShaderModule.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebGPUShaderModule.idl; sourceTree = "<group>"; };
-		D063AE4621C06626000E6A35 /* WebGPUInputStepMode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebGPUInputStepMode.h; sourceTree = "<group>"; };
 		D06A9A2122026C7A0083C662 /* GPURequestAdapterOptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPURequestAdapterOptions.h; sourceTree = "<group>"; };
 		D06C0D8D0CFD11460065F43F /* RemoveFormatCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoveFormatCommand.h; sourceTree = "<group>"; };
 		D06C0D8E0CFD11460065F43F /* RemoveFormatCommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RemoveFormatCommand.cpp; sourceTree = "<group>"; };
@@ -26270,7 +26269,6 @@
 				D00F595321701D8C000D71DB /* WebGPUDevice.cpp */,
 				D00F595221701D8C000D71DB /* WebGPUDevice.h */,
 				D00F595421701D8C000D71DB /* WebGPUDevice.idl */,
-				D063AE4621C06626000E6A35 /* WebGPUInputStepMode.h */,
 				D0C419F02183EB31009EC1DE /* WebGPUPipelineDescriptorBase.h */,
 				D0C419F12183EB31009EC1DE /* WebGPUPipelineDescriptorBase.idl */,
 				D05A99E521C9BF2C00032B75 /* WebGPUPipelineLayout.cpp */,

Modified: trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h (243437 => 243438)


--- trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h	2019-03-25 15:07:35 UTC (rev 243437)
+++ trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h	2019-03-25 15:29:17 UTC (rev 243438)
@@ -81,6 +81,11 @@
     macro(Gamepad) \
     macro(GamepadButton) \
     macro(GamepadEvent) \
+    macro(GPU) \
+    macro(GPUAdapter) \
+    macro(GPUBindGroup) \
+    macro(GPUBindGroupLayout) \
+    macro(GPUBuffer) \
     macro(GPUBufferUsage) \
     macro(GPUCanvasContext) \
     macro(GPUShaderModule) \
@@ -88,9 +93,18 @@
     macro(GPUCommandEncoder) \
     macro(GPUComputePassEncoder) \
     macro(GPUComputePipeline) \
+    macro(GPUDevice) \
+    macro(GPUPipelineLayout) \
+    macro(GPUProgrammablePassEncoder) \
+    macro(GPUQueue) \
+    macro(GPURenderPassEncoder) \
+    macro(GPURenderPipeline) \
+    macro(GPUSampler) \
     macro(GPUShaderStageBit) \
     macro(GPUSwapChain) \
+    macro(GPUTexture) \
     macro(GPUTextureUsage) \
+    macro(GPUTextureView) \
     macro(HTMLAttachmentElement) \
     macro(HTMLAudioElement) \
     macro(HTMLDataListElement) \
@@ -200,23 +214,6 @@
     macro(VisualViewport) \
     macro(WebGL2RenderingContext) \
     macro(WebGLVertexArrayObject) \
-    macro(WebGPU) \
-    macro(WebGPUAdapter) \
-    macro(WebGPUBindGroup) \
-    macro(WebGPUBindGroupLayout) \
-    macro(WebGPUBuffer) \
-    macro(WebGPUDevice) \
-    macro(WebGPUIndexFormat) \
-    macro(WebGPUInputStepMode) \
-    macro(WebGPUQueue) \
-    macro(WebGPUPipelineLayout) \
-    macro(WebGPUProgrammablePassEncoder) \
-    macro(WebGPURenderPassEncoder) \
-    macro(WebGPURenderPipeline) \
-    macro(WebGPUSampler) \
-    macro(WebGPUTexture) \
-    macro(WebGPUTextureView) \
-    macro(WebGPUVertexFormat) \
     macro(WebMetalBuffer) \
     macro(WebMetalCommandBuffer) \
     macro(WebMetalCommandQueue) \
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to