Changeset 243438 in webkit
- Timestamp:
- Mar 25, 2019, 8:29:17 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 28 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/webgpu/adapter-options.html (modified) (3 diffs)
-
LayoutTests/webgpu/bind-groups.html (modified) (1 diff)
-
LayoutTests/webgpu/map-read-buffers.html (modified) (1 diff)
-
LayoutTests/webgpu/map-write-buffers.html (modified) (1 diff)
-
LayoutTests/webgpu/pipeline-layouts.html (modified) (1 diff)
-
LayoutTests/webgpu/queue-creation.html (modified) (1 diff)
-
LayoutTests/webgpu/render-command-encoding.html (modified) (1 diff)
-
LayoutTests/webgpu/render-pipelines.html (modified) (1 diff)
-
LayoutTests/webgpu/textures-textureviews.html (modified) (3 diffs)
-
LayoutTests/webgpu/webgpu-enabled.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPU.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUAdapter.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUBindGroup.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUBindGroupLayout.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUBuffer.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUDevice.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUInputStepMode.h (deleted)
-
Source/WebCore/Modules/webgpu/WebGPUPipelineLayout.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUProgrammablePassEncoder.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUQueue.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPURenderPassEncoder.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPURenderPipeline.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUSampler.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUTexture.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUTextureView.idl (modified) (1 diff)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (2 diffs)
-
Source/WebCore/bindings/js/WebCoreBuiltinNames.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r243437 r243438 1 2019-03-25 Justin Fan <justin_fan@apple.com> 2 3 Update WebGPU class names based on sketch.idl 4 https://bugs.webkit.org/show_bug.cgi?id=194260 5 6 Reviewed by Dean Jackson. 7 8 Update all exposed Web GPU interface names to GPU* prefix. 9 10 * webgpu/adapter-options.html: 11 * webgpu/bind-groups.html: 12 * webgpu/map-read-buffers.html: 13 * webgpu/map-write-buffers.html: 14 * webgpu/pipeline-layouts.html: 15 * webgpu/queue-creation.html: 16 * webgpu/render-command-encoding.html: 17 * webgpu/render-pipelines.html: 18 * webgpu/textures-textureviews.html: 19 * webgpu/webgpu-enabled.html: 20 1 21 2019-03-25 Javier Fernandez <jfernandez@igalia.com> 2 22 -
trunk/LayoutTests/webgpu/adapter-options.html
r243090 r243438 10 10 const device = await defaultAdapter.requestDevice(); 11 11 12 assert_true(device instanceof WebGPUDevice, "Default device successfully created.");12 assert_true(device instanceof GPUDevice, "Default device successfully created."); 13 13 }, "Create the default device."); 14 14 … … 17 17 const device = await lowPowerAdapter.requestDevice(); 18 18 19 assert_true(device instanceof WebGPUDevice, "Device successfully created using low-power option.");19 assert_true(device instanceof GPUDevice, "Device successfully created using low-power option."); 20 20 }, "Create a device with a low-power option."); 21 21 … … 24 24 const device = await highPerfAdapter.requestDevice(); 25 25 26 assert_true(device instanceof WebGPUDevice, "Device successfully created using high-performance option.");26 assert_true(device instanceof GPUDevice, "Device successfully created using high-performance option."); 27 27 }, "Create a device with a high-performance option."); 28 28 </script> -
trunk/LayoutTests/webgpu/bind-groups.html
r242575 r243438 25 25 26 26 const bindGroup = device.createBindGroup({ layout: bindGroupLayout, bindings: [bindGroupBinding]}); 27 assert_true(bindGroup instanceof WebGPUBindGroup, "WebGPUBindGroup successfully created.")27 assert_true(bindGroup instanceof GPUBindGroup, "WebGPUBindGroup successfully created.") 28 28 }, "Create a basic WebGPUBindGroup via WebGPUDevice.") 29 29 </script> -
trunk/LayoutTests/webgpu/map-read-buffers.html
r242148 r243438 13 13 promise_test(async () => { 14 14 const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.TRANSFER_DST | GPUBufferUsage.MAP_READ }); 15 assert_true(buffer instanceof WebGPUBuffer, "createBuffer returned a WebGPUBuffer");15 assert_true(buffer instanceof GPUBuffer, "createBuffer returned a WebGPUBuffer"); 16 16 17 17 let array = new Float32Array([1, 2, 3, 4]); -
trunk/LayoutTests/webgpu/map-write-buffers.html
r241996 r243438 13 13 promise_test(async () => { 14 14 const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.MAP_WRITE }); 15 assert_true(buffer instanceof WebGPUBuffer, "createBuffer returned a WebGPUBuffer");15 assert_true(buffer instanceof GPUBuffer, "createBuffer returned a WebGPUBuffer"); 16 16 17 17 let arrayBuffer = await buffer.mapWriteAsync(); -
trunk/LayoutTests/webgpu/pipeline-layouts.html
r242575 r243438 25 25 const device = await getBasicDevice(); 26 26 const bindGroupLayout = device.createBindGroupLayout({ bindings: [createBindGroupLayoutBinding()] }); 27 assert_true(bindGroupLayout instanceof WebGPUBindGroupLayout, "createBindGroupLayout returned a WebGPUBindGroupLayout");27 assert_true(bindGroupLayout instanceof GPUBindGroupLayout, "createBindGroupLayout returned a WebGPUBindGroupLayout"); 28 28 29 29 const pipelineLayout = device.createPipelineLayout({ bindGroupLayouts: [bindGroupLayout] }); 30 assert_true(pipelineLayout instanceof WebGPUPipelineLayout, "createPipelineLayout returned a WebGPUPipelineLayout");30 assert_true(pipelineLayout instanceof GPUPipelineLayout, "createPipelineLayout returned a WebGPUPipelineLayout"); 31 31 }, "Create a basic WebGPUPipelineLayout wtih a WebGPUDevice."); 32 32 </script> -
trunk/LayoutTests/webgpu/queue-creation.html
r243090 r243438 16 16 17 17 const adapter = await window.gpu.requestAdapter({}); 18 assert_true(adapter instanceof WebGPUAdapter, "requestAdapter returned a WebGPUAdapter.");18 assert_true(adapter instanceof GPUAdapter, "requestAdapter returned a WebGPUAdapter."); 19 19 20 20 const device = await adapter.requestDevice(); 21 assert_true(device instanceof WebGPUDevice, "requestDevice returned a WebGPUDevice.");21 assert_true(device instanceof GPUDevice, "requestDevice returned a WebGPUDevice."); 22 22 23 23 const queue = device.getQueue(); 24 assert_true(queue instanceof WebGPUQueue, "getQueue returned a WebGPUQueue.");24 assert_true(queue instanceof GPUQueue, "getQueue returned a WebGPUQueue."); 25 25 26 26 queue.label = "Example label"; -
trunk/LayoutTests/webgpu/render-command-encoding.html
r242974 r243438 39 39 40 40 const encoder = beginBasicRenderPass(swapChain, commandEncoder); 41 assert_true(encoder instanceof WebGPURenderPassEncoder, "beginRenderPass() returned a WebGPURenderPassEncoder");41 assert_true(encoder instanceof GPURenderPassEncoder, "beginRenderPass() returned a WebGPURenderPassEncoder"); 42 42 43 43 encoder.setPipeline(pipeline); -
trunk/LayoutTests/webgpu/render-pipelines.html
r242839 r243438 49 49 50 50 const pipeline = createBasicPipeline(shaderModule, device, pipelineLayout); 51 assert_true(pipeline instanceof WebGPURenderPipeline, "Successfully created WebGPURenderPipeline");51 assert_true(pipeline instanceof GPURenderPipeline, "Successfully created WebGPURenderPipeline"); 52 52 }, "Create basic WebGPURenderPipeline"); 53 53 </script> -
trunk/LayoutTests/webgpu/textures-textureviews.html
r243089 r243438 32 32 33 33 const texture = swapChain.getCurrentTexture(); 34 assert_true(texture instanceof WebGPUTexture, "Successfully acquired next texture.");34 assert_true(texture instanceof GPUTexture, "Successfully acquired next texture."); 35 35 36 36 const textureView = texture.createDefaultView(); 37 assert_true(textureView instanceof WebGPUTextureView, "Successfully created texture view from next texture.");37 assert_true(textureView instanceof GPUTextureView, "Successfully created texture view from next texture."); 38 38 }, "Create texture view from swap chain."); 39 39 40 40 promise_test(async () => { 41 41 const depthTexture = device.createTexture(texDescriptor); 42 assert_true(depthTexture instanceof WebGPUTexture, "Successfully created depth texture.");42 assert_true(depthTexture instanceof GPUTexture, "Successfully created depth texture."); 43 43 }, "Create basic depth texture from device."); 44 44 … … 49 49 50 50 const multisampledTexture = device.createTexture(texDescriptor); 51 assert_true(multisampledTexture instanceof WebGPUTexture, "Successfully created multisampled texture.");51 assert_true(multisampledTexture instanceof GPUTexture, "Successfully created multisampled texture."); 52 52 }, "Create basic 4x multisampled texture."); 53 53 … … 58 58 59 59 const texture3d = device.createTexture(texDescriptor); 60 assert_true(texture3d instanceof WebGPUTexture, "Successfully created basic 3D texture.");60 assert_true(texture3d instanceof GPUTexture, "Successfully created basic 3D texture."); 61 61 }, "Create basic 3D texture from device."); 62 62 -
trunk/LayoutTests/webgpu/webgpu-enabled.html
r243090 r243438 14 14 15 15 const adapter = await window.gpu.requestAdapter(); 16 assert_true(adapter instanceof WebGPUAdapter, "Created default GPUAdapter.");16 assert_true(adapter instanceof GPUAdapter, "Created default GPUAdapter."); 17 17 18 18 const device = await adapter.requestDevice(); 19 assert_true(device instanceof WebGPUDevice, "Created GPUDevice.");19 assert_true(device instanceof GPUDevice, "Created GPUDevice."); 20 20 }, "Web GPU is enabled."); 21 21 </script> -
trunk/Source/WebCore/ChangeLog
r243437 r243438 1 2019-03-25 Justin Fan <justin_fan@apple.com> 2 3 Update WebGPU class names based on sketch.idl 4 https://bugs.webkit.org/show_bug.cgi?id=194260 5 6 Reviewed by Dean Jackson. 7 8 Update all exposed Web GPU interface names to GPU* prefix. 9 10 Existing Web GPU tests updated to expect new names. 11 12 * Modules/webgpu/WebGPU.idl: 13 * Modules/webgpu/WebGPUAdapter.idl: 14 * Modules/webgpu/WebGPUBindGroup.idl: 15 * Modules/webgpu/WebGPUBindGroupLayout.idl: 16 * Modules/webgpu/WebGPUBuffer.idl: 17 * Modules/webgpu/WebGPUDevice.idl: 18 * Modules/webgpu/WebGPUInputStepMode.h: Removed. 19 * Modules/webgpu/WebGPUPipelineLayout.idl: 20 * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: 21 * Modules/webgpu/WebGPUQueue.idl: 22 * Modules/webgpu/WebGPURenderPassEncoder.idl: 23 * Modules/webgpu/WebGPURenderPipeline.idl: 24 * Modules/webgpu/WebGPUSampler.idl: 25 * Modules/webgpu/WebGPUTexture.idl: 26 * Modules/webgpu/WebGPUTextureView.idl: 27 * WebCore.xcodeproj/project.pbxproj: 28 * bindings/js/WebCoreBuiltinNames.h: 29 1 30 2019-03-25 Javier Fernandez <jfernandez@igalia.com> 2 31 -
trunk/Source/WebCore/Modules/webgpu/WebGPU.idl
r240807 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPU 31 32 ] interface WebGPU { 32 33 Promise<WebGPUAdapter> requestAdapter(optional GPURequestAdapterOptions options); -
trunk/Source/WebCore/Modules/webgpu/WebGPUAdapter.idl
r243090 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPUAdapter 31 32 ] interface WebGPUAdapter { 32 33 // readonly attribute DOMString name; -
trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroup.idl
r239853 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPUBindGroup 31 32 ] interface WebGPUBindGroup { 32 33 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroupLayout.idl
r239351 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPUBindGroupLayout 31 32 ] interface WebGPUBindGroupLayout { 32 33 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUBuffer.idl
r242148 r243438 30 30 Conditional=WEBGPU, 31 31 EnabledAtRuntime=WebGPU, 32 ImplementationLacksVTable 32 ImplementationLacksVTable, 33 InterfaceName=GPUBuffer 33 34 ] interface WebGPUBuffer { 34 35 void setSubData(u64 offset, ArrayBuffer data); -
trunk/Source/WebCore/Modules/webgpu/WebGPUDevice.idl
r243419 r243438 40 40 Conditional=WEBGPU, 41 41 EnabledAtRuntime=WebGPU, 42 ImplementationLacksVTable 42 ImplementationLacksVTable, 43 InterfaceName=GPUDevice 43 44 ] interface WebGPUDevice { 44 45 readonly attribute WebGPUAdapter adapter; -
trunk/Source/WebCore/Modules/webgpu/WebGPUPipelineLayout.idl
r239410 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPUPipelineLayout 31 32 ] interface WebGPUPipelineLayout { 32 33 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUProgrammablePassEncoder.idl
r243089 r243438 30 30 Conditional=WEBGPU, 31 31 EnabledAtRuntime=WebGPU, 32 InterfaceName=GPUProgrammablePassEncoder, 32 33 SkipVTableValidation 33 34 ] interface WebGPUProgrammablePassEncoder { -
trunk/Source/WebCore/Modules/webgpu/WebGPUQueue.idl
r242974 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPUQueue 31 32 ] interface WebGPUQueue { 32 33 void submit(sequence<WebGPUCommandBuffer> buffers); -
trunk/Source/WebCore/Modules/webgpu/WebGPURenderPassEncoder.idl
r243089 r243438 31 31 Conditional=WEBGPU, 32 32 EnabledAtRuntime=WebGPU, 33 InterfaceName=GPURenderPassEncoder, 33 34 JSGenerateToJSObject 34 35 ] interface WebGPURenderPassEncoder : WebGPUProgrammablePassEncoder { -
trunk/Source/WebCore/Modules/webgpu/WebGPURenderPipeline.idl
r237912 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPURenderPipeline 31 32 ] interface WebGPURenderPipeline { 32 33 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUSampler.idl
r242615 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPUSampler 31 32 ] interface WebGPUSampler { 32 33 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUTexture.idl
r243089 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPUTexture 31 32 ] interface WebGPUTexture { 32 33 WebGPUTextureView createDefaultView(); -
trunk/Source/WebCore/Modules/webgpu/WebGPUTextureView.idl
r238382 r243438 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable 30 ImplementationLacksVTable, 31 InterfaceName=GPUTextureView 31 32 ] interface WebGPUTextureView { 32 33 }; -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r243419 r243438 14124 14124 D0615FCD217FE5C6008A48A8 /* WebGPUShaderModule.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebGPUShaderModule.cpp; sourceTree = "<group>"; }; 14125 14125 D0615FCE217FE5C6008A48A8 /* WebGPUShaderModule.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebGPUShaderModule.idl; sourceTree = "<group>"; }; 14126 D063AE4621C06626000E6A35 /* WebGPUInputStepMode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebGPUInputStepMode.h; sourceTree = "<group>"; };14127 14126 D06A9A2122026C7A0083C662 /* GPURequestAdapterOptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPURequestAdapterOptions.h; sourceTree = "<group>"; }; 14128 14127 D06C0D8D0CFD11460065F43F /* RemoveFormatCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoveFormatCommand.h; sourceTree = "<group>"; }; … … 26271 26270 D00F595221701D8C000D71DB /* WebGPUDevice.h */, 26272 26271 D00F595421701D8C000D71DB /* WebGPUDevice.idl */, 26273 D063AE4621C06626000E6A35 /* WebGPUInputStepMode.h */,26274 26272 D0C419F02183EB31009EC1DE /* WebGPUPipelineDescriptorBase.h */, 26275 26273 D0C419F12183EB31009EC1DE /* WebGPUPipelineDescriptorBase.idl */, -
trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h
r243419 r243438 82 82 macro(GamepadButton) \ 83 83 macro(GamepadEvent) \ 84 macro(GPU) \ 85 macro(GPUAdapter) \ 86 macro(GPUBindGroup) \ 87 macro(GPUBindGroupLayout) \ 88 macro(GPUBuffer) \ 84 89 macro(GPUBufferUsage) \ 85 90 macro(GPUCanvasContext) \ … … 89 94 macro(GPUComputePassEncoder) \ 90 95 macro(GPUComputePipeline) \ 96 macro(GPUDevice) \ 97 macro(GPUPipelineLayout) \ 98 macro(GPUProgrammablePassEncoder) \ 99 macro(GPUQueue) \ 100 macro(GPURenderPassEncoder) \ 101 macro(GPURenderPipeline) \ 102 macro(GPUSampler) \ 91 103 macro(GPUShaderStageBit) \ 92 104 macro(GPUSwapChain) \ 105 macro(GPUTexture) \ 93 106 macro(GPUTextureUsage) \ 107 macro(GPUTextureView) \ 94 108 macro(HTMLAttachmentElement) \ 95 109 macro(HTMLAudioElement) \ … … 201 215 macro(WebGL2RenderingContext) \ 202 216 macro(WebGLVertexArrayObject) \ 203 macro(WebGPU) \204 macro(WebGPUAdapter) \205 macro(WebGPUBindGroup) \206 macro(WebGPUBindGroupLayout) \207 macro(WebGPUBuffer) \208 macro(WebGPUDevice) \209 macro(WebGPUIndexFormat) \210 macro(WebGPUInputStepMode) \211 macro(WebGPUQueue) \212 macro(WebGPUPipelineLayout) \213 macro(WebGPUProgrammablePassEncoder) \214 macro(WebGPURenderPassEncoder) \215 macro(WebGPURenderPipeline) \216 macro(WebGPUSampler) \217 macro(WebGPUTexture) \218 macro(WebGPUTextureView) \219 macro(WebGPUVertexFormat) \220 217 macro(WebMetalBuffer) \ 221 218 macro(WebMetalCommandBuffer) \
Note:
See TracChangeset
for help on using the changeset viewer.