Changeset 237368 in webkit
- Timestamp:
- Oct 23, 2018 3:05:27 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 7 deleted
- 50 edited
- 8 copied
- 63 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r237367 r237368 1 2018-10-23 Justin Fan <justin_fan@apple.com> 2 3 [WebGPU] Rename old GPU* implementation files to GPULegacy* for WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190817 5 6 Reviewed by Dean Jackson. 7 8 No new tests. No change in behavior. 9 10 * [Large list of refactored classes and renamed files]: GPU* is now GPULegacy* 11 1 12 2018-10-23 Ryan Haddad <ryanhaddad@apple.com> 2 13 -
trunk/Source/WebCore/Sources.txt
r237344 r237368 1719 1719 platform/graphics/filters/SpotLightSource.cpp 1720 1720 1721 platform/graphics/gpu/GPU Buffer.cpp1722 platform/graphics/gpu/GPU CommandBuffer.cpp1723 platform/graphics/gpu/GPU CommandQueue.cpp1724 platform/graphics/gpu/GPU ComputeCommandEncoder.cpp1725 platform/graphics/gpu/GPU ComputePipelineState.cpp1726 platform/graphics/gpu/GPU DepthStencilDescriptor.cpp1727 platform/graphics/gpu/GPU DepthStencilState.cpp1728 platform/graphics/gpu/GPU Device.cpp1729 platform/graphics/gpu/GPU Drawable.cpp1730 platform/graphics/gpu/GPU Function.cpp1731 platform/graphics/gpu/GPUL ibrary.cpp1732 platform/graphics/gpu/GPU RenderCommandEncoder.cpp1733 platform/graphics/gpu/GPU RenderPassAttachmentDescriptor.cpp1734 platform/graphics/gpu/GPU RenderPassColorAttachmentDescriptor.cpp1735 platform/graphics/gpu/GPU RenderPassDepthAttachmentDescriptor.cpp1736 platform/graphics/gpu/GPU RenderPassDescriptor.cpp1737 platform/graphics/gpu/GPU RenderPipelineColorAttachmentDescriptor.cpp1738 platform/graphics/gpu/GPU RenderPipelineDescriptor.cpp1739 platform/graphics/gpu/GPU RenderPipelineState.cpp1740 platform/graphics/gpu/GPU Texture.cpp1741 platform/graphics/gpu/GPU TextureDescriptor.cpp1721 platform/graphics/gpu/GPULegacyBuffer.cpp 1722 platform/graphics/gpu/GPULegacyCommandBuffer.cpp 1723 platform/graphics/gpu/GPULegacyCommandQueue.cpp 1724 platform/graphics/gpu/GPULegacyComputeCommandEncoder.cpp 1725 platform/graphics/gpu/GPULegacyComputePipelineState.cpp 1726 platform/graphics/gpu/GPULegacyDepthStencilDescriptor.cpp 1727 platform/graphics/gpu/GPULegacyDepthStencilState.cpp 1728 platform/graphics/gpu/GPULegacyDevice.cpp 1729 platform/graphics/gpu/GPULegacyDrawable.cpp 1730 platform/graphics/gpu/GPULegacyFunction.cpp 1731 platform/graphics/gpu/GPULegacyLibrary.cpp 1732 platform/graphics/gpu/GPULegacyRenderCommandEncoder.cpp 1733 platform/graphics/gpu/GPULegacyRenderPassAttachmentDescriptor.cpp 1734 platform/graphics/gpu/GPULegacyRenderPassColorAttachmentDescriptor.cpp 1735 platform/graphics/gpu/GPULegacyRenderPassDepthAttachmentDescriptor.cpp 1736 platform/graphics/gpu/GPULegacyRenderPassDescriptor.cpp 1737 platform/graphics/gpu/GPULegacyRenderPipelineColorAttachmentDescriptor.cpp 1738 platform/graphics/gpu/GPULegacyRenderPipelineDescriptor.cpp 1739 platform/graphics/gpu/GPULegacyRenderPipelineState.cpp 1740 platform/graphics/gpu/GPULegacyTexture.cpp 1741 platform/graphics/gpu/GPULegacyTextureDescriptor.cpp 1742 1742 1743 1743 platform/graphics/iso/ISOBox.cpp -
trunk/Source/WebCore/SourcesCocoa.txt
r237236 r237368 346 346 platform/graphics/mac/WebKitNSImageExtras.mm 347 347 348 platform/graphics/metal/GPU BufferMetal.mm349 platform/graphics/metal/GPU CommandBufferMetal.mm350 platform/graphics/metal/GPU CommandQueueMetal.mm351 platform/graphics/metal/GPU ComputeCommandEncoderMetal.mm352 platform/graphics/metal/GPU ComputePipelineStateMetal.mm353 platform/graphics/metal/GPU DepthStencilDescriptorMetal.mm354 platform/graphics/metal/GPU DepthStencilStateMetal.mm355 platform/graphics/metal/GPU DeviceMetal.mm356 platform/graphics/metal/GPU DrawableMetal.mm357 platform/graphics/metal/GPU FunctionMetal.mm358 platform/graphics/metal/GPUL ibraryMetal.mm359 platform/graphics/metal/GPU RenderCommandEncoderMetal.mm360 platform/graphics/metal/GPU RenderPassAttachmentDescriptorMetal.mm361 platform/graphics/metal/GPU RenderPassColorAttachmentDescriptorMetal.mm362 platform/graphics/metal/GPU RenderPassDepthAttachmentDescriptorMetal.mm363 platform/graphics/metal/GPU RenderPassDescriptorMetal.mm364 platform/graphics/metal/GPU RenderPipelineColorAttachmentDescriptorMetal.mm365 platform/graphics/metal/GPU RenderPipelineDescriptorMetal.mm366 platform/graphics/metal/GPU RenderPipelineStateMetal.mm367 platform/graphics/metal/GPU TextureDescriptorMetal.mm368 platform/graphics/metal/GPU TextureMetal.mm348 platform/graphics/metal/GPULegacyBufferMetal.mm 349 platform/graphics/metal/GPULegacyCommandBufferMetal.mm 350 platform/graphics/metal/GPULegacyCommandQueueMetal.mm 351 platform/graphics/metal/GPULegacyComputeCommandEncoderMetal.mm 352 platform/graphics/metal/GPULegacyComputePipelineStateMetal.mm 353 platform/graphics/metal/GPULegacyDepthStencilDescriptorMetal.mm 354 platform/graphics/metal/GPULegacyDepthStencilStateMetal.mm 355 platform/graphics/metal/GPULegacyDeviceMetal.mm 356 platform/graphics/metal/GPULegacyDrawableMetal.mm 357 platform/graphics/metal/GPULegacyFunctionMetal.mm 358 platform/graphics/metal/GPULegacyLibraryMetal.mm 359 platform/graphics/metal/GPULegacyRenderCommandEncoderMetal.mm 360 platform/graphics/metal/GPULegacyRenderPassAttachmentDescriptorMetal.mm 361 platform/graphics/metal/GPULegacyRenderPassColorAttachmentDescriptorMetal.mm 362 platform/graphics/metal/GPULegacyRenderPassDepthAttachmentDescriptorMetal.mm 363 platform/graphics/metal/GPULegacyRenderPassDescriptorMetal.mm 364 platform/graphics/metal/GPULegacyRenderPipelineColorAttachmentDescriptorMetal.mm 365 platform/graphics/metal/GPULegacyRenderPipelineDescriptorMetal.mm 366 platform/graphics/metal/GPULegacyRenderPipelineStateMetal.mm 367 platform/graphics/metal/GPULegacyTextureDescriptorMetal.mm 368 platform/graphics/metal/GPULegacyTextureMetal.mm 369 369 370 370 platform/graphics/opengl/Extensions3DOpenGL.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r237344 r237368 910 910 314BE3A11B30F6B700141982 /* CSSNamedImageValue.h in Headers */ = {isa = PBXBuildFile; fileRef = 314BE3A01B30F6B700141982 /* CSSNamedImageValue.h */; settings = {ATTRIBUTES = (Private, ); }; }; 911 911 314BE3A71B3103FB00141982 /* NamedImageGeneratedImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 314BE3A51B3103FB00141982 /* NamedImageGeneratedImage.h */; }; 912 316BDB861E6E0A2700DE0D5A /* GPU Device.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB851E6E0A2100DE0D5A /* GPUDevice.h */; settings = {ATTRIBUTES = (Private, ); }; };912 316BDB861E6E0A2700DE0D5A /* GPULegacyDevice.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB851E6E0A2100DE0D5A /* GPULegacyDevice.h */; settings = {ATTRIBUTES = (Private, ); }; }; 913 913 316BDB8C1E6E153000DE0D5A /* WebMetalLayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB8A1E6E153000DE0D5A /* WebMetalLayer.h */; }; 914 316BDB951E70C89700DE0D5A /* GPU Function.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB931E70C89700DE0D5A /* GPUFunction.h */; settings = {ATTRIBUTES = (Private, ); }; };915 316BDB9B1E70CBBF00DE0D5A /* GPUL ibrary.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB991E70CBBF00DE0D5A /* GPULibrary.h */; settings = {ATTRIBUTES = (Private, ); }; };916 316BDBAA1E71FA9300DE0D5A /* GPU Buffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBA81E71FA9300DE0D5A /* GPUBuffer.h */; settings = {ATTRIBUTES = (Private, ); }; };917 316BDBB21E7354BB00DE0D5A /* GPU Texture.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBB01E7354BB00DE0D5A /* GPUTexture.h */; };918 316BDBB81E7357CB00DE0D5A /* GPU TextureDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBB61E7357CB00DE0D5A /* GPUTextureDescriptor.h */; };919 316BDBBC1E73880600DE0D5A /* GPU CommandQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBBA1E73880600DE0D5A /* GPUCommandQueue.h */; settings = {ATTRIBUTES = (Private, ); }; };920 316BDBCD1E75F18400DE0D5A /* GPU Drawable.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBCB1E75F17600DE0D5A /* GPUDrawable.h */; };921 316BDBCE1E75F18A00DE0D5A /* GPU CommandBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBC51E75EE2400DE0D5A /* GPUCommandBuffer.h */; };922 316BDBD31E75F7B600DE0D5A /* GPU RenderPassDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBD11E75F7AE00DE0D5A /* GPURenderPassDescriptor.h */; };923 316BDBDB1E7612E200DE0D5A /* GPU RenderPassColorAttachmentDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBD91E7612DB00DE0D5A /* GPURenderPassColorAttachmentDescriptor.h */; };924 316BDBDF1E76137500DE0D5A /* GPU RenderPassAttachmentDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBDD1E76136C00DE0D5A /* GPURenderPassAttachmentDescriptor.h */; };925 316BDBE41E761F0500DE0D5A /* GPU RenderPassDepthAttachmentDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBE31E761EFF00DE0D5A /* GPURenderPassDepthAttachmentDescriptor.h */; };926 316BDBEB1E76244D00DE0D5A /* GPU RenderCommandEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBE91E76244400DE0D5A /* GPURenderCommandEncoder.h */; };927 316BDBF01E76292000DE0D5A /* GPU DepthStencilState.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBEF1E76291B00DE0D5A /* GPUDepthStencilState.h */; };928 316BDBF71E762AD500DE0D5A /* GPU DepthStencilDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBF51E762ACD00DE0D5A /* GPUDepthStencilDescriptor.h */; };929 316BDBFB1E762D0400DE0D5A /* GPU Enums.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBFA1E762D0400DE0D5A /* GPUEnums.h */; };930 316BDC021E762F6400DE0D5A /* GPU RenderPipelineDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBFD1E762F5700DE0D5A /* GPURenderPipelineDescriptor.h */; };931 316BDC031E762F6900DE0D5A /* GPU RenderPipelineState.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBFF1E762F5700DE0D5A /* GPURenderPipelineState.h */; };932 316BDC0D1E7634D200DE0D5A /* GPU RenderPipelineColorAttachmentDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDC091E76342700DE0D5A /* GPURenderPipelineColorAttachmentDescriptor.h */; };914 316BDB951E70C89700DE0D5A /* GPULegacyFunction.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB931E70C89700DE0D5A /* GPULegacyFunction.h */; settings = {ATTRIBUTES = (Private, ); }; }; 915 316BDB9B1E70CBBF00DE0D5A /* GPULegacyLibrary.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDB991E70CBBF00DE0D5A /* GPULegacyLibrary.h */; settings = {ATTRIBUTES = (Private, ); }; }; 916 316BDBAA1E71FA9300DE0D5A /* GPULegacyBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBA81E71FA9300DE0D5A /* GPULegacyBuffer.h */; settings = {ATTRIBUTES = (Private, ); }; }; 917 316BDBB21E7354BB00DE0D5A /* GPULegacyTexture.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBB01E7354BB00DE0D5A /* GPULegacyTexture.h */; }; 918 316BDBB81E7357CB00DE0D5A /* GPULegacyTextureDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBB61E7357CB00DE0D5A /* GPULegacyTextureDescriptor.h */; }; 919 316BDBBC1E73880600DE0D5A /* GPULegacyCommandQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBBA1E73880600DE0D5A /* GPULegacyCommandQueue.h */; settings = {ATTRIBUTES = (Private, ); }; }; 920 316BDBCD1E75F18400DE0D5A /* GPULegacyDrawable.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBCB1E75F17600DE0D5A /* GPULegacyDrawable.h */; }; 921 316BDBCE1E75F18A00DE0D5A /* GPULegacyCommandBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBC51E75EE2400DE0D5A /* GPULegacyCommandBuffer.h */; }; 922 316BDBD31E75F7B600DE0D5A /* GPULegacyRenderPassDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBD11E75F7AE00DE0D5A /* GPULegacyRenderPassDescriptor.h */; }; 923 316BDBDB1E7612E200DE0D5A /* GPULegacyRenderPassColorAttachmentDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBD91E7612DB00DE0D5A /* GPULegacyRenderPassColorAttachmentDescriptor.h */; }; 924 316BDBDF1E76137500DE0D5A /* GPULegacyRenderPassAttachmentDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBDD1E76136C00DE0D5A /* GPULegacyRenderPassAttachmentDescriptor.h */; }; 925 316BDBE41E761F0500DE0D5A /* GPULegacyRenderPassDepthAttachmentDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBE31E761EFF00DE0D5A /* GPULegacyRenderPassDepthAttachmentDescriptor.h */; }; 926 316BDBEB1E76244D00DE0D5A /* GPULegacyRenderCommandEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBE91E76244400DE0D5A /* GPULegacyRenderCommandEncoder.h */; }; 927 316BDBF01E76292000DE0D5A /* GPULegacyDepthStencilState.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBEF1E76291B00DE0D5A /* GPULegacyDepthStencilState.h */; }; 928 316BDBF71E762AD500DE0D5A /* GPULegacyDepthStencilDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBF51E762ACD00DE0D5A /* GPULegacyDepthStencilDescriptor.h */; }; 929 316BDBFB1E762D0400DE0D5A /* GPULegacyEnums.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBFA1E762D0400DE0D5A /* GPULegacyEnums.h */; }; 930 316BDC021E762F6400DE0D5A /* GPULegacyRenderPipelineDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBFD1E762F5700DE0D5A /* GPULegacyRenderPipelineDescriptor.h */; }; 931 316BDC031E762F6900DE0D5A /* GPULegacyRenderPipelineState.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDBFF1E762F5700DE0D5A /* GPULegacyRenderPipelineState.h */; }; 932 316BDC0D1E7634D200DE0D5A /* GPULegacyRenderPipelineColorAttachmentDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 316BDC091E76342700DE0D5A /* GPULegacyRenderPipelineColorAttachmentDescriptor.h */; }; 933 933 316DCB201E78CA55001B5F87 /* JSRTCOfferAnswerOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 316DCB1A1E78CA55001B5F87 /* JSRTCOfferAnswerOptions.h */; }; 934 934 316DCB221E78CA55001B5F87 /* JSRTCRtpTransceiverDirection.h in Headers */ = {isa = PBXBuildFile; fileRef = 316DCB1C1E78CA55001B5F87 /* JSRTCRtpTransceiverDirection.h */; }; … … 2633 2633 93A8061E1E03B585008A1F26 /* JSDoubleRange.h in Headers */ = {isa = PBXBuildFile; fileRef = 93A8061A1E03B585008A1F26 /* JSDoubleRange.h */; }; 2634 2634 93A806201E03B585008A1F26 /* JSLongRange.h in Headers */ = {isa = PBXBuildFile; fileRef = 93A8061C1E03B585008A1F26 /* JSLongRange.h */; }; 2635 93A953B020EBD3C900A619F6 /* GPU ComputePipelineState.h in Headers */ = {isa = PBXBuildFile; fileRef = 381E35EC1E8E23E40043E850 /* GPUComputePipelineState.h */; };2636 93A953B420EBD43200A619F6 /* GPU ComputeCommandEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 381E35EA1E8E20D90043E850 /* GPUComputeCommandEncoder.h */; };2637 93A953B520EC9C3F00A619F6 /* GPU Size.h in Headers */ = {isa = PBXBuildFile; fileRef = 381E35F61E8E4D0E0043E850 /* GPUSize.h */; };2635 93A953B020EBD3C900A619F6 /* GPULegacyComputePipelineState.h in Headers */ = {isa = PBXBuildFile; fileRef = 381E35EC1E8E23E40043E850 /* GPULegacyComputePipelineState.h */; }; 2636 93A953B420EBD43200A619F6 /* GPULegacyComputeCommandEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 381E35EA1E8E20D90043E850 /* GPULegacyComputeCommandEncoder.h */; }; 2637 93A953B520EC9C3F00A619F6 /* GPULegacySize.h in Headers */ = {isa = PBXBuildFile; fileRef = 381E35F61E8E4D0E0043E850 /* GPULegacySize.h */; }; 2638 2638 93B2D8160F9920D2006AE6B2 /* SuddenTermination.h in Headers */ = {isa = PBXBuildFile; fileRef = 93B2D8150F9920D2006AE6B2 /* SuddenTermination.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2639 2639 93B6A0E60B0BCA5C00F5027A /* ContextMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 93B6A0E50B0BCA5C00F5027A /* ContextMenu.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 6859 6859 314BE3A41B3103FB00141982 /* NamedImageGeneratedImage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NamedImageGeneratedImage.cpp; sourceTree = "<group>"; }; 6860 6860 314BE3A51B3103FB00141982 /* NamedImageGeneratedImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NamedImageGeneratedImage.h; sourceTree = "<group>"; }; 6861 316BDB841E6E0A2100DE0D5A /* GPU Device.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUDevice.cpp; sourceTree = "<group>"; };6862 316BDB851E6E0A2100DE0D5A /* GPU Device.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUDevice.h; sourceTree = "<group>"; };6863 316BDB881E6E141C00DE0D5A /* GPU DeviceMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUDeviceMetal.mm; sourceTree = "<group>"; };6861 316BDB841E6E0A2100DE0D5A /* GPULegacyDevice.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyDevice.cpp; sourceTree = "<group>"; }; 6862 316BDB851E6E0A2100DE0D5A /* GPULegacyDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyDevice.h; sourceTree = "<group>"; }; 6863 316BDB881E6E141C00DE0D5A /* GPULegacyDeviceMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyDeviceMetal.mm; sourceTree = "<group>"; }; 6864 6864 316BDB8A1E6E153000DE0D5A /* WebMetalLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebMetalLayer.h; sourceTree = "<group>"; }; 6865 316BDB921E70C89700DE0D5A /* GPUFunction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUFunction.cpp; sourceTree = "<group>"; }; 6866 316BDB931E70C89700DE0D5A /* GPUFunction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUFunction.h; sourceTree = "<group>"; }; 6867 316BDB961E70CA2400DE0D5A /* GPUFunctionMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUFunctionMetal.mm; sourceTree = "<group>"; }; 6868 316BDB981E70CBBF00DE0D5A /* GPULibrary.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULibrary.cpp; sourceTree = "<group>"; }; 6869 316BDB991E70CBBF00DE0D5A /* GPULibrary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULibrary.h; sourceTree = "<group>"; }; 6870 316BDB9C1E70CD9000DE0D5A /* GPULibraryMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULibraryMetal.mm; sourceTree = "<group>"; }; 6871 316BDBA51E71FA6F00DE0D5A /* GPUBufferMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUBufferMetal.mm; sourceTree = "<group>"; }; 6872 316BDBA71E71FA9300DE0D5A /* GPUBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUBuffer.cpp; sourceTree = "<group>"; }; 6873 316BDBA81E71FA9300DE0D5A /* GPUBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUBuffer.h; sourceTree = "<group>"; }; 6874 316BDBAD1E73549C00DE0D5A /* GPUTextureMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUTextureMetal.mm; sourceTree = "<group>"; }; 6875 316BDBAF1E7354BB00DE0D5A /* GPUTexture.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUTexture.cpp; sourceTree = "<group>"; }; 6876 316BDBB01E7354BB00DE0D5A /* GPUTexture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUTexture.h; sourceTree = "<group>"; }; 6877 316BDBB31E7357B000DE0D5A /* GPUTextureDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUTextureDescriptorMetal.mm; sourceTree = "<group>"; }; 6878 316BDBB51E7357CB00DE0D5A /* GPUTextureDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUTextureDescriptor.cpp; sourceTree = "<group>"; }; 6879 316BDBB61E7357CB00DE0D5A /* GPUTextureDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUTextureDescriptor.h; sourceTree = "<group>"; }; 6880 316BDBB91E73880600DE0D5A /* GPUCommandQueue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUCommandQueue.cpp; sourceTree = "<group>"; }; 6881 316BDBBA1E73880600DE0D5A /* GPUCommandQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUCommandQueue.h; sourceTree = "<group>"; }; 6882 316BDBBD1E73881300DE0D5A /* GPUCommandQueueMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUCommandQueueMetal.mm; sourceTree = "<group>"; }; 6883 316BDBC41E75EE2400DE0D5A /* GPUCommandBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUCommandBuffer.cpp; sourceTree = "<group>"; }; 6884 316BDBC51E75EE2400DE0D5A /* GPUCommandBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUCommandBuffer.h; sourceTree = "<group>"; }; 6885 316BDBC61E75EE3D00DE0D5A /* GPUCommandBufferMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUCommandBufferMetal.mm; sourceTree = "<group>"; }; 6886 316BDBC91E75F16200DE0D5A /* GPUDrawableMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUDrawableMetal.mm; sourceTree = "<group>"; }; 6887 316BDBCA1E75F17600DE0D5A /* GPUDrawable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUDrawable.cpp; sourceTree = "<group>"; }; 6888 316BDBCB1E75F17600DE0D5A /* GPUDrawable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUDrawable.h; sourceTree = "<group>"; }; 6889 316BDBD01E75F7AE00DE0D5A /* GPURenderPassDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPURenderPassDescriptor.cpp; sourceTree = "<group>"; }; 6890 316BDBD11E75F7AE00DE0D5A /* GPURenderPassDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPURenderPassDescriptor.h; sourceTree = "<group>"; }; 6891 316BDBD41E75F7CA00DE0D5A /* GPURenderPassDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPURenderPassDescriptorMetal.mm; sourceTree = "<group>"; }; 6892 316BDBD61E7612C400DE0D5A /* GPURenderPassColorAttachmentDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPURenderPassColorAttachmentDescriptorMetal.mm; sourceTree = "<group>"; }; 6893 316BDBD81E7612DB00DE0D5A /* GPURenderPassColorAttachmentDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPURenderPassColorAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 6894 316BDBD91E7612DB00DE0D5A /* GPURenderPassColorAttachmentDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPURenderPassColorAttachmentDescriptor.h; sourceTree = "<group>"; }; 6895 316BDBDC1E76136C00DE0D5A /* GPURenderPassAttachmentDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPURenderPassAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 6896 316BDBDD1E76136C00DE0D5A /* GPURenderPassAttachmentDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPURenderPassAttachmentDescriptor.h; sourceTree = "<group>"; }; 6897 316BDBE01E761CB500DE0D5A /* GPURenderPassAttachmentDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPURenderPassAttachmentDescriptorMetal.mm; sourceTree = "<group>"; }; 6898 316BDBE21E761EFF00DE0D5A /* GPURenderPassDepthAttachmentDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPURenderPassDepthAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 6899 316BDBE31E761EFF00DE0D5A /* GPURenderPassDepthAttachmentDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPURenderPassDepthAttachmentDescriptor.h; sourceTree = "<group>"; }; 6900 316BDBE61E761F2700DE0D5A /* GPURenderPassDepthAttachmentDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPURenderPassDepthAttachmentDescriptorMetal.mm; sourceTree = "<group>"; }; 6901 316BDBE81E76244300DE0D5A /* GPURenderCommandEncoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPURenderCommandEncoder.cpp; sourceTree = "<group>"; }; 6902 316BDBE91E76244400DE0D5A /* GPURenderCommandEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPURenderCommandEncoder.h; sourceTree = "<group>"; }; 6903 316BDBEC1E76246B00DE0D5A /* GPURenderCommandEncoderMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPURenderCommandEncoderMetal.mm; sourceTree = "<group>"; }; 6904 316BDBEE1E76291B00DE0D5A /* GPUDepthStencilState.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUDepthStencilState.cpp; sourceTree = "<group>"; }; 6905 316BDBEF1E76291B00DE0D5A /* GPUDepthStencilState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUDepthStencilState.h; sourceTree = "<group>"; }; 6906 316BDBF21E76293700DE0D5A /* GPUDepthStencilStateMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUDepthStencilStateMetal.mm; sourceTree = "<group>"; }; 6907 316BDBF41E762ACD00DE0D5A /* GPUDepthStencilDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUDepthStencilDescriptor.cpp; sourceTree = "<group>"; }; 6908 316BDBF51E762ACD00DE0D5A /* GPUDepthStencilDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUDepthStencilDescriptor.h; sourceTree = "<group>"; }; 6909 316BDBF81E762BEF00DE0D5A /* GPUDepthStencilDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUDepthStencilDescriptorMetal.mm; sourceTree = "<group>"; }; 6910 316BDBFA1E762D0400DE0D5A /* GPUEnums.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUEnums.h; sourceTree = "<group>"; }; 6911 316BDBFC1E762F5700DE0D5A /* GPURenderPipelineDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPURenderPipelineDescriptor.cpp; sourceTree = "<group>"; }; 6912 316BDBFD1E762F5700DE0D5A /* GPURenderPipelineDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPURenderPipelineDescriptor.h; sourceTree = "<group>"; }; 6913 316BDBFE1E762F5700DE0D5A /* GPURenderPipelineState.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPURenderPipelineState.cpp; sourceTree = "<group>"; }; 6914 316BDBFF1E762F5700DE0D5A /* GPURenderPipelineState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPURenderPipelineState.h; sourceTree = "<group>"; }; 6915 316BDC041E762F7E00DE0D5A /* GPURenderPipelineDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPURenderPipelineDescriptorMetal.mm; sourceTree = "<group>"; }; 6916 316BDC051E762F7E00DE0D5A /* GPURenderPipelineStateMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPURenderPipelineStateMetal.mm; sourceTree = "<group>"; }; 6917 316BDC081E76342700DE0D5A /* GPURenderPipelineColorAttachmentDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPURenderPipelineColorAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 6918 316BDC091E76342700DE0D5A /* GPURenderPipelineColorAttachmentDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPURenderPipelineColorAttachmentDescriptor.h; sourceTree = "<group>"; }; 6919 316BDC0A1E76343600DE0D5A /* GPURenderPipelineColorAttachmentDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPURenderPipelineColorAttachmentDescriptorMetal.mm; sourceTree = "<group>"; }; 6865 316BDB921E70C89700DE0D5A /* GPULegacyFunction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyFunction.cpp; sourceTree = "<group>"; }; 6866 316BDB931E70C89700DE0D5A /* GPULegacyFunction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyFunction.h; sourceTree = "<group>"; }; 6867 316BDB961E70CA2400DE0D5A /* GPULegacyFunctionMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyFunctionMetal.mm; sourceTree = "<group>"; }; 6868 316BDB981E70CBBF00DE0D5A /* GPULegacyLibrary.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyLibrary.cpp; sourceTree = "<group>"; }; 6869 316BDB991E70CBBF00DE0D5A /* GPULegacyLibrary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyLibrary.h; sourceTree = "<group>"; }; 6870 316BDB9C1E70CD9000DE0D5A /* GPULegacyLibraryMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyLibraryMetal.mm; sourceTree = "<group>"; }; 6871 316BDBA51E71FA6F00DE0D5A /* GPULegacyBufferMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyBufferMetal.mm; sourceTree = "<group>"; }; 6872 316BDBA71E71FA9300DE0D5A /* GPULegacyBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyBuffer.cpp; sourceTree = "<group>"; }; 6873 316BDBA81E71FA9300DE0D5A /* GPULegacyBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyBuffer.h; sourceTree = "<group>"; }; 6874 316BDBAF1E7354BB00DE0D5A /* GPULegacyTexture.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyTexture.cpp; sourceTree = "<group>"; }; 6875 316BDBB01E7354BB00DE0D5A /* GPULegacyTexture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyTexture.h; sourceTree = "<group>"; }; 6876 316BDBB31E7357B000DE0D5A /* GPULegacyTextureDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyTextureDescriptorMetal.mm; sourceTree = "<group>"; }; 6877 316BDBB51E7357CB00DE0D5A /* GPULegacyTextureDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyTextureDescriptor.cpp; sourceTree = "<group>"; }; 6878 316BDBB61E7357CB00DE0D5A /* GPULegacyTextureDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyTextureDescriptor.h; sourceTree = "<group>"; }; 6879 316BDBB91E73880600DE0D5A /* GPULegacyCommandQueue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyCommandQueue.cpp; sourceTree = "<group>"; }; 6880 316BDBBA1E73880600DE0D5A /* GPULegacyCommandQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyCommandQueue.h; sourceTree = "<group>"; }; 6881 316BDBBD1E73881300DE0D5A /* GPULegacyCommandQueueMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyCommandQueueMetal.mm; sourceTree = "<group>"; }; 6882 316BDBC41E75EE2400DE0D5A /* GPULegacyCommandBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyCommandBuffer.cpp; sourceTree = "<group>"; }; 6883 316BDBC51E75EE2400DE0D5A /* GPULegacyCommandBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyCommandBuffer.h; sourceTree = "<group>"; }; 6884 316BDBC61E75EE3D00DE0D5A /* GPULegacyCommandBufferMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyCommandBufferMetal.mm; sourceTree = "<group>"; }; 6885 316BDBC91E75F16200DE0D5A /* GPULegacyDrawableMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyDrawableMetal.mm; sourceTree = "<group>"; }; 6886 316BDBCA1E75F17600DE0D5A /* GPULegacyDrawable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyDrawable.cpp; sourceTree = "<group>"; }; 6887 316BDBCB1E75F17600DE0D5A /* GPULegacyDrawable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyDrawable.h; sourceTree = "<group>"; }; 6888 316BDBD01E75F7AE00DE0D5A /* GPULegacyRenderPassDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyRenderPassDescriptor.cpp; sourceTree = "<group>"; }; 6889 316BDBD11E75F7AE00DE0D5A /* GPULegacyRenderPassDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyRenderPassDescriptor.h; sourceTree = "<group>"; }; 6890 316BDBD41E75F7CA00DE0D5A /* GPULegacyRenderPassDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyRenderPassDescriptorMetal.mm; sourceTree = "<group>"; }; 6891 316BDBD61E7612C400DE0D5A /* GPULegacyRenderPassColorAttachmentDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyRenderPassColorAttachmentDescriptorMetal.mm; sourceTree = "<group>"; }; 6892 316BDBD81E7612DB00DE0D5A /* GPULegacyRenderPassColorAttachmentDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyRenderPassColorAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 6893 316BDBD91E7612DB00DE0D5A /* GPULegacyRenderPassColorAttachmentDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyRenderPassColorAttachmentDescriptor.h; sourceTree = "<group>"; }; 6894 316BDBDC1E76136C00DE0D5A /* GPULegacyRenderPassAttachmentDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyRenderPassAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 6895 316BDBDD1E76136C00DE0D5A /* GPULegacyRenderPassAttachmentDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyRenderPassAttachmentDescriptor.h; sourceTree = "<group>"; }; 6896 316BDBE01E761CB500DE0D5A /* GPULegacyRenderPassAttachmentDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyRenderPassAttachmentDescriptorMetal.mm; sourceTree = "<group>"; }; 6897 316BDBE21E761EFF00DE0D5A /* GPULegacyRenderPassDepthAttachmentDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyRenderPassDepthAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 6898 316BDBE31E761EFF00DE0D5A /* GPULegacyRenderPassDepthAttachmentDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyRenderPassDepthAttachmentDescriptor.h; sourceTree = "<group>"; }; 6899 316BDBE61E761F2700DE0D5A /* GPULegacyRenderPassDepthAttachmentDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyRenderPassDepthAttachmentDescriptorMetal.mm; sourceTree = "<group>"; }; 6900 316BDBE81E76244300DE0D5A /* GPULegacyRenderCommandEncoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyRenderCommandEncoder.cpp; sourceTree = "<group>"; }; 6901 316BDBE91E76244400DE0D5A /* GPULegacyRenderCommandEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyRenderCommandEncoder.h; sourceTree = "<group>"; }; 6902 316BDBEC1E76246B00DE0D5A /* GPULegacyRenderCommandEncoderMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyRenderCommandEncoderMetal.mm; sourceTree = "<group>"; }; 6903 316BDBEE1E76291B00DE0D5A /* GPULegacyDepthStencilState.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyDepthStencilState.cpp; sourceTree = "<group>"; }; 6904 316BDBEF1E76291B00DE0D5A /* GPULegacyDepthStencilState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyDepthStencilState.h; sourceTree = "<group>"; }; 6905 316BDBF21E76293700DE0D5A /* GPULegacyDepthStencilStateMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyDepthStencilStateMetal.mm; sourceTree = "<group>"; }; 6906 316BDBF41E762ACD00DE0D5A /* GPULegacyDepthStencilDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyDepthStencilDescriptor.cpp; sourceTree = "<group>"; }; 6907 316BDBF51E762ACD00DE0D5A /* GPULegacyDepthStencilDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyDepthStencilDescriptor.h; sourceTree = "<group>"; }; 6908 316BDBF81E762BEF00DE0D5A /* GPULegacyDepthStencilDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyDepthStencilDescriptorMetal.mm; sourceTree = "<group>"; }; 6909 316BDBFA1E762D0400DE0D5A /* GPULegacyEnums.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyEnums.h; sourceTree = "<group>"; }; 6910 316BDBFC1E762F5700DE0D5A /* GPULegacyRenderPipelineDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyRenderPipelineDescriptor.cpp; sourceTree = "<group>"; }; 6911 316BDBFD1E762F5700DE0D5A /* GPULegacyRenderPipelineDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyRenderPipelineDescriptor.h; sourceTree = "<group>"; }; 6912 316BDBFE1E762F5700DE0D5A /* GPULegacyRenderPipelineState.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyRenderPipelineState.cpp; sourceTree = "<group>"; }; 6913 316BDBFF1E762F5700DE0D5A /* GPULegacyRenderPipelineState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyRenderPipelineState.h; sourceTree = "<group>"; }; 6914 316BDC041E762F7E00DE0D5A /* GPULegacyRenderPipelineDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyRenderPipelineDescriptorMetal.mm; sourceTree = "<group>"; }; 6915 316BDC051E762F7E00DE0D5A /* GPULegacyRenderPipelineStateMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyRenderPipelineStateMetal.mm; sourceTree = "<group>"; }; 6916 316BDC081E76342700DE0D5A /* GPULegacyRenderPipelineColorAttachmentDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyRenderPipelineColorAttachmentDescriptor.cpp; sourceTree = "<group>"; }; 6917 316BDC091E76342700DE0D5A /* GPULegacyRenderPipelineColorAttachmentDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyRenderPipelineColorAttachmentDescriptor.h; sourceTree = "<group>"; }; 6918 316BDC0A1E76343600DE0D5A /* GPULegacyRenderPipelineColorAttachmentDescriptorMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyRenderPipelineColorAttachmentDescriptorMetal.mm; sourceTree = "<group>"; }; 6920 6919 316DCB121E78BE43001B5F87 /* RTCOfferAnswerOptions.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = RTCOfferAnswerOptions.idl; sourceTree = "<group>"; }; 6921 6920 316DCB171E78C330001B5F87 /* RTCRtpTransceiverDirection.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = RTCRtpTransceiverDirection.idl; sourceTree = "<group>"; }; … … 7199 7198 381E35E71E8E1E0A0043E850 /* WebGPUComputeCommandEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebGPUComputeCommandEncoder.h; sourceTree = "<group>"; }; 7200 7199 381E35E81E8E1E160043E850 /* WebGPUComputeCommandEncoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebGPUComputeCommandEncoder.cpp; sourceTree = "<group>"; }; 7201 381E35E91E8E20AC0043E850 /* GPU ComputeCommandEncoderMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUComputeCommandEncoderMetal.mm; sourceTree = "<group>"; };7202 381E35EA1E8E20D90043E850 /* GPU ComputeCommandEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUComputeCommandEncoder.h; sourceTree = "<group>"; };7203 381E35EB1E8E21990043E850 /* GPU ComputeCommandEncoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUComputeCommandEncoder.cpp; sourceTree = "<group>"; };7204 381E35EC1E8E23E40043E850 /* GPU ComputePipelineState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUComputePipelineState.h; sourceTree = "<group>"; };7205 381E35ED1E8E247A0043E850 /* GPU ComputePipelineState.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPUComputePipelineState.cpp; sourceTree = "<group>"; };7206 381E35EE1E8E24CB0043E850 /* GPU ComputePipelineStateMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUComputePipelineStateMetal.mm; sourceTree = "<group>"; };7200 381E35E91E8E20AC0043E850 /* GPULegacyComputeCommandEncoderMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyComputeCommandEncoderMetal.mm; sourceTree = "<group>"; }; 7201 381E35EA1E8E20D90043E850 /* GPULegacyComputeCommandEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyComputeCommandEncoder.h; sourceTree = "<group>"; }; 7202 381E35EB1E8E21990043E850 /* GPULegacyComputeCommandEncoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyComputeCommandEncoder.cpp; sourceTree = "<group>"; }; 7203 381E35EC1E8E23E40043E850 /* GPULegacyComputePipelineState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyComputePipelineState.h; sourceTree = "<group>"; }; 7204 381E35ED1E8E247A0043E850 /* GPULegacyComputePipelineState.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GPULegacyComputePipelineState.cpp; sourceTree = "<group>"; }; 7205 381E35EE1E8E24CB0043E850 /* GPULegacyComputePipelineStateMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyComputePipelineStateMetal.mm; sourceTree = "<group>"; }; 7207 7206 381E35EF1E8E3D7F0043E850 /* WebGPUSize.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WebGPUSize.idl; sourceTree = "<group>"; }; 7208 7207 381E35F51E8E4C420043E850 /* WebGPUSize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebGPUSize.h; sourceTree = "<group>"; }; 7209 381E35F61E8E4D0E0043E850 /* GPU Size.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUSize.h; sourceTree = "<group>"; };7208 381E35F61E8E4D0E0043E850 /* GPULegacySize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacySize.h; sourceTree = "<group>"; }; 7210 7209 387AE9581E8E92EF0000DE96 /* JSWebGPUSize.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebGPUSize.cpp; sourceTree = "<group>"; }; 7211 7210 387AE9591E8E92EF0000DE96 /* JSWebGPUSize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSWebGPUSize.h; sourceTree = "<group>"; }; … … 13753 13752 D045AD2221682474000A6E9B /* WebMetalCommandBuffer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebMetalCommandBuffer.h; sourceTree = "<group>"; }; 13754 13753 D045AD2321682475000A6E9B /* WebMetalCommandQueue.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebMetalCommandQueue.cpp; sourceTree = "<group>"; }; 13754 D0573D42217EB81E00D1BE91 /* GPULegacyTextureMetal.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyTextureMetal.mm; sourceTree = "<group>"; }; 13755 13755 D05CED270A40BB2C00C5AF38 /* FormatBlockCommand.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = FormatBlockCommand.cpp; sourceTree = "<group>"; }; 13756 13756 D05CED280A40BB2C00C5AF38 /* FormatBlockCommand.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FormatBlockCommand.h; sourceTree = "<group>"; }; … … 17911 17911 isa = PBXGroup; 17912 17912 children = ( 17913 316BDBA71E71FA9300DE0D5A /* GPU Buffer.cpp */,17914 316BDBA81E71FA9300DE0D5A /* GPU Buffer.h */,17915 316BDBC41E75EE2400DE0D5A /* GPU CommandBuffer.cpp */,17916 316BDBC51E75EE2400DE0D5A /* GPU CommandBuffer.h */,17917 316BDBB91E73880600DE0D5A /* GPU CommandQueue.cpp */,17918 316BDBBA1E73880600DE0D5A /* GPU CommandQueue.h */,17919 381E35EB1E8E21990043E850 /* GPU ComputeCommandEncoder.cpp */,17920 381E35EA1E8E20D90043E850 /* GPU ComputeCommandEncoder.h */,17921 381E35ED1E8E247A0043E850 /* GPU ComputePipelineState.cpp */,17922 381E35EC1E8E23E40043E850 /* GPU ComputePipelineState.h */,17923 316BDBF41E762ACD00DE0D5A /* GPU DepthStencilDescriptor.cpp */,17924 316BDBF51E762ACD00DE0D5A /* GPU DepthStencilDescriptor.h */,17925 316BDBEE1E76291B00DE0D5A /* GPU DepthStencilState.cpp */,17926 316BDBEF1E76291B00DE0D5A /* GPU DepthStencilState.h */,17927 316BDB841E6E0A2100DE0D5A /* GPU Device.cpp */,17928 316BDB851E6E0A2100DE0D5A /* GPU Device.h */,17929 316BDBCA1E75F17600DE0D5A /* GPU Drawable.cpp */,17930 316BDBCB1E75F17600DE0D5A /* GPU Drawable.h */,17931 316BDBFA1E762D0400DE0D5A /* GPU Enums.h */,17932 316BDB921E70C89700DE0D5A /* GPU Function.cpp */,17933 316BDB931E70C89700DE0D5A /* GPU Function.h */,17934 316BDB981E70CBBF00DE0D5A /* GPUL ibrary.cpp */,17935 316BDB991E70CBBF00DE0D5A /* GPUL ibrary.h */,17936 316BDBE81E76244300DE0D5A /* GPU RenderCommandEncoder.cpp */,17937 316BDBE91E76244400DE0D5A /* GPU RenderCommandEncoder.h */,17938 316BDBDC1E76136C00DE0D5A /* GPU RenderPassAttachmentDescriptor.cpp */,17939 316BDBDD1E76136C00DE0D5A /* GPU RenderPassAttachmentDescriptor.h */,17940 316BDBD81E7612DB00DE0D5A /* GPU RenderPassColorAttachmentDescriptor.cpp */,17941 316BDBD91E7612DB00DE0D5A /* GPU RenderPassColorAttachmentDescriptor.h */,17942 316BDBE21E761EFF00DE0D5A /* GPU RenderPassDepthAttachmentDescriptor.cpp */,17943 316BDBE31E761EFF00DE0D5A /* GPU RenderPassDepthAttachmentDescriptor.h */,17944 316BDBD01E75F7AE00DE0D5A /* GPU RenderPassDescriptor.cpp */,17945 316BDBD11E75F7AE00DE0D5A /* GPU RenderPassDescriptor.h */,17946 316BDC081E76342700DE0D5A /* GPU RenderPipelineColorAttachmentDescriptor.cpp */,17947 316BDC091E76342700DE0D5A /* GPU RenderPipelineColorAttachmentDescriptor.h */,17948 316BDBFC1E762F5700DE0D5A /* GPU RenderPipelineDescriptor.cpp */,17949 316BDBFD1E762F5700DE0D5A /* GPU RenderPipelineDescriptor.h */,17950 316BDBFE1E762F5700DE0D5A /* GPU RenderPipelineState.cpp */,17951 316BDBFF1E762F5700DE0D5A /* GPU RenderPipelineState.h */,17952 381E35F61E8E4D0E0043E850 /* GPU Size.h */,17953 316BDBAF1E7354BB00DE0D5A /* GPU Texture.cpp */,17954 316BDBB01E7354BB00DE0D5A /* GPU Texture.h */,17955 316BDBB51E7357CB00DE0D5A /* GPU TextureDescriptor.cpp */,17956 316BDBB61E7357CB00DE0D5A /* GPU TextureDescriptor.h */,17913 316BDBA71E71FA9300DE0D5A /* GPULegacyBuffer.cpp */, 17914 316BDBA81E71FA9300DE0D5A /* GPULegacyBuffer.h */, 17915 316BDBC41E75EE2400DE0D5A /* GPULegacyCommandBuffer.cpp */, 17916 316BDBC51E75EE2400DE0D5A /* GPULegacyCommandBuffer.h */, 17917 316BDBB91E73880600DE0D5A /* GPULegacyCommandQueue.cpp */, 17918 316BDBBA1E73880600DE0D5A /* GPULegacyCommandQueue.h */, 17919 381E35EB1E8E21990043E850 /* GPULegacyComputeCommandEncoder.cpp */, 17920 381E35EA1E8E20D90043E850 /* GPULegacyComputeCommandEncoder.h */, 17921 381E35ED1E8E247A0043E850 /* GPULegacyComputePipelineState.cpp */, 17922 381E35EC1E8E23E40043E850 /* GPULegacyComputePipelineState.h */, 17923 316BDBF41E762ACD00DE0D5A /* GPULegacyDepthStencilDescriptor.cpp */, 17924 316BDBF51E762ACD00DE0D5A /* GPULegacyDepthStencilDescriptor.h */, 17925 316BDBEE1E76291B00DE0D5A /* GPULegacyDepthStencilState.cpp */, 17926 316BDBEF1E76291B00DE0D5A /* GPULegacyDepthStencilState.h */, 17927 316BDB841E6E0A2100DE0D5A /* GPULegacyDevice.cpp */, 17928 316BDB851E6E0A2100DE0D5A /* GPULegacyDevice.h */, 17929 316BDBCA1E75F17600DE0D5A /* GPULegacyDrawable.cpp */, 17930 316BDBCB1E75F17600DE0D5A /* GPULegacyDrawable.h */, 17931 316BDBFA1E762D0400DE0D5A /* GPULegacyEnums.h */, 17932 316BDB921E70C89700DE0D5A /* GPULegacyFunction.cpp */, 17933 316BDB931E70C89700DE0D5A /* GPULegacyFunction.h */, 17934 316BDB981E70CBBF00DE0D5A /* GPULegacyLibrary.cpp */, 17935 316BDB991E70CBBF00DE0D5A /* GPULegacyLibrary.h */, 17936 316BDBE81E76244300DE0D5A /* GPULegacyRenderCommandEncoder.cpp */, 17937 316BDBE91E76244400DE0D5A /* GPULegacyRenderCommandEncoder.h */, 17938 316BDBDC1E76136C00DE0D5A /* GPULegacyRenderPassAttachmentDescriptor.cpp */, 17939 316BDBDD1E76136C00DE0D5A /* GPULegacyRenderPassAttachmentDescriptor.h */, 17940 316BDBD81E7612DB00DE0D5A /* GPULegacyRenderPassColorAttachmentDescriptor.cpp */, 17941 316BDBD91E7612DB00DE0D5A /* GPULegacyRenderPassColorAttachmentDescriptor.h */, 17942 316BDBE21E761EFF00DE0D5A /* GPULegacyRenderPassDepthAttachmentDescriptor.cpp */, 17943 316BDBE31E761EFF00DE0D5A /* GPULegacyRenderPassDepthAttachmentDescriptor.h */, 17944 316BDBD01E75F7AE00DE0D5A /* GPULegacyRenderPassDescriptor.cpp */, 17945 316BDBD11E75F7AE00DE0D5A /* GPULegacyRenderPassDescriptor.h */, 17946 316BDC081E76342700DE0D5A /* GPULegacyRenderPipelineColorAttachmentDescriptor.cpp */, 17947 316BDC091E76342700DE0D5A /* GPULegacyRenderPipelineColorAttachmentDescriptor.h */, 17948 316BDBFC1E762F5700DE0D5A /* GPULegacyRenderPipelineDescriptor.cpp */, 17949 316BDBFD1E762F5700DE0D5A /* GPULegacyRenderPipelineDescriptor.h */, 17950 316BDBFE1E762F5700DE0D5A /* GPULegacyRenderPipelineState.cpp */, 17951 316BDBFF1E762F5700DE0D5A /* GPULegacyRenderPipelineState.h */, 17952 381E35F61E8E4D0E0043E850 /* GPULegacySize.h */, 17953 316BDBAF1E7354BB00DE0D5A /* GPULegacyTexture.cpp */, 17954 316BDBB01E7354BB00DE0D5A /* GPULegacyTexture.h */, 17955 316BDBB51E7357CB00DE0D5A /* GPULegacyTextureDescriptor.cpp */, 17956 316BDBB61E7357CB00DE0D5A /* GPULegacyTextureDescriptor.h */, 17957 17957 498770D71242C535002226BA /* Texture.cpp */, 17958 17958 498770D81242C535002226BA /* Texture.h */, … … 20700 20700 isa = PBXGroup; 20701 20701 children = ( 20702 316BDBA51E71FA6F00DE0D5A /* GPU BufferMetal.mm */,20703 316BDBC61E75EE3D00DE0D5A /* GPU CommandBufferMetal.mm */,20704 316BDBBD1E73881300DE0D5A /* GPU CommandQueueMetal.mm */,20705 381E35E91E8E20AC0043E850 /* GPU ComputeCommandEncoderMetal.mm */,20706 381E35EE1E8E24CB0043E850 /* GPU ComputePipelineStateMetal.mm */,20707 316BDBF81E762BEF00DE0D5A /* GPU DepthStencilDescriptorMetal.mm */,20708 316BDBF21E76293700DE0D5A /* GPU DepthStencilStateMetal.mm */,20709 316BDB881E6E141C00DE0D5A /* GPU DeviceMetal.mm */,20710 316BDBC91E75F16200DE0D5A /* GPU DrawableMetal.mm */,20711 316BDB961E70CA2400DE0D5A /* GPU FunctionMetal.mm */,20712 316BDB9C1E70CD9000DE0D5A /* GPUL ibraryMetal.mm */,20713 316BDBEC1E76246B00DE0D5A /* GPU RenderCommandEncoderMetal.mm */,20714 316BDBE01E761CB500DE0D5A /* GPU RenderPassAttachmentDescriptorMetal.mm */,20715 316BDBD61E7612C400DE0D5A /* GPU RenderPassColorAttachmentDescriptorMetal.mm */,20716 316BDBE61E761F2700DE0D5A /* GPU RenderPassDepthAttachmentDescriptorMetal.mm */,20717 316BDBD41E75F7CA00DE0D5A /* GPU RenderPassDescriptorMetal.mm */,20718 316BDC0A1E76343600DE0D5A /* GPU RenderPipelineColorAttachmentDescriptorMetal.mm */,20719 316BDC041E762F7E00DE0D5A /* GPU RenderPipelineDescriptorMetal.mm */,20720 316BDC051E762F7E00DE0D5A /* GPU RenderPipelineStateMetal.mm */,20721 316BDBB31E7357B000DE0D5A /* GPU TextureDescriptorMetal.mm */,20722 316BDBAD1E73549C00DE0D5A /* GPUTextureMetal.mm */,20702 316BDBA51E71FA6F00DE0D5A /* GPULegacyBufferMetal.mm */, 20703 316BDBC61E75EE3D00DE0D5A /* GPULegacyCommandBufferMetal.mm */, 20704 316BDBBD1E73881300DE0D5A /* GPULegacyCommandQueueMetal.mm */, 20705 381E35E91E8E20AC0043E850 /* GPULegacyComputeCommandEncoderMetal.mm */, 20706 381E35EE1E8E24CB0043E850 /* GPULegacyComputePipelineStateMetal.mm */, 20707 316BDBF81E762BEF00DE0D5A /* GPULegacyDepthStencilDescriptorMetal.mm */, 20708 316BDBF21E76293700DE0D5A /* GPULegacyDepthStencilStateMetal.mm */, 20709 316BDB881E6E141C00DE0D5A /* GPULegacyDeviceMetal.mm */, 20710 316BDBC91E75F16200DE0D5A /* GPULegacyDrawableMetal.mm */, 20711 316BDB961E70CA2400DE0D5A /* GPULegacyFunctionMetal.mm */, 20712 316BDB9C1E70CD9000DE0D5A /* GPULegacyLibraryMetal.mm */, 20713 316BDBEC1E76246B00DE0D5A /* GPULegacyRenderCommandEncoderMetal.mm */, 20714 316BDBE01E761CB500DE0D5A /* GPULegacyRenderPassAttachmentDescriptorMetal.mm */, 20715 316BDBD61E7612C400DE0D5A /* GPULegacyRenderPassColorAttachmentDescriptorMetal.mm */, 20716 316BDBE61E761F2700DE0D5A /* GPULegacyRenderPassDepthAttachmentDescriptorMetal.mm */, 20717 316BDBD41E75F7CA00DE0D5A /* GPULegacyRenderPassDescriptorMetal.mm */, 20718 316BDC0A1E76343600DE0D5A /* GPULegacyRenderPipelineColorAttachmentDescriptorMetal.mm */, 20719 316BDC041E762F7E00DE0D5A /* GPULegacyRenderPipelineDescriptorMetal.mm */, 20720 316BDC051E762F7E00DE0D5A /* GPULegacyRenderPipelineStateMetal.mm */, 20721 316BDBB31E7357B000DE0D5A /* GPULegacyTextureDescriptorMetal.mm */, 20722 D0573D42217EB81E00D1BE91 /* GPULegacyTextureMetal.mm */, 20723 20723 ); 20724 20724 path = metal; … … 28544 28544 0873B86B136064EA00A522C2 /* GlyphPage.h in Headers */, 28545 28545 311518FC1E78C15F00EC514A /* GPUBasedCanvasRenderingContext.h in Headers */, 28546 316BDBAA1E71FA9300DE0D5A /* GPU Buffer.h in Headers */,28547 316BDBCE1E75F18A00DE0D5A /* GPU CommandBuffer.h in Headers */,28548 316BDBBC1E73880600DE0D5A /* GPU CommandQueue.h in Headers */,28549 93A953B420EBD43200A619F6 /* GPU ComputeCommandEncoder.h in Headers */,28550 93A953B020EBD3C900A619F6 /* GPU ComputePipelineState.h in Headers */,28551 316BDBF71E762AD500DE0D5A /* GPU DepthStencilDescriptor.h in Headers */,28552 316BDBF01E76292000DE0D5A /* GPU DepthStencilState.h in Headers */,28553 316BDB861E6E0A2700DE0D5A /* GPU Device.h in Headers */,28554 316BDBCD1E75F18400DE0D5A /* GPU Drawable.h in Headers */,28555 316BDBFB1E762D0400DE0D5A /* GPU Enums.h in Headers */,28556 316BDB951E70C89700DE0D5A /* GPU Function.h in Headers */,28557 316BDB9B1E70CBBF00DE0D5A /* GPUL ibrary.h in Headers */,28558 316BDBEB1E76244D00DE0D5A /* GPU RenderCommandEncoder.h in Headers */,28559 316BDBDF1E76137500DE0D5A /* GPU RenderPassAttachmentDescriptor.h in Headers */,28560 316BDBDB1E7612E200DE0D5A /* GPU RenderPassColorAttachmentDescriptor.h in Headers */,28561 316BDBE41E761F0500DE0D5A /* GPU RenderPassDepthAttachmentDescriptor.h in Headers */,28562 316BDBD31E75F7B600DE0D5A /* GPU RenderPassDescriptor.h in Headers */,28563 316BDC0D1E7634D200DE0D5A /* GPU RenderPipelineColorAttachmentDescriptor.h in Headers */,28564 316BDC021E762F6400DE0D5A /* GPU RenderPipelineDescriptor.h in Headers */,28565 316BDC031E762F6900DE0D5A /* GPU RenderPipelineState.h in Headers */,28566 93A953B520EC9C3F00A619F6 /* GPU Size.h in Headers */,28567 316BDBB21E7354BB00DE0D5A /* GPU Texture.h in Headers */,28568 316BDBB81E7357CB00DE0D5A /* GPU TextureDescriptor.h in Headers */,28546 316BDBAA1E71FA9300DE0D5A /* GPULegacyBuffer.h in Headers */, 28547 316BDBCE1E75F18A00DE0D5A /* GPULegacyCommandBuffer.h in Headers */, 28548 316BDBBC1E73880600DE0D5A /* GPULegacyCommandQueue.h in Headers */, 28549 93A953B420EBD43200A619F6 /* GPULegacyComputeCommandEncoder.h in Headers */, 28550 93A953B020EBD3C900A619F6 /* GPULegacyComputePipelineState.h in Headers */, 28551 316BDBF71E762AD500DE0D5A /* GPULegacyDepthStencilDescriptor.h in Headers */, 28552 316BDBF01E76292000DE0D5A /* GPULegacyDepthStencilState.h in Headers */, 28553 316BDB861E6E0A2700DE0D5A /* GPULegacyDevice.h in Headers */, 28554 316BDBCD1E75F18400DE0D5A /* GPULegacyDrawable.h in Headers */, 28555 316BDBFB1E762D0400DE0D5A /* GPULegacyEnums.h in Headers */, 28556 316BDB951E70C89700DE0D5A /* GPULegacyFunction.h in Headers */, 28557 316BDB9B1E70CBBF00DE0D5A /* GPULegacyLibrary.h in Headers */, 28558 316BDBEB1E76244D00DE0D5A /* GPULegacyRenderCommandEncoder.h in Headers */, 28559 316BDBDF1E76137500DE0D5A /* GPULegacyRenderPassAttachmentDescriptor.h in Headers */, 28560 316BDBDB1E7612E200DE0D5A /* GPULegacyRenderPassColorAttachmentDescriptor.h in Headers */, 28561 316BDBE41E761F0500DE0D5A /* GPULegacyRenderPassDepthAttachmentDescriptor.h in Headers */, 28562 316BDBD31E75F7B600DE0D5A /* GPULegacyRenderPassDescriptor.h in Headers */, 28563 316BDC0D1E7634D200DE0D5A /* GPULegacyRenderPipelineColorAttachmentDescriptor.h in Headers */, 28564 316BDC021E762F6400DE0D5A /* GPULegacyRenderPipelineDescriptor.h in Headers */, 28565 316BDC031E762F6900DE0D5A /* GPULegacyRenderPipelineState.h in Headers */, 28566 93A953B520EC9C3F00A619F6 /* GPULegacySize.h in Headers */, 28567 316BDBB21E7354BB00DE0D5A /* GPULegacyTexture.h in Headers */, 28568 316BDBB81E7357CB00DE0D5A /* GPULegacyTextureDescriptor.h in Headers */, 28569 28569 BC53C5F50DA56B920021EB5D /* Gradient.h in Headers */, 28570 28570 B22279640D00BF220071B782 /* GradientAttributes.h in Headers */, -
trunk/Source/WebCore/html/canvas/WebMetalBuffer.cpp
r236954 r237368 31 31 namespace WebCore { 32 32 33 RefPtr<WebMetalBuffer> WebMetalBuffer::create(GPU Buffer&& buffer)33 RefPtr<WebMetalBuffer> WebMetalBuffer::create(GPULegacyBuffer&& buffer) 34 34 { 35 35 // FIXME: Consider returning null rather than a buffer with length 0 and contents null when creation fails. … … 37 37 } 38 38 39 WebMetalBuffer::WebMetalBuffer(GPU Buffer&& buffer)39 WebMetalBuffer::WebMetalBuffer(GPULegacyBuffer&& buffer) 40 40 : m_buffer { WTFMove(buffer) } 41 41 { -
trunk/Source/WebCore/html/canvas/WebMetalBuffer.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU Buffer.h"30 #include "GPULegacyBuffer.h" 31 31 #include <wtf/RefCounted.h> 32 32 #include <wtf/RefPtr.h> … … 36 36 class WebMetalBuffer : public RefCounted<WebMetalBuffer> { 37 37 public: 38 static RefPtr<WebMetalBuffer> create(GPU Buffer&&);38 static RefPtr<WebMetalBuffer> create(GPULegacyBuffer&&); 39 39 40 40 unsigned length() const { return m_buffer.length(); } 41 41 JSC::ArrayBuffer& contents() const { return *m_buffer.contents(); } 42 42 43 const GPU Buffer& buffer() const { return m_buffer; }43 const GPULegacyBuffer& buffer() const { return m_buffer; } 44 44 45 45 private: 46 explicit WebMetalBuffer(GPU Buffer&&);46 explicit WebMetalBuffer(GPULegacyBuffer&&); 47 47 48 GPU Buffer m_buffer;48 GPULegacyBuffer m_buffer; 49 49 }; 50 50 -
trunk/Source/WebCore/html/canvas/WebMetalCommandBuffer.cpp
r236954 r237368 30 30 #if ENABLE(WEBMETAL) 31 31 32 #include "GPU CommandBuffer.h"33 #include "GPU CommandQueue.h"32 #include "GPULegacyCommandBuffer.h" 33 #include "GPULegacyCommandQueue.h" 34 34 #include "Logging.h" 35 35 #include "WebMetalComputeCommandEncoder.h" … … 40 40 namespace WebCore { 41 41 42 Ref<WebMetalCommandBuffer> WebMetalCommandBuffer::create(const GPU CommandQueue& queue)42 Ref<WebMetalCommandBuffer> WebMetalCommandBuffer::create(const GPULegacyCommandQueue& queue) 43 43 { 44 44 return adoptRef(*new WebMetalCommandBuffer(queue)); 45 45 } 46 46 47 WebMetalCommandBuffer::WebMetalCommandBuffer(const GPU CommandQueue& queue)47 WebMetalCommandBuffer::WebMetalCommandBuffer(const GPULegacyCommandQueue& queue) 48 48 : m_buffer { queue, [this] () { m_completed.resolve(); } } 49 49 { … … 70 70 Ref<WebMetalRenderCommandEncoder> WebMetalCommandBuffer::createRenderCommandEncoderWithDescriptor(WebMetalRenderPassDescriptor& descriptor) 71 71 { 72 return WebMetalRenderCommandEncoder::create(GPU RenderCommandEncoder { m_buffer, descriptor.descriptor() });72 return WebMetalRenderCommandEncoder::create(GPULegacyRenderCommandEncoder { m_buffer, descriptor.descriptor() }); 73 73 } 74 74 75 75 Ref<WebMetalComputeCommandEncoder> WebMetalCommandBuffer::createComputeCommandEncoder() 76 76 { 77 return WebMetalComputeCommandEncoder::create(GPU ComputeCommandEncoder { m_buffer });77 return WebMetalComputeCommandEncoder::create(GPULegacyComputeCommandEncoder { m_buffer }); 78 78 } 79 79 -
trunk/Source/WebCore/html/canvas/WebMetalCommandBuffer.h
r236954 r237368 30 30 31 31 #include "DOMPromiseProxy.h" 32 #include "GPU CommandBuffer.h"32 #include "GPULegacyCommandBuffer.h" 33 33 #include <wtf/Ref.h> 34 34 #include <wtf/RefCounted.h> … … 44 44 public: 45 45 ~WebMetalCommandBuffer(); 46 static Ref<WebMetalCommandBuffer> create(const GPU CommandQueue&);46 static Ref<WebMetalCommandBuffer> create(const GPULegacyCommandQueue&); 47 47 48 48 void commit(); … … 54 54 DOMPromiseProxy<IDLVoid>& completed(); 55 55 56 const GPU CommandBuffer& buffer() const { return m_buffer; }56 const GPULegacyCommandBuffer& buffer() const { return m_buffer; } 57 57 58 58 private: 59 explicit WebMetalCommandBuffer(const GPU CommandQueue&);59 explicit WebMetalCommandBuffer(const GPULegacyCommandQueue&); 60 60 61 GPU CommandBuffer m_buffer;61 GPULegacyCommandBuffer m_buffer; 62 62 DOMPromiseProxy<IDLVoid> m_completed; 63 63 }; -
trunk/Source/WebCore/html/canvas/WebMetalCommandQueue.cpp
r236954 r237368 33 33 namespace WebCore { 34 34 35 Ref<WebMetalCommandQueue> WebMetalCommandQueue::create(GPU CommandQueue&& queue)35 Ref<WebMetalCommandQueue> WebMetalCommandQueue::create(GPULegacyCommandQueue&& queue) 36 36 { 37 37 return adoptRef(*new WebMetalCommandQueue(WTFMove(queue))); 38 38 } 39 39 40 WebMetalCommandQueue::WebMetalCommandQueue(GPU CommandQueue&& queue)40 WebMetalCommandQueue::WebMetalCommandQueue(GPULegacyCommandQueue&& queue) 41 41 : m_queue { WTFMove(queue) } 42 42 { -
trunk/Source/WebCore/html/canvas/WebMetalCommandQueue.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU CommandQueue.h"30 #include "GPULegacyCommandQueue.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 39 39 public: 40 40 ~WebMetalCommandQueue(); 41 static Ref<WebMetalCommandQueue> create(GPU CommandQueue&&);41 static Ref<WebMetalCommandQueue> create(GPULegacyCommandQueue&&); 42 42 43 43 String label() const { return m_queue.label(); } … … 47 47 48 48 private: 49 explicit WebMetalCommandQueue(GPU CommandQueue&&);49 explicit WebMetalCommandQueue(GPULegacyCommandQueue&&); 50 50 51 GPU CommandQueue m_queue;51 GPULegacyCommandQueue m_queue; 52 52 }; 53 53 -
trunk/Source/WebCore/html/canvas/WebMetalComputeCommandEncoder.cpp
r236954 r237368 29 29 #if ENABLE(WEBMETAL) 30 30 31 #include "GPU CommandBuffer.h"32 #include "GPU ComputeCommandEncoder.h"33 #include "GPU Size.h"31 #include "GPULegacyCommandBuffer.h" 32 #include "GPULegacyComputeCommandEncoder.h" 33 #include "GPULegacySize.h" 34 34 #include "WebMetalBuffer.h" 35 35 #include "WebMetalCommandBuffer.h" … … 38 38 namespace WebCore { 39 39 40 static inline GPU Size GPUSizeMake(WebMetalSize size)40 static inline GPULegacySize GPULegacySizeMake(WebMetalSize size) 41 41 { 42 42 return { size.width, size.height, size.depth }; 43 43 } 44 44 45 Ref<WebMetalComputeCommandEncoder> WebMetalComputeCommandEncoder::create(GPU ComputeCommandEncoder&& encoder)45 Ref<WebMetalComputeCommandEncoder> WebMetalComputeCommandEncoder::create(GPULegacyComputeCommandEncoder&& encoder) 46 46 { 47 47 return adoptRef(*new WebMetalComputeCommandEncoder(WTFMove(encoder))); 48 48 } 49 49 50 WebMetalComputeCommandEncoder::WebMetalComputeCommandEncoder(GPU ComputeCommandEncoder&& encoder)50 WebMetalComputeCommandEncoder::WebMetalComputeCommandEncoder(GPULegacyComputeCommandEncoder&& encoder) 51 51 : m_encoder { WTFMove(encoder) } 52 52 { … … 65 65 void WebMetalComputeCommandEncoder::dispatch(WebMetalSize threadgroupsPerGrid, WebMetalSize threadsPerThreadgroup) 66 66 { 67 m_encoder.dispatch(GPU SizeMake(threadgroupsPerGrid), GPUSizeMake(threadsPerThreadgroup));67 m_encoder.dispatch(GPULegacySizeMake(threadgroupsPerGrid), GPULegacySizeMake(threadsPerThreadgroup)); 68 68 } 69 69 -
trunk/Source/WebCore/html/canvas/WebMetalComputeCommandEncoder.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU ComputeCommandEncoder.h"30 #include "GPULegacyComputeCommandEncoder.h" 31 31 #include "WebMetalSize.h" 32 32 #include <wtf/Ref.h> … … 40 40 class WebMetalComputeCommandEncoder : public RefCounted<WebMetalComputeCommandEncoder> { 41 41 public: 42 static Ref<WebMetalComputeCommandEncoder> create(GPU ComputeCommandEncoder&&);42 static Ref<WebMetalComputeCommandEncoder> create(GPULegacyComputeCommandEncoder&&); 43 43 44 44 void setComputePipelineState(WebMetalComputePipelineState&); … … 48 48 49 49 private: 50 explicit WebMetalComputeCommandEncoder(GPU ComputeCommandEncoder&&);50 explicit WebMetalComputeCommandEncoder(GPULegacyComputeCommandEncoder&&); 51 51 52 GPU ComputeCommandEncoder m_encoder;52 GPULegacyComputeCommandEncoder m_encoder; 53 53 }; 54 54 -
trunk/Source/WebCore/html/canvas/WebMetalComputePipelineState.cpp
r236954 r237368 31 31 namespace WebCore { 32 32 33 Ref<WebMetalComputePipelineState> WebMetalComputePipelineState::create(GPU ComputePipelineState&& state)33 Ref<WebMetalComputePipelineState> WebMetalComputePipelineState::create(GPULegacyComputePipelineState&& state) 34 34 { 35 35 return adoptRef(*new WebMetalComputePipelineState(WTFMove(state))); 36 36 } 37 37 38 WebMetalComputePipelineState::WebMetalComputePipelineState(GPU ComputePipelineState&& state)38 WebMetalComputePipelineState::WebMetalComputePipelineState(GPULegacyComputePipelineState&& state) 39 39 : m_state { WTFMove(state) } 40 40 { -
trunk/Source/WebCore/html/canvas/WebMetalComputePipelineState.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU ComputePipelineState.h"30 #include "GPULegacyComputePipelineState.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 38 38 class WebMetalComputePipelineState : public RefCounted<WebMetalComputePipelineState> { 39 39 public: 40 static Ref<WebMetalComputePipelineState> create(GPU ComputePipelineState&&);40 static Ref<WebMetalComputePipelineState> create(GPULegacyComputePipelineState&&); 41 41 42 GPU ComputePipelineState& state() { return m_state; }42 GPULegacyComputePipelineState& state() { return m_state; } 43 43 44 44 private: 45 explicit WebMetalComputePipelineState(GPU ComputePipelineState&&);45 explicit WebMetalComputePipelineState(GPULegacyComputePipelineState&&); 46 46 47 GPU ComputePipelineState m_state;47 GPULegacyComputePipelineState m_state; 48 48 }; 49 49 -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilDescriptor.cpp
r236954 r237368 54 54 { 55 55 m_depthCompareFunction = newDepthCompareFunction; 56 m_descriptor.setDepthCompareFunction(toGPU CompareFunction(m_depthCompareFunction));56 m_descriptor.setDepthCompareFunction(toGPULegacyCompareFunction(m_depthCompareFunction)); 57 57 } 58 58 -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilDescriptor.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU DepthStencilDescriptor.h"30 #include "GPULegacyDepthStencilDescriptor.h" 31 31 #include "WebMetalEnums.h" 32 32 #include <wtf/Ref.h> … … 46 46 void setDepthCompareFunction(CompareFunction); 47 47 48 GPU DepthStencilDescriptor& descriptor() { return m_descriptor; }48 GPULegacyDepthStencilDescriptor& descriptor() { return m_descriptor; } 49 49 50 50 private: … … 57 57 58 58 WebMetalCompareFunction m_depthCompareFunction { WebMetalCompareFunction::Always }; 59 GPU DepthStencilDescriptor m_descriptor;59 GPULegacyDepthStencilDescriptor m_descriptor; 60 60 }; 61 61 -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilState.cpp
r236954 r237368 34 34 namespace WebCore { 35 35 36 Ref<WebMetalDepthStencilState> WebMetalDepthStencilState::create(GPU DepthStencilState&& state)36 Ref<WebMetalDepthStencilState> WebMetalDepthStencilState::create(GPULegacyDepthStencilState&& state) 37 37 { 38 38 return adoptRef(*new WebMetalDepthStencilState(WTFMove(state))); 39 39 } 40 40 41 WebMetalDepthStencilState::WebMetalDepthStencilState(GPU DepthStencilState&& state)41 WebMetalDepthStencilState::WebMetalDepthStencilState(GPULegacyDepthStencilState&& state) 42 42 : m_state { WTFMove(state) } 43 43 { -
trunk/Source/WebCore/html/canvas/WebMetalDepthStencilState.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU DepthStencilState.h"30 #include "GPULegacyDepthStencilState.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 36 36 class WebMetalDepthStencilState : public RefCounted<WebMetalDepthStencilState> { 37 37 public: 38 static Ref<WebMetalDepthStencilState> create(GPU DepthStencilState&&);38 static Ref<WebMetalDepthStencilState> create(GPULegacyDepthStencilState&&); 39 39 40 40 String label() const; 41 41 void setLabel(const String&); 42 42 43 GPU DepthStencilState& state() { return m_state; }43 GPULegacyDepthStencilState& state() { return m_state; } 44 44 45 45 private: 46 explicit WebMetalDepthStencilState(GPU DepthStencilState&&);46 explicit WebMetalDepthStencilState(GPULegacyDepthStencilState&&); 47 47 48 GPU DepthStencilState m_state;48 GPULegacyDepthStencilState m_state; 49 49 }; 50 50 -
trunk/Source/WebCore/html/canvas/WebMetalDrawable.cpp
r236954 r237368 29 29 #if ENABLE(WEBMETAL) 30 30 31 #include "GPU Texture.h"31 #include "GPULegacyTexture.h" 32 32 #include "WebMetalTexture.h" 33 33 34 34 namespace WebCore { 35 35 36 Ref<WebMetalDrawable> WebMetalDrawable::create(GPU Drawable&& drawable)36 Ref<WebMetalDrawable> WebMetalDrawable::create(GPULegacyDrawable&& drawable) 37 37 { 38 38 return adoptRef(*new WebMetalDrawable(WTFMove(drawable))); 39 39 } 40 40 41 WebMetalDrawable::WebMetalDrawable(GPU Drawable&& drawable)41 WebMetalDrawable::WebMetalDrawable(GPULegacyDrawable&& drawable) 42 42 : m_drawable { WTFMove(drawable) } 43 , m_texture { WebMetalTexture::create(GPU Texture { m_drawable }) }43 , m_texture { WebMetalTexture::create(GPULegacyTexture { m_drawable }) } 44 44 { 45 45 } -
trunk/Source/WebCore/html/canvas/WebMetalDrawable.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU Drawable.h"30 #include "GPULegacyDrawable.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 39 39 public: 40 40 ~WebMetalDrawable(); 41 static Ref<WebMetalDrawable> create(GPU Drawable&&);41 static Ref<WebMetalDrawable> create(GPULegacyDrawable&&); 42 42 43 GPU Drawable& drawable() { return m_drawable; }43 GPULegacyDrawable& drawable() { return m_drawable; } 44 44 WebMetalTexture& texture() { return m_texture.get(); } 45 45 46 46 private: 47 explicit WebMetalDrawable(GPU Drawable&&);47 explicit WebMetalDrawable(GPULegacyDrawable&&); 48 48 49 GPU Drawable m_drawable;49 GPULegacyDrawable m_drawable; 50 50 Ref<WebMetalTexture> m_texture; 51 51 }; -
trunk/Source/WebCore/html/canvas/WebMetalEnums.cpp
r236954 r237368 29 29 #if ENABLE(WEBMETAL) 30 30 31 #include "GPU Enums.h"31 #include "GPULegacyEnums.h" 32 32 #include <wtf/text/WTFString.h> 33 33 … … 80 80 } 81 81 82 GPU CompareFunction toGPUCompareFunction(const WebMetalCompareFunction value)82 GPULegacyCompareFunction toGPULegacyCompareFunction(const WebMetalCompareFunction value) 83 83 { 84 84 if (value == WebMetalCompareFunction::Never) 85 return GPU CompareFunction::Never;85 return GPULegacyCompareFunction::Never; 86 86 if (value == WebMetalCompareFunction::Less) 87 return GPU CompareFunction::Less;87 return GPULegacyCompareFunction::Less; 88 88 if (value == WebMetalCompareFunction::Equal) 89 return GPU CompareFunction::Equal;89 return GPULegacyCompareFunction::Equal; 90 90 if (value == WebMetalCompareFunction::Lessequal) 91 return GPU CompareFunction::LessEqual;91 return GPULegacyCompareFunction::LessEqual; 92 92 if (value == WebMetalCompareFunction::Greater) 93 return GPU CompareFunction::Greater;93 return GPULegacyCompareFunction::Greater; 94 94 if (value == WebMetalCompareFunction::Notequal) 95 return GPU CompareFunction::NotEqual;95 return GPULegacyCompareFunction::NotEqual; 96 96 if (value == WebMetalCompareFunction::Greaterequal) 97 return GPU CompareFunction::GreaterEqual;97 return GPULegacyCompareFunction::GreaterEqual; 98 98 if (value == WebMetalCompareFunction::Always) 99 return GPU CompareFunction::Always;99 return GPULegacyCompareFunction::Always; 100 100 101 101 ASSERT_NOT_REACHED(); 102 return GPU CompareFunction::Never;102 return GPULegacyCompareFunction::Never; 103 103 } 104 104 -
trunk/Source/WebCore/html/canvas/WebMetalEnums.h
r236954 r237368 33 33 namespace WebCore { 34 34 35 enum class GPU CompareFunction;35 enum class GPULegacyCompareFunction; 36 36 37 37 enum class WebMetalCompareFunction { … … 48 48 std::optional<WebMetalCompareFunction> toWebMetalCompareFunction(const String&); 49 49 String web3DCompareFunctionName(WebMetalCompareFunction); 50 GPU CompareFunction toGPUCompareFunction(WebMetalCompareFunction);50 GPULegacyCompareFunction toGPULegacyCompareFunction(WebMetalCompareFunction); 51 51 52 52 } // namespace WebCore -
trunk/Source/WebCore/html/canvas/WebMetalFunction.cpp
r236954 r237368 33 33 namespace WebCore { 34 34 35 Ref<WebMetalFunction> WebMetalFunction::create(GPU Function&& function)35 Ref<WebMetalFunction> WebMetalFunction::create(GPULegacyFunction&& function) 36 36 { 37 37 return adoptRef(*new WebMetalFunction(WTFMove(function))); 38 38 } 39 39 40 WebMetalFunction::WebMetalFunction(GPU Function&& function)40 WebMetalFunction::WebMetalFunction(GPULegacyFunction&& function) 41 41 : m_function { WTFMove(function) } 42 42 { -
trunk/Source/WebCore/html/canvas/WebMetalFunction.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU Function.h"30 #include "GPULegacyFunction.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 37 37 class WebMetalFunction : public RefCounted<WebMetalFunction> { 38 38 public: 39 static Ref<WebMetalFunction> create(GPU Function&&);39 static Ref<WebMetalFunction> create(GPULegacyFunction&&); 40 40 41 41 String name() const { return m_function.name(); } 42 const GPU Function& function() const { return m_function; }42 const GPULegacyFunction& function() const { return m_function; } 43 43 44 44 private: 45 explicit WebMetalFunction(GPU Function&&);45 explicit WebMetalFunction(GPULegacyFunction&&); 46 46 47 GPU Function m_function;47 GPULegacyFunction m_function; 48 48 }; 49 49 -
trunk/Source/WebCore/html/canvas/WebMetalLibrary.cpp
r236954 r237368 33 33 namespace WebCore { 34 34 35 Ref<WebMetalLibrary> WebMetalLibrary::create(GPUL ibrary&& library, const String& sourceCode)35 Ref<WebMetalLibrary> WebMetalLibrary::create(GPULegacyLibrary&& library, const String& sourceCode) 36 36 { 37 37 return adoptRef(*new WebMetalLibrary(WTFMove(library), sourceCode)); 38 38 } 39 39 40 WebMetalLibrary::WebMetalLibrary(GPUL ibrary&& library, const String& sourceCode)40 WebMetalLibrary::WebMetalLibrary(GPULegacyLibrary&& library, const String& sourceCode) 41 41 : m_sourceCode { sourceCode } 42 42 , m_library { WTFMove(library) } … … 51 51 RefPtr<WebMetalFunction> WebMetalLibrary::functionWithName(const String& name) const 52 52 { 53 GPU Function function { m_library, name };53 GPULegacyFunction function { m_library, name }; 54 54 if (!function) 55 55 return nullptr; -
trunk/Source/WebCore/html/canvas/WebMetalLibrary.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPUL ibrary.h"30 #include "GPULegacyLibrary.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 38 38 class WebMetalLibrary : public RefCounted<WebMetalLibrary> { 39 39 public: 40 static Ref<WebMetalLibrary> create(GPUL ibrary&&, const String& sourceCode);40 static Ref<WebMetalLibrary> create(GPULegacyLibrary&&, const String& sourceCode); 41 41 42 42 const String& sourceCode() const { return m_sourceCode; } … … 50 50 51 51 private: 52 WebMetalLibrary(GPUL ibrary&&, const String& sourceCode);52 WebMetalLibrary(GPULegacyLibrary&&, const String& sourceCode); 53 53 54 54 String m_sourceCode; 55 GPUL ibrary m_library;55 GPULegacyLibrary m_library; 56 56 }; 57 57 -
trunk/Source/WebCore/html/canvas/WebMetalRenderCommandEncoder.cpp
r236954 r237368 29 29 #if ENABLE(WEBMETAL) 30 30 31 #include "GPU CommandBuffer.h"32 #include "GPU RenderPassDescriptor.h"31 #include "GPULegacyCommandBuffer.h" 32 #include "GPULegacyRenderPassDescriptor.h" 33 33 #include "WebMetalBuffer.h" 34 34 #include "WebMetalCommandBuffer.h" … … 39 39 namespace WebCore { 40 40 41 Ref<WebMetalRenderCommandEncoder> WebMetalRenderCommandEncoder::create(GPU RenderCommandEncoder&& encoder)41 Ref<WebMetalRenderCommandEncoder> WebMetalRenderCommandEncoder::create(GPULegacyRenderCommandEncoder&& encoder) 42 42 { 43 43 return adoptRef(*new WebMetalRenderCommandEncoder(WTFMove(encoder))); 44 44 } 45 45 46 WebMetalRenderCommandEncoder::WebMetalRenderCommandEncoder(GPU RenderCommandEncoder&& encoder)46 WebMetalRenderCommandEncoder::WebMetalRenderCommandEncoder(GPULegacyRenderCommandEncoder&& encoder) 47 47 : m_encoder { WTFMove(encoder) } 48 48 { -
trunk/Source/WebCore/html/canvas/WebMetalRenderCommandEncoder.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU RenderCommandEncoder.h"30 #include "GPULegacyRenderCommandEncoder.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 41 41 public: 42 42 ~WebMetalRenderCommandEncoder(); 43 static Ref<WebMetalRenderCommandEncoder> create(GPU RenderCommandEncoder&&);43 static Ref<WebMetalRenderCommandEncoder> create(GPULegacyRenderCommandEncoder&&); 44 44 45 45 void setRenderPipelineState(WebMetalRenderPipelineState&); … … 50 50 void endEncoding(); 51 51 52 GPU RenderCommandEncoder& encoder() { return m_encoder; }52 GPULegacyRenderCommandEncoder& encoder() { return m_encoder; } 53 53 54 54 private: 55 explicit WebMetalRenderCommandEncoder(GPU RenderCommandEncoder&&);55 explicit WebMetalRenderCommandEncoder(GPULegacyRenderCommandEncoder&&); 56 56 57 GPU RenderCommandEncoder m_encoder;57 GPULegacyRenderCommandEncoder m_encoder; 58 58 }; 59 59 -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassAttachmentDescriptor.cpp
r236954 r237368 29 29 #if ENABLE(WEBMETAL) 30 30 31 #include "GPU RenderPassAttachmentDescriptor.h"32 #include "GPU Texture.h"31 #include "GPULegacyRenderPassAttachmentDescriptor.h" 32 #include "GPULegacyTexture.h" 33 33 #include "WebMetalTexture.h" 34 34 -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassAttachmentDescriptor.h
r237344 r237368 33 33 namespace WebCore { 34 34 35 class GPU RenderPassAttachmentDescriptor;35 class GPULegacyRenderPassAttachmentDescriptor; 36 36 class WebMetalTexture; 37 37 … … 55 55 56 56 private: 57 virtual const GPU RenderPassAttachmentDescriptor& descriptor() const = 0;57 virtual const GPULegacyRenderPassAttachmentDescriptor& descriptor() const = 0; 58 58 59 59 RefPtr<WebMetalTexture> m_texture; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassColorAttachmentDescriptor.cpp
r236954 r237368 29 29 #if ENABLE(WEBMETAL) 30 30 31 #include "GPU Texture.h"31 #include "GPULegacyTexture.h" 32 32 #include "WebMetalTexture.h" 33 33 #include <wtf/Vector.h> … … 35 35 namespace WebCore { 36 36 37 Ref<WebMetalRenderPassColorAttachmentDescriptor> WebMetalRenderPassColorAttachmentDescriptor::create(GPU RenderPassColorAttachmentDescriptor&& descriptor)37 Ref<WebMetalRenderPassColorAttachmentDescriptor> WebMetalRenderPassColorAttachmentDescriptor::create(GPULegacyRenderPassColorAttachmentDescriptor&& descriptor) 38 38 { 39 39 return adoptRef(*new WebMetalRenderPassColorAttachmentDescriptor(WTFMove(descriptor))); 40 40 } 41 41 42 WebMetalRenderPassColorAttachmentDescriptor::WebMetalRenderPassColorAttachmentDescriptor(GPU RenderPassColorAttachmentDescriptor&& descriptor)42 WebMetalRenderPassColorAttachmentDescriptor::WebMetalRenderPassColorAttachmentDescriptor(GPULegacyRenderPassColorAttachmentDescriptor&& descriptor) 43 43 : m_descriptor { WTFMove(descriptor) } 44 44 { … … 47 47 WebMetalRenderPassColorAttachmentDescriptor::~WebMetalRenderPassColorAttachmentDescriptor() = default; 48 48 49 const GPU RenderPassAttachmentDescriptor& WebMetalRenderPassColorAttachmentDescriptor::descriptor() const49 const GPULegacyRenderPassAttachmentDescriptor& WebMetalRenderPassColorAttachmentDescriptor::descriptor() const 50 50 { 51 51 return m_descriptor; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassColorAttachmentDescriptor.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU RenderPassColorAttachmentDescriptor.h"30 #include "GPULegacyRenderPassColorAttachmentDescriptor.h" 31 31 #include "WebMetalRenderPassAttachmentDescriptor.h" 32 32 … … 36 36 public: 37 37 virtual ~WebMetalRenderPassColorAttachmentDescriptor(); 38 static Ref<WebMetalRenderPassColorAttachmentDescriptor> create(GPU RenderPassColorAttachmentDescriptor&&);38 static Ref<WebMetalRenderPassColorAttachmentDescriptor> create(GPULegacyRenderPassColorAttachmentDescriptor&&); 39 39 40 40 Vector<float> clearColor() const; … … 42 42 43 43 private: 44 explicit WebMetalRenderPassColorAttachmentDescriptor(GPU RenderPassColorAttachmentDescriptor&&);44 explicit WebMetalRenderPassColorAttachmentDescriptor(GPULegacyRenderPassColorAttachmentDescriptor&&); 45 45 46 const GPU RenderPassAttachmentDescriptor& descriptor() const final;46 const GPULegacyRenderPassAttachmentDescriptor& descriptor() const final; 47 47 bool isColorAttachmentDescriptor() const final { return true; } 48 48 49 GPU RenderPassColorAttachmentDescriptor m_descriptor;49 GPULegacyRenderPassColorAttachmentDescriptor m_descriptor; 50 50 }; 51 51 -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.cpp
r236954 r237368 33 33 namespace WebCore { 34 34 35 Ref<WebMetalRenderPassDepthAttachmentDescriptor> WebMetalRenderPassDepthAttachmentDescriptor::create(GPU RenderPassDepthAttachmentDescriptor&& descriptor)35 Ref<WebMetalRenderPassDepthAttachmentDescriptor> WebMetalRenderPassDepthAttachmentDescriptor::create(GPULegacyRenderPassDepthAttachmentDescriptor&& descriptor) 36 36 { 37 37 return adoptRef(*new WebMetalRenderPassDepthAttachmentDescriptor(WTFMove(descriptor))); 38 38 } 39 39 40 WebMetalRenderPassDepthAttachmentDescriptor::WebMetalRenderPassDepthAttachmentDescriptor(GPU RenderPassDepthAttachmentDescriptor&& descriptor)40 WebMetalRenderPassDepthAttachmentDescriptor::WebMetalRenderPassDepthAttachmentDescriptor(GPULegacyRenderPassDepthAttachmentDescriptor&& descriptor) 41 41 : m_descriptor { WTFMove(descriptor) } 42 42 { … … 55 55 } 56 56 57 const GPU RenderPassAttachmentDescriptor& WebMetalRenderPassDepthAttachmentDescriptor::descriptor() const57 const GPULegacyRenderPassAttachmentDescriptor& WebMetalRenderPassDepthAttachmentDescriptor::descriptor() const 58 58 { 59 59 return m_descriptor; -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU RenderPassDepthAttachmentDescriptor.h"30 #include "GPULegacyRenderPassDepthAttachmentDescriptor.h" 31 31 #include "WebMetalRenderPassAttachmentDescriptor.h" 32 32 … … 36 36 public: 37 37 virtual ~WebMetalRenderPassDepthAttachmentDescriptor(); 38 static Ref<WebMetalRenderPassDepthAttachmentDescriptor> create(GPU RenderPassDepthAttachmentDescriptor&&);38 static Ref<WebMetalRenderPassDepthAttachmentDescriptor> create(GPULegacyRenderPassDepthAttachmentDescriptor&&); 39 39 40 40 double clearDepth() const; … … 42 42 43 43 private: 44 explicit WebMetalRenderPassDepthAttachmentDescriptor(GPU RenderPassDepthAttachmentDescriptor&&);44 explicit WebMetalRenderPassDepthAttachmentDescriptor(GPULegacyRenderPassDepthAttachmentDescriptor&&); 45 45 46 const GPU RenderPassAttachmentDescriptor& descriptor() const final;46 const GPULegacyRenderPassAttachmentDescriptor& descriptor() const final; 47 47 bool isColorAttachmentDescriptor() const final { return false; } 48 48 49 GPU RenderPassDepthAttachmentDescriptor m_descriptor;49 GPULegacyRenderPassDepthAttachmentDescriptor m_descriptor; 50 50 }; 51 51 -
trunk/Source/WebCore/html/canvas/WebMetalRenderPassDescriptor.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU RenderPassDescriptor.h"30 #include "GPULegacyRenderPassDescriptor.h" 31 31 #include "WebMetalRenderPassColorAttachmentDescriptor.h" 32 32 #include "WebMetalRenderPassDepthAttachmentDescriptor.h" … … 45 45 const Vector<RefPtr<WebMetalRenderPassColorAttachmentDescriptor>>& colorAttachments(); 46 46 47 const GPU RenderPassDescriptor& descriptor() const { return m_descriptor; }47 const GPULegacyRenderPassDescriptor& descriptor() const { return m_descriptor; } 48 48 49 49 private: … … 53 53 RefPtr<WebMetalRenderPassDepthAttachmentDescriptor> m_depthAttachment; 54 54 55 GPU RenderPassDescriptor m_descriptor;55 GPULegacyRenderPassDescriptor m_descriptor; 56 56 }; 57 57 -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.cpp
r236954 r237368 31 31 namespace WebCore { 32 32 33 Ref<WebMetalRenderPipelineColorAttachmentDescriptor> WebMetalRenderPipelineColorAttachmentDescriptor::create(GPU RenderPipelineColorAttachmentDescriptor&& descriptor)33 Ref<WebMetalRenderPipelineColorAttachmentDescriptor> WebMetalRenderPipelineColorAttachmentDescriptor::create(GPULegacyRenderPipelineColorAttachmentDescriptor&& descriptor) 34 34 { 35 35 return adoptRef(*new WebMetalRenderPipelineColorAttachmentDescriptor(WTFMove(descriptor))); 36 36 } 37 37 38 WebMetalRenderPipelineColorAttachmentDescriptor::WebMetalRenderPipelineColorAttachmentDescriptor(GPU RenderPipelineColorAttachmentDescriptor&& descriptor)38 WebMetalRenderPipelineColorAttachmentDescriptor::WebMetalRenderPipelineColorAttachmentDescriptor(GPULegacyRenderPipelineColorAttachmentDescriptor&& descriptor) 39 39 : m_descriptor { WTFMove(descriptor) } 40 40 { -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU RenderPipelineColorAttachmentDescriptor.h"30 #include "GPULegacyRenderPipelineColorAttachmentDescriptor.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 36 36 class WebMetalRenderPipelineColorAttachmentDescriptor : public RefCounted<WebMetalRenderPipelineColorAttachmentDescriptor> { 37 37 public: 38 static Ref<WebMetalRenderPipelineColorAttachmentDescriptor> create(GPU RenderPipelineColorAttachmentDescriptor&&);38 static Ref<WebMetalRenderPipelineColorAttachmentDescriptor> create(GPULegacyRenderPipelineColorAttachmentDescriptor&&); 39 39 40 40 unsigned pixelFormat() const; … … 42 42 43 43 private: 44 explicit WebMetalRenderPipelineColorAttachmentDescriptor(GPU RenderPipelineColorAttachmentDescriptor&&);44 explicit WebMetalRenderPipelineColorAttachmentDescriptor(GPULegacyRenderPipelineColorAttachmentDescriptor&&); 45 45 46 GPU RenderPipelineColorAttachmentDescriptor m_descriptor;46 GPULegacyRenderPipelineColorAttachmentDescriptor m_descriptor; 47 47 }; 48 48 -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineDescriptor.cpp
r236954 r237368 29 29 #if ENABLE(WEBMETAL) 30 30 31 #include "GPU Function.h"32 #include "GPU RenderPipelineColorAttachmentDescriptor.h"31 #include "GPULegacyFunction.h" 32 #include "GPULegacyRenderPipelineColorAttachmentDescriptor.h" 33 33 #include "WebMetalFunction.h" 34 34 #include "WebMetalRenderPipelineColorAttachmentDescriptor.h" -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineDescriptor.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU RenderPipelineDescriptor.h"30 #include "GPULegacyRenderPipelineDescriptor.h" 31 31 #include "WebMetalRenderPipelineColorAttachmentDescriptor.h" 32 32 #include <wtf/Ref.h> … … 36 36 namespace WebCore { 37 37 38 class GPU Function;39 class GPU RenderPipelineDescriptor;38 class GPULegacyFunction; 39 class GPULegacyRenderPipelineDescriptor; 40 40 class WebMetalFunction; 41 41 class WebMetalRenderPipelineColorAttachmentDescriptor; … … 59 59 void reset(); 60 60 61 const GPU RenderPipelineDescriptor& descriptor() { return m_descriptor; }61 const GPULegacyRenderPipelineDescriptor& descriptor() { return m_descriptor; } 62 62 63 63 private: … … 69 69 Vector<RefPtr<WebMetalRenderPipelineColorAttachmentDescriptor>> m_colorAttachments; 70 70 71 GPU RenderPipelineDescriptor m_descriptor;71 GPULegacyRenderPipelineDescriptor m_descriptor; 72 72 }; 73 73 -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineState.cpp
r236954 r237368 31 31 namespace WebCore { 32 32 33 Ref<WebMetalRenderPipelineState> WebMetalRenderPipelineState::create(GPU RenderPipelineState&& state)33 Ref<WebMetalRenderPipelineState> WebMetalRenderPipelineState::create(GPULegacyRenderPipelineState&& state) 34 34 { 35 35 return adoptRef(*new WebMetalRenderPipelineState(WTFMove(state))); 36 36 } 37 37 38 WebMetalRenderPipelineState::WebMetalRenderPipelineState(GPU RenderPipelineState&& state)38 WebMetalRenderPipelineState::WebMetalRenderPipelineState(GPULegacyRenderPipelineState&& state) 39 39 : m_state { WTFMove(state) } 40 40 { -
trunk/Source/WebCore/html/canvas/WebMetalRenderPipelineState.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU RenderPipelineState.h"30 #include "GPULegacyRenderPipelineState.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 36 36 class WebMetalRenderPipelineState : public RefCounted<WebMetalRenderPipelineState> { 37 37 public: 38 static Ref<WebMetalRenderPipelineState> create(GPU RenderPipelineState&&);38 static Ref<WebMetalRenderPipelineState> create(GPULegacyRenderPipelineState&&); 39 39 40 40 String label() const; 41 41 void setLabel(const String&); 42 42 43 const GPU RenderPipelineState& state() const { return m_state; }43 const GPULegacyRenderPipelineState& state() const { return m_state; } 44 44 45 45 private: 46 explicit WebMetalRenderPipelineState(GPU RenderPipelineState&&);46 explicit WebMetalRenderPipelineState(GPULegacyRenderPipelineState&&); 47 47 48 GPU RenderPipelineState m_state;48 GPULegacyRenderPipelineState m_state; 49 49 }; 50 50 -
trunk/Source/WebCore/html/canvas/WebMetalRenderingContext.cpp
r236954 r237368 32 32 #include "Document.h" 33 33 #include "FrameView.h" 34 #include "GPU Device.h"34 #include "GPULegacyDevice.h" 35 35 #include "InspectorInstrumentation.h" 36 36 #include "WebMetalBuffer.h" … … 73 73 std::unique_ptr<WebMetalRenderingContext> WebMetalRenderingContext::create(CanvasBase& canvas) 74 74 { 75 GPU Device device;75 GPULegacyDevice device; 76 76 77 77 if (!device) { … … 88 88 } 89 89 90 WebMetalRenderingContext::WebMetalRenderingContext(CanvasBase& canvas, GPU Device&& device)90 WebMetalRenderingContext::WebMetalRenderingContext(CanvasBase& canvas, GPULegacyDevice&& device) 91 91 : GPUBasedCanvasRenderingContext(canvas) 92 92 , m_device(WTFMove(device)) … … 154 154 Ref<WebMetalLibrary> WebMetalRenderingContext::createLibrary(const String& sourceCode) 155 155 { 156 return WebMetalLibrary::create(GPUL ibrary { m_device, sourceCode }, sourceCode);156 return WebMetalLibrary::create(GPULegacyLibrary { m_device, sourceCode }, sourceCode); 157 157 } 158 158 159 159 Ref<WebMetalRenderPipelineState> WebMetalRenderingContext::createRenderPipelineState(WebMetalRenderPipelineDescriptor& descriptor) 160 160 { 161 return WebMetalRenderPipelineState::create(GPU RenderPipelineState { m_device, descriptor.descriptor() });161 return WebMetalRenderPipelineState::create(GPULegacyRenderPipelineState { m_device, descriptor.descriptor() }); 162 162 } 163 163 164 164 Ref<WebMetalDepthStencilState> WebMetalRenderingContext::createDepthStencilState(WebMetalDepthStencilDescriptor& descriptor) 165 165 { 166 return WebMetalDepthStencilState::create(GPU DepthStencilState { m_device, descriptor.descriptor() });166 return WebMetalDepthStencilState::create(GPULegacyDepthStencilState { m_device, descriptor.descriptor() }); 167 167 } 168 168 169 169 Ref<WebMetalComputePipelineState> WebMetalRenderingContext::createComputePipelineState(WebMetalFunction& function) 170 170 { 171 return WebMetalComputePipelineState::create(GPU ComputePipelineState { m_device, function.function() });171 return WebMetalComputePipelineState::create(GPULegacyComputePipelineState { m_device, function.function() }); 172 172 } 173 173 174 174 Ref<WebMetalCommandQueue> WebMetalRenderingContext::createCommandQueue() 175 175 { 176 return WebMetalCommandQueue::create(GPU CommandQueue { m_device });176 return WebMetalCommandQueue::create(GPULegacyCommandQueue { m_device }); 177 177 } 178 178 179 179 Ref<WebMetalDrawable> WebMetalRenderingContext::nextDrawable() 180 180 { 181 return WebMetalDrawable::create(GPU Drawable { m_device });181 return WebMetalDrawable::create(GPULegacyDrawable { m_device }); 182 182 } 183 183 184 184 RefPtr<WebMetalBuffer> WebMetalRenderingContext::createBuffer(JSC::ArrayBufferView& data) 185 185 { 186 return WebMetalBuffer::create(GPU Buffer { m_device, data });186 return WebMetalBuffer::create(GPULegacyBuffer { m_device, data }); 187 187 } 188 188 189 189 Ref<WebMetalTexture> WebMetalRenderingContext::createTexture(WebMetalTextureDescriptor& descriptor) 190 190 { 191 return WebMetalTexture::create(GPU Texture { m_device, descriptor.descriptor() });191 return WebMetalTexture::create(GPULegacyTexture { m_device, descriptor.descriptor() }); 192 192 } 193 193 -
trunk/Source/WebCore/html/canvas/WebMetalRenderingContext.h
r236954 r237368 30 30 31 31 #include "GPUBasedCanvasRenderingContext.h" 32 #include "GPU Device.h"32 #include "GPULegacyDevice.h" 33 33 34 34 namespace JSC { … … 67 67 Ref<WebMetalTexture> createTexture(WebMetalTextureDescriptor&); 68 68 69 const GPU Device& device() const { return m_device; }69 const GPULegacyDevice& device() const { return m_device; } 70 70 71 71 private: 72 WebMetalRenderingContext(CanvasBase&, GPU Device&&);72 WebMetalRenderingContext(CanvasBase&, GPULegacyDevice&&); 73 73 74 74 bool hasPendingActivity() const final; … … 86 86 PlatformLayer* platformLayer() const final; 87 87 88 GPU Device m_device;88 GPULegacyDevice m_device; 89 89 }; 90 90 -
trunk/Source/WebCore/html/canvas/WebMetalTexture.cpp
r236954 r237368 31 31 namespace WebCore { 32 32 33 Ref<WebMetalTexture> WebMetalTexture::create(GPU Texture&& texture)33 Ref<WebMetalTexture> WebMetalTexture::create(GPULegacyTexture&& texture) 34 34 { 35 35 return adoptRef(*new WebMetalTexture(WTFMove(texture))); 36 36 } 37 37 38 WebMetalTexture::WebMetalTexture(GPU Texture&& texture)38 WebMetalTexture::WebMetalTexture(GPULegacyTexture&& texture) 39 39 : m_texture { WTFMove(texture) } 40 40 { -
trunk/Source/WebCore/html/canvas/WebMetalTexture.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU Texture.h"30 #include "GPULegacyTexture.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 34 34 namespace WebCore { 35 35 36 class GPU TextureDescriptor;36 class GPULegacyTextureDescriptor; 37 37 38 38 class WebMetalTexture : public RefCounted<WebMetalTexture> { 39 39 public: 40 static Ref<WebMetalTexture> create(GPU Texture&&);40 static Ref<WebMetalTexture> create(GPULegacyTexture&&); 41 41 42 42 unsigned width() const { return m_texture.width(); } 43 43 unsigned height() const { return m_texture.height(); } 44 44 45 const GPU Texture& texture() const { return m_texture; }45 const GPULegacyTexture& texture() const { return m_texture; } 46 46 47 47 private: 48 explicit WebMetalTexture(GPU Texture&&);48 explicit WebMetalTexture(GPULegacyTexture&&); 49 49 50 GPU Texture m_texture;50 GPULegacyTexture m_texture; 51 51 }; 52 52 -
trunk/Source/WebCore/html/canvas/WebMetalTextureDescriptor.h
r236954 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU TextureDescriptor.h"30 #include "GPULegacyTextureDescriptor.h" 31 31 #include <wtf/Ref.h> 32 32 #include <wtf/RefCounted.h> … … 56 56 void setUsage(unsigned); 57 57 58 const GPU TextureDescriptor& descriptor() { return m_descriptor; }58 const GPULegacyTextureDescriptor& descriptor() { return m_descriptor; } 59 59 60 60 private: 61 61 WebMetalTextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped); 62 62 63 GPU TextureDescriptor m_descriptor;63 GPULegacyTextureDescriptor m_descriptor; 64 64 }; 65 65 -
trunk/Source/WebCore/platform/graphics/cocoa/WebMetalLayer.h
r237266 r237368 32 32 33 33 namespace WebCore { 34 class GPU Device;34 class GPULegacyDevice; 35 35 } 36 36 … … 40 40 @interface WebMetalLayer : CALayer { // FIXME: WebMetal - Disable WebMetal on iOS simulator? 41 41 #endif 42 WebCore::GPU Device* _context;42 WebCore::GPULegacyDevice* _context; 43 43 float _devicePixelRatio; 44 44 } 45 45 46 @property (nonatomic) WebCore::GPU Device* context;46 @property (nonatomic) WebCore::GPULegacyDevice* context; 47 47 48 - (id)initWithGPUDevice:(WebCore::GPU Device*)context;48 - (id)initWithGPUDevice:(WebCore::GPULegacyDevice*)context; 49 49 50 50 - (CGImageRef)copyImageSnapshotWithColorSpace:(CGColorSpaceRef)colorSpace; -
trunk/Source/WebCore/platform/graphics/cocoa/WebMetalLayer.mm
r236954 r237368 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Device.h"31 #import "GPULegacyDevice.h" 32 32 #import "GraphicsContextCG.h" 33 33 #import "GraphicsLayer.h" … … 39 39 @synthesize context=_context; 40 40 41 - (id)initWithGPUDevice:(WebCore::GPU Device*)context41 - (id)initWithGPUDevice:(WebCore::GPULegacyDevice*)context 42 42 { 43 43 self = [super init]; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyBuffer.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU Buffer.h"27 #include "GPULegacyBuffer.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 34 34 namespace WebCore { 35 35 36 GPU Buffer::~GPUBuffer()36 GPULegacyBuffer::~GPULegacyBuffer() 37 37 { 38 38 LOG(WebMetal, "GPUBuffer::~GPUBuffer()"); 39 39 } 40 40 41 unsigned GPU Buffer::length() const41 unsigned GPULegacyBuffer::length() const 42 42 { 43 43 return m_contents ? m_contents->byteLength() : 0; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyBuffer.h
r237367 r237368 40 40 namespace WebCore { 41 41 42 class GPU Device;42 class GPULegacyDevice; 43 43 44 class GPU Buffer {44 class GPULegacyBuffer { 45 45 public: 46 WEBCORE_EXPORT GPU Buffer(const GPUDevice&, const JSC::ArrayBufferView&);47 WEBCORE_EXPORT ~GPU Buffer();46 WEBCORE_EXPORT GPULegacyBuffer(const GPULegacyDevice&, const JSC::ArrayBufferView&); 47 WEBCORE_EXPORT ~GPULegacyBuffer(); 48 48 49 49 WEBCORE_EXPORT unsigned length() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyCommandBuffer.cpp
r237367 r237368 26 26 27 27 #include "config.h" 28 #include "GPU CommandBuffer.h"28 #include "GPULegacyCommandBuffer.h" 29 29 30 30 #if ENABLE(WEBMETAL) … … 34 34 namespace WebCore { 35 35 36 GPU CommandBuffer::~GPUCommandBuffer()36 GPULegacyCommandBuffer::~GPULegacyCommandBuffer() 37 37 { 38 38 LOG(WebMetal, "GPUCommandBuffer::~GPUCommandBuffer()"); -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyCommandBuffer.h
r237367 r237368 36 36 namespace WebCore { 37 37 38 class GPU CommandQueue;39 class GPU Drawable;38 class GPULegacyCommandQueue; 39 class GPULegacyDrawable; 40 40 41 class GPU CommandBuffer {41 class GPULegacyCommandBuffer { 42 42 public: 43 explicit GPU CommandBuffer(const GPUCommandQueue&, Function<void()>&& completedCallback);44 ~GPU CommandBuffer();43 explicit GPULegacyCommandBuffer(const GPULegacyCommandQueue&, Function<void()>&& completedCallback); 44 ~GPULegacyCommandBuffer(); 45 45 46 46 void commit() const; 47 void presentDrawable(GPU Drawable&) const;47 void presentDrawable(GPULegacyDrawable&) const; 48 48 49 49 #if USE(METAL) -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyCommandQueue.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU DepthStencilState.h"27 #include "GPULegacyCommandQueue.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU DepthStencilState::~GPUDepthStencilState()35 GPULegacyCommandQueue::~GPULegacyCommandQueue() 36 36 { 37 LOG(WebMetal, "GPU DepthStencilState::~GPUDepthStencilState()");37 LOG(WebMetal, "GPULegacyCommandQueue::~GPULegacyCommandQueue()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyCommandQueue.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU Device;36 class GPULegacyDevice; 37 37 38 class GPU CommandQueue {38 class GPULegacyCommandQueue { 39 39 public: 40 WEBCORE_EXPORT explicit GPU CommandQueue(const GPUDevice&);41 WEBCORE_EXPORT ~GPU CommandQueue();40 WEBCORE_EXPORT explicit GPULegacyCommandQueue(const GPULegacyDevice&); 41 WEBCORE_EXPORT ~GPULegacyCommandQueue(); 42 42 43 43 WEBCORE_EXPORT String label() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyComputeCommandEncoder.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU ComputeCommandEncoder.h"27 #include "GPULegacyComputeCommandEncoder.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU ComputeCommandEncoder::~GPUComputeCommandEncoder()35 GPULegacyComputeCommandEncoder::~GPULegacyComputeCommandEncoder() 36 36 { 37 LOG(WebMetal, "GPU ComputeCommandEncoder::~GPUComputeCommandEncoder()");37 LOG(WebMetal, "GPULegacyComputeCommandEncoder::~GPULegacyComputeCommandEncoder()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyComputeCommandEncoder.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU Buffer;37 class GPU CommandBuffer;38 class GPU ComputePipelineState;36 class GPULegacyBuffer; 37 class GPULegacyCommandBuffer; 38 class GPULegacyComputePipelineState; 39 39 40 struct GPU Size;40 struct GPULegacySize; 41 41 42 class GPU ComputeCommandEncoder {42 class GPULegacyComputeCommandEncoder { 43 43 public: 44 explicit GPU ComputeCommandEncoder(const GPUCommandBuffer&);45 ~GPU ComputeCommandEncoder();44 explicit GPULegacyComputeCommandEncoder(const GPULegacyCommandBuffer&); 45 ~GPULegacyComputeCommandEncoder(); 46 46 47 void setComputePipelineState(const GPU ComputePipelineState&) const;48 void setBuffer(const GPU Buffer&, unsigned, unsigned) const;49 void dispatch(GPU Size, GPUSize) const;47 void setComputePipelineState(const GPULegacyComputePipelineState&) const; 48 void setBuffer(const GPULegacyBuffer&, unsigned, unsigned) const; 49 void dispatch(GPULegacySize, GPULegacySize) const; 50 50 void endEncoding() const; 51 51 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyComputePipelineState.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU ComputePipelineState.h"27 #include "GPULegacyComputePipelineState.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU ComputePipelineState::~GPUComputePipelineState()35 GPULegacyComputePipelineState::~GPULegacyComputePipelineState() 36 36 { 37 LOG(WebMetal, "GPU ComputePipelineState::~GPUComputePipelineState()");37 LOG(WebMetal, "GPULegacyComputePipelineState::~GPULegacyComputePipelineState()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyComputePipelineState.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU Device;37 class GPU Function;36 class GPULegacyDevice; 37 class GPULegacyFunction; 38 38 39 class GPU ComputePipelineState {39 class GPULegacyComputePipelineState { 40 40 public: 41 GPU ComputePipelineState() = default;42 GPU ComputePipelineState(const GPUDevice&, const GPUFunction&);43 ~GPU ComputePipelineState();41 GPULegacyComputePipelineState() = default; 42 GPULegacyComputePipelineState(const GPULegacyDevice&, const GPULegacyFunction&); 43 ~GPULegacyComputePipelineState(); 44 44 45 45 #if USE(METAL) -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyDepthStencilDescriptor.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU DepthStencilDescriptor.h"27 #include "GPULegacyDepthStencilDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU DepthStencilDescriptor::~GPUDepthStencilDescriptor()35 GPULegacyDepthStencilDescriptor::~GPULegacyDepthStencilDescriptor() 36 36 { 37 37 LOG(WebMetal, "GPUDepthStencilDescriptor::~GPUDepthStencilDescriptor()"); -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyDepthStencilDescriptor.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 enum class GPU CompareFunction;36 enum class GPULegacyCompareFunction; 37 37 38 class GPU DepthStencilDescriptor {38 class GPULegacyDepthStencilDescriptor { 39 39 public: 40 GPU DepthStencilDescriptor();41 ~GPU DepthStencilDescriptor();40 GPULegacyDepthStencilDescriptor(); 41 ~GPULegacyDepthStencilDescriptor(); 42 42 43 43 bool depthWriteEnabled() const; 44 44 void setDepthWriteEnabled(bool) const; 45 45 46 GPU CompareFunction depthCompareFunction() const;47 void setDepthCompareFunction(GPU CompareFunction) const;46 GPULegacyCompareFunction depthCompareFunction() const; 47 void setDepthCompareFunction(GPULegacyCompareFunction) const; 48 48 49 49 #if USE(METAL) -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyDepthStencilState.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU DepthStencilState.h"27 #include "GPULegacyDepthStencilState.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU DepthStencilState::~GPUDepthStencilState()35 GPULegacyDepthStencilState::~GPULegacyDepthStencilState() 36 36 { 37 LOG(WebMetal, "GPU DepthStencilState::~GPUDepthStencilState()");37 LOG(WebMetal, "GPULegacyDepthStencilState::~GPULegacyDepthStencilState()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyDepthStencilState.h
r237367 r237368 35 35 namespace WebCore { 36 36 37 class GPU Device;38 class GPU DepthStencilDescriptor;37 class GPULegacyDevice; 38 class GPULegacyDepthStencilDescriptor; 39 39 40 class GPU DepthStencilState {40 class GPULegacyDepthStencilState { 41 41 public: 42 GPU DepthStencilState() = default;43 GPU DepthStencilState(const GPUDevice&, const GPUDepthStencilDescriptor&);44 ~GPU DepthStencilState();42 GPULegacyDepthStencilState() = default; 43 GPULegacyDepthStencilState(const GPULegacyDevice&, const GPULegacyDepthStencilDescriptor&); 44 ~GPULegacyDepthStencilState(); 45 45 46 46 String label() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyDevice.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU Device.h"27 #include "GPULegacyDevice.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU Device::~GPUDevice()35 GPULegacyDevice::~GPULegacyDevice() 36 36 { 37 LOG(WebMetal, "GPU Device::~GPUDevice()");37 LOG(WebMetal, "GPULegacyDevice::~GPULegacyDevice()"); 38 38 disconnect(); 39 39 } -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyDevice.h
r237367 r237368 37 37 namespace WebCore { 38 38 39 class GPU Device {39 class GPULegacyDevice { 40 40 public: 41 WEBCORE_EXPORT GPU Device();42 WEBCORE_EXPORT ~GPU Device();41 WEBCORE_EXPORT GPULegacyDevice(); 42 WEBCORE_EXPORT ~GPULegacyDevice(); 43 43 44 44 WEBCORE_EXPORT bool operator!() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyDrawable.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU CommandQueue.h"27 #include "GPULegacyDrawable.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU CommandQueue::~GPUCommandQueue()35 GPULegacyDrawable::~GPULegacyDrawable() 36 36 { 37 LOG(WebMetal, "GPU CommandQueue::~GPUCommandQueue()");37 LOG(WebMetal, "GPULegacyDrawable::~GPULegacyDrawable()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyDrawable.h
r237367 r237368 35 35 namespace WebCore { 36 36 37 class GPU Device;37 class GPULegacyDevice; 38 38 39 class GPU Drawable {39 class GPULegacyDrawable { 40 40 public: 41 explicit GPU Drawable(const GPUDevice&);42 ~GPU Drawable();41 explicit GPULegacyDrawable(const GPULegacyDevice&); 42 ~GPULegacyDrawable(); 43 43 44 44 void release(); -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyEnums.h
r237367 r237368 30 30 namespace WebCore { 31 31 32 enum class GPU CompareFunction {32 enum class GPULegacyCompareFunction { 33 33 Never = 0, 34 34 Less = 1, -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyFunction.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU Drawable.h"27 #include "GPULegacyFunction.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU Drawable::~GPUDrawable()35 GPULegacyFunction::~GPULegacyFunction() 36 36 { 37 LOG(WebMetal, "GPU Drawable::~GPUDrawable()");37 LOG(WebMetal, "GPULegacyFunction::~GPULegacyFunction()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyFunction.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPUL ibrary;36 class GPULegacyLibrary; 37 37 38 class GPU Function {38 class GPULegacyFunction { 39 39 public: 40 WEBCORE_EXPORT GPU Function(const GPULibrary&, const String& name);41 WEBCORE_EXPORT ~GPU Function();40 WEBCORE_EXPORT GPULegacyFunction(const GPULegacyLibrary&, const String& name); 41 WEBCORE_EXPORT ~GPULegacyFunction(); 42 42 43 43 bool operator!() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyLibrary.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU CommandQueue.h"27 #include "GPULegacyLibrary.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU CommandQueue::~GPUCommandQueue()35 GPULegacyLibrary::~GPULegacyLibrary() 36 36 { 37 LOG(WebMetal, "GPU CommandQueue::~GPUCommandQueue()");37 LOG(WebMetal, "GPULegacyLibrary::~GPULegacyLibrary()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyLibrary.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU Device;36 class GPULegacyDevice; 37 37 38 class GPUL ibrary {38 class GPULegacyLibrary { 39 39 public: 40 WEBCORE_EXPORT GPUL ibrary(const GPUDevice&, const String& sourceCode);41 WEBCORE_EXPORT ~GPUL ibrary();40 WEBCORE_EXPORT GPULegacyLibrary(const GPULegacyDevice&, const String& sourceCode); 41 WEBCORE_EXPORT ~GPULegacyLibrary(); 42 42 43 43 WEBCORE_EXPORT String label() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderCommandEncoder.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU DepthStencilState.h"27 #include "GPULegacyRenderCommandEncoder.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU DepthStencilState::~GPUDepthStencilState()35 GPULegacyRenderCommandEncoder::~GPULegacyRenderCommandEncoder() 36 36 { 37 LOG(WebMetal, "GPU DepthStencilState::~GPUDepthStencilState()");37 LOG(WebMetal, "GPULegacyRenderCommandEncoder::~GPULegacyRenderCommandEncoder()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderCommandEncoder.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU Buffer;37 class GPU CommandBuffer;38 class GPU DepthStencilState;39 class GPU RenderPassDescriptor;40 class GPU RenderPipelineState;36 class GPULegacyBuffer; 37 class GPULegacyCommandBuffer; 38 class GPULegacyDepthStencilState; 39 class GPULegacyRenderPassDescriptor; 40 class GPULegacyRenderPipelineState; 41 41 42 class GPU RenderCommandEncoder {42 class GPULegacyRenderCommandEncoder { 43 43 public: 44 GPU RenderCommandEncoder(const GPUCommandBuffer&, const GPURenderPassDescriptor&);45 ~GPU RenderCommandEncoder();44 GPULegacyRenderCommandEncoder(const GPULegacyCommandBuffer&, const GPULegacyRenderPassDescriptor&); 45 ~GPULegacyRenderCommandEncoder(); 46 46 47 void setRenderPipelineState(const GPU RenderPipelineState&) const;48 void setDepthStencilState(const GPU DepthStencilState&) const;49 void setVertexBuffer(const GPU Buffer&, unsigned offset, unsigned index) const;50 void setFragmentBuffer(const GPU Buffer&, unsigned offset, unsigned index) const;47 void setRenderPipelineState(const GPULegacyRenderPipelineState&) const; 48 void setDepthStencilState(const GPULegacyDepthStencilState&) const; 49 void setVertexBuffer(const GPULegacyBuffer&, unsigned offset, unsigned index) const; 50 void setFragmentBuffer(const GPULegacyBuffer&, unsigned offset, unsigned index) const; 51 51 void drawPrimitives(unsigned type, unsigned start, unsigned count) const; 52 52 void endEncoding() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPassAttachmentDescriptor.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU DepthStencilDescriptor.h"27 #include "GPULegacyRenderPassAttachmentDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #include "GPULegacyTexture.h" 31 32 #include "Logging.h" 32 33 33 34 namespace WebCore { 34 35 35 GPU DepthStencilDescriptor::~GPUDepthStencilDescriptor()36 GPULegacyRenderPassAttachmentDescriptor::~GPULegacyRenderPassAttachmentDescriptor() 36 37 { 37 LOG(WebMetal, "GPU DepthStencilDescriptor::~GPUDepthStencilDescriptor()");38 LOG(WebMetal, "GPULegacyRenderPassAttachmentDescriptor::~GPULegacyRenderPassAttachmentDescriptor()"); 38 39 } 39 40 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPassAttachmentDescriptor.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU Texture;36 class GPULegacyTexture; 37 37 38 class GPU RenderPassAttachmentDescriptor {38 class GPULegacyRenderPassAttachmentDescriptor { 39 39 public: 40 ~GPU RenderPassAttachmentDescriptor();40 ~GPULegacyRenderPassAttachmentDescriptor(); 41 41 42 42 unsigned loadAction() const; … … 46 46 void setStoreAction(unsigned) const; 47 47 48 void setTexture(const GPU Texture&) const;48 void setTexture(const GPULegacyTexture&) const; 49 49 50 50 #if USE(METAL) … … 54 54 #if USE(METAL) 55 55 protected: 56 explicit GPU RenderPassAttachmentDescriptor(MTLRenderPassAttachmentDescriptor *);56 explicit GPULegacyRenderPassAttachmentDescriptor(MTLRenderPassAttachmentDescriptor *); 57 57 58 58 private: -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPassColorAttachmentDescriptor.cpp
r237367 r237368 1 1 /* 2 2 * Copyright (C) 2017 Apple Inc. All rights reserved. 3 * Copyright (C) 2017 Yuichiro Kikura (y.kikura@gmail.com)4 3 * 5 4 * Redistribution and use in source and binary forms, with or without … … 26 25 27 26 #include "config.h" 28 #include "GPU CommandBuffer.h"27 #include "GPULegacyRenderPassColorAttachmentDescriptor.h" 29 28 30 29 #if ENABLE(WEBMETAL) … … 34 33 namespace WebCore { 35 34 36 GPU CommandBuffer::~GPUCommandBuffer()35 GPULegacyRenderPassColorAttachmentDescriptor::~GPULegacyRenderPassColorAttachmentDescriptor() 37 36 { 38 LOG(WebMetal, "GPU CommandBuffer::~GPUCommandBuffer()");37 LOG(WebMetal, "GPULegacyRenderPassColorAttachmentDescriptor::~GPULegacyRenderPassColorAttachmentDescriptor()"); 39 38 } 40 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPassColorAttachmentDescriptor.h
r237367 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU RenderPassAttachmentDescriptor.h"30 #include "GPULegacyRenderPassAttachmentDescriptor.h" 31 31 32 32 OBJC_CLASS MTLRenderPassColorAttachmentDescriptor; … … 34 34 namespace WebCore { 35 35 36 class GPU RenderPassColorAttachmentDescriptor : public GPURenderPassAttachmentDescriptor {36 class GPULegacyRenderPassColorAttachmentDescriptor : public GPULegacyRenderPassAttachmentDescriptor { 37 37 public: 38 38 #if USE(METAL) 39 GPU RenderPassColorAttachmentDescriptor(MTLRenderPassColorAttachmentDescriptor *);39 GPULegacyRenderPassColorAttachmentDescriptor(MTLRenderPassColorAttachmentDescriptor *); 40 40 #endif 41 ~GPU RenderPassColorAttachmentDescriptor();41 ~GPULegacyRenderPassColorAttachmentDescriptor(); 42 42 43 43 Vector<float> clearColor() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPassDepthAttachmentDescriptor.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU RenderPassDepthAttachmentDescriptor.h"27 #include "GPULegacyRenderPassDepthAttachmentDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU RenderPassDepthAttachmentDescriptor::~GPURenderPassDepthAttachmentDescriptor()35 GPULegacyRenderPassDepthAttachmentDescriptor::~GPULegacyRenderPassDepthAttachmentDescriptor() 36 36 { 37 37 LOG(WebMetal, "GPURenderPassDepthAttachmentDescriptor::~GPURenderPassDepthAttachmentDescriptor()"); -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPassDepthAttachmentDescriptor.h
r237367 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #include "GPU RenderPassAttachmentDescriptor.h"30 #include "GPULegacyRenderPassAttachmentDescriptor.h" 31 31 32 32 OBJC_CLASS MTLRenderPassDepthAttachmentDescriptor; … … 34 34 namespace WebCore { 35 35 36 class GPU RenderPassDepthAttachmentDescriptor : public GPURenderPassAttachmentDescriptor {36 class GPULegacyRenderPassDepthAttachmentDescriptor : public GPULegacyRenderPassAttachmentDescriptor { 37 37 public: 38 38 #if USE(METAL) 39 GPU RenderPassDepthAttachmentDescriptor(MTLRenderPassDepthAttachmentDescriptor *);39 GPULegacyRenderPassDepthAttachmentDescriptor(MTLRenderPassDepthAttachmentDescriptor *); 40 40 #endif 41 ~GPU RenderPassDepthAttachmentDescriptor();41 ~GPULegacyRenderPassDepthAttachmentDescriptor(); 42 42 43 43 double clearDepth() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPassDescriptor.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU RenderPassDescriptor.h"27 #include "GPULegacyRenderPassDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #include "GPU RenderPassDepthAttachmentDescriptor.h"31 #include "GPULegacyRenderPassDepthAttachmentDescriptor.h" 32 32 #include "Logging.h" 33 33 34 34 namespace WebCore { 35 35 36 GPU RenderPassDescriptor::~GPURenderPassDescriptor()36 GPULegacyRenderPassDescriptor::~GPULegacyRenderPassDescriptor() 37 37 { 38 38 LOG(WebMetal, "GPURenderPassDescriptor::~GPURenderPassDescriptor()"); -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPassDescriptor.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU RenderPassColorAttachmentDescriptor;37 class GPU RenderPassDepthAttachmentDescriptor;36 class GPULegacyRenderPassColorAttachmentDescriptor; 37 class GPULegacyRenderPassDepthAttachmentDescriptor; 38 38 39 class GPU RenderPassDescriptor {39 class GPULegacyRenderPassDescriptor { 40 40 public: 41 GPU RenderPassDescriptor();42 ~GPU RenderPassDescriptor();41 GPULegacyRenderPassDescriptor(); 42 ~GPULegacyRenderPassDescriptor(); 43 43 44 Vector<GPU RenderPassColorAttachmentDescriptor> colorAttachments() const;45 GPU RenderPassDepthAttachmentDescriptor depthAttachment() const;44 Vector<GPULegacyRenderPassColorAttachmentDescriptor> colorAttachments() const; 45 GPULegacyRenderPassDepthAttachmentDescriptor depthAttachment() const; 46 46 47 47 #if USE(METAL) -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPipelineColorAttachmentDescriptor.cpp
r237367 r237368 1 1 /* 2 2 * Copyright (C) 2017 Apple Inc. All rights reserved. 3 * Copyright (C) 2017 Yuichiro Kikura (y.kikura@gmail.com)4 3 * 5 4 * Redistribution and use in source and binary forms, with or without … … 26 25 27 26 #include "config.h" 28 #include "GPU CommandBuffer.h"27 #include "GPULegacyRenderPipelineColorAttachmentDescriptor.h" 29 28 30 29 #if ENABLE(WEBMETAL) … … 34 33 namespace WebCore { 35 34 36 GPU CommandBuffer::~GPUCommandBuffer()35 GPULegacyRenderPipelineColorAttachmentDescriptor::~GPULegacyRenderPipelineColorAttachmentDescriptor() 37 36 { 38 LOG(WebMetal, "GPU CommandBuffer::~GPUCommandBuffer()");37 LOG(WebMetal, "GPULegacyRenderPipelineColorAttachmentDescriptor::~GPULegacyRenderPipelineColorAttachmentDescriptor()"); 39 38 } 40 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPipelineColorAttachmentDescriptor.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU RenderPipelineColorAttachmentDescriptor {36 class GPULegacyRenderPipelineColorAttachmentDescriptor { 37 37 public: 38 38 #if USE(METAL) 39 GPU RenderPipelineColorAttachmentDescriptor(MTLRenderPipelineColorAttachmentDescriptor *);39 GPULegacyRenderPipelineColorAttachmentDescriptor(MTLRenderPipelineColorAttachmentDescriptor *); 40 40 #endif 41 ~GPU RenderPipelineColorAttachmentDescriptor();41 ~GPULegacyRenderPipelineColorAttachmentDescriptor(); 42 42 43 43 unsigned pixelFormat() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPipelineDescriptor.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU RenderPipelineDescriptor.h"27 #include "GPULegacyRenderPipelineDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU RenderPipelineDescriptor::~GPURenderPipelineDescriptor()35 GPULegacyRenderPipelineDescriptor::~GPULegacyRenderPipelineDescriptor() 36 36 { 37 37 LOG(WebMetal, "GPURenderPipelineDescriptor::~GPURenderPipelineDescriptor()"); -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPipelineDescriptor.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU Function;37 class GPU RenderPipelineColorAttachmentDescriptor;36 class GPULegacyFunction; 37 class GPULegacyRenderPipelineColorAttachmentDescriptor; 38 38 39 class GPU RenderPipelineDescriptor {39 class GPULegacyRenderPipelineDescriptor { 40 40 public: 41 GPU RenderPipelineDescriptor();42 ~GPU RenderPipelineDescriptor();41 GPULegacyRenderPipelineDescriptor(); 42 ~GPULegacyRenderPipelineDescriptor(); 43 43 44 void setVertexFunction(const GPU Function&) const;45 void setFragmentFunction(const GPU Function&) const;44 void setVertexFunction(const GPULegacyFunction&) const; 45 void setFragmentFunction(const GPULegacyFunction&) const; 46 46 47 47 unsigned depthAttachmentPixelFormat() const; 48 48 void setDepthAttachmentPixelFormat(unsigned) const; 49 49 50 Vector<GPU RenderPipelineColorAttachmentDescriptor> colorAttachments() const;50 Vector<GPULegacyRenderPipelineColorAttachmentDescriptor> colorAttachments() const; 51 51 52 52 void reset() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPipelineState.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU DepthStencilState.h"27 #include "GPULegacyRenderPipelineState.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU DepthStencilState::~GPUDepthStencilState()35 GPULegacyRenderPipelineState::~GPULegacyRenderPipelineState() 36 36 { 37 LOG(WebMetal, "GPU DepthStencilState::~GPUDepthStencilState()");37 LOG(WebMetal, "GPULegacyRenderPipelineState::~GPULegacyRenderPipelineState()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyRenderPipelineState.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU Device;37 class GPU RenderPipelineDescriptor;36 class GPULegacyDevice; 37 class GPULegacyRenderPipelineDescriptor; 38 38 39 class GPU RenderPipelineState {39 class GPULegacyRenderPipelineState { 40 40 public: 41 GPU RenderPipelineState() = default;42 GPU RenderPipelineState(const GPUDevice&, const GPURenderPipelineDescriptor&);43 ~GPU RenderPipelineState();41 GPULegacyRenderPipelineState() = default; 42 GPULegacyRenderPipelineState(const GPULegacyDevice&, const GPULegacyRenderPipelineDescriptor&); 43 ~GPULegacyRenderPipelineState(); 44 44 45 45 String label() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacySize.h
r237367 r237368 30 30 namespace WebCore { 31 31 32 struct GPU Size {32 struct GPULegacySize { 33 33 unsigned width; 34 34 unsigned height; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyTexture.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU Function.h"27 #include "GPULegacyTexture.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU Function::~GPUFunction()35 GPULegacyTexture::~GPULegacyTexture() 36 36 { 37 LOG(WebMetal, "GPU Function::~GPUFunction()");37 LOG(WebMetal, "GPULegacyTexture::~GPULegacyTexture()"); 38 38 } 39 39 -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyTexture.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU Device;37 class GPU Drawable;38 class GPU TextureDescriptor;36 class GPULegacyDevice; 37 class GPULegacyDrawable; 38 class GPULegacyTextureDescriptor; 39 39 40 class GPU Texture {40 class GPULegacyTexture { 41 41 public: 42 GPU Texture(const GPUDevice&, const GPUTextureDescriptor&);43 explicit GPU Texture(const GPUDrawable&);44 ~GPU Texture();42 GPULegacyTexture(const GPULegacyDevice&, const GPULegacyTextureDescriptor&); 43 explicit GPULegacyTexture(const GPULegacyDrawable&); 44 ~GPULegacyTexture(); 45 45 46 46 unsigned width() const; -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyTextureDescriptor.cpp
r237367 r237368 25 25 26 26 #include "config.h" 27 #include "GPU TextureDescriptor.h"27 #include "GPULegacyTextureDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 33 33 namespace WebCore { 34 34 35 GPU TextureDescriptor::~GPUTextureDescriptor()35 GPULegacyTextureDescriptor::~GPULegacyTextureDescriptor() 36 36 { 37 37 LOG(WebMetal, "GPUTextureDescriptor::~GPUTextureDescriptor()"); -
trunk/Source/WebCore/platform/graphics/gpu/GPULegacyTextureDescriptor.h
r237367 r237368 34 34 namespace WebCore { 35 35 36 class GPU TextureDescriptor {36 class GPULegacyTextureDescriptor { 37 37 public: 38 GPU TextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped);39 ~GPU TextureDescriptor();38 GPULegacyTextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped); 39 ~GPULegacyTextureDescriptor(); 40 40 41 41 unsigned width() const; -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyBufferMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU Buffer.h"27 #import "GPULegacyBuffer.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Device.h"31 #import "GPULegacyDevice.h" 32 32 #import "Logging.h" 33 33 #import <JavaScriptCore/ArrayBufferView.h> … … 38 38 namespace WebCore { 39 39 40 GPU Buffer::GPUBuffer(const GPUDevice& device, const JSC::ArrayBufferView& data)40 GPULegacyBuffer::GPULegacyBuffer(const GPULegacyDevice& device, const JSC::ArrayBufferView& data) 41 41 { 42 42 LOG(WebMetal, "GPUBuffer::GPUBuffer()"); -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyCommandBufferMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU CommandBuffer.h"27 #import "GPULegacyCommandBuffer.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU CommandQueue.h"32 #import "GPU Drawable.h"31 #import "GPULegacyCommandQueue.h" 32 #import "GPULegacyDrawable.h" 33 33 #import "Logging.h" 34 34 #import <Metal/Metal.h> … … 38 38 namespace WebCore { 39 39 40 GPU CommandBuffer::GPUCommandBuffer(const GPUCommandQueue& queue, Function<void()>&& completedCallback)40 GPULegacyCommandBuffer::GPULegacyCommandBuffer(const GPULegacyCommandQueue& queue, Function<void()>&& completedCallback) 41 41 : m_metal { [queue.metal() commandBuffer] } 42 42 { … … 48 48 } 49 49 50 void GPU CommandBuffer::presentDrawable(GPUDrawable& drawable) const50 void GPULegacyCommandBuffer::presentDrawable(GPULegacyDrawable& drawable) const 51 51 { 52 52 if (!m_metal || !drawable.metal()) … … 57 57 } 58 58 59 void GPU CommandBuffer::commit() const59 void GPULegacyCommandBuffer::commit() const 60 60 { 61 61 [m_metal commit]; -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyCommandQueueMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU CommandQueue.h"27 #import "GPULegacyCommandQueue.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Device.h"31 #import "GPULegacyDevice.h" 32 32 #import "Logging.h" 33 33 #import <Metal/Metal.h> … … 39 39 static NSString * const commandQueueLabelPrefix = @"com.apple.WebKit."; 40 40 41 GPU CommandQueue::GPUCommandQueue(const GPUDevice& device)41 GPULegacyCommandQueue::GPULegacyCommandQueue(const GPULegacyDevice& device) 42 42 : m_metal { adoptNS([device.metal() newCommandQueue]) } 43 43 { 44 LOG(WebMetal, "GPU CommandQueue::GPUCommandQueue()");44 LOG(WebMetal, "GPULegacyCommandQueue::GPULegacyCommandQueue()"); 45 45 46 46 [m_metal setLabel:commandQueueDefaultLabel]; 47 47 } 48 48 49 String GPU CommandQueue::label() const49 String GPULegacyCommandQueue::label() const 50 50 { 51 51 if (!m_metal) … … 61 61 } 62 62 63 void GPU CommandQueue::setLabel(const String& label) const63 void GPULegacyCommandQueue::setLabel(const String& label) const 64 64 { 65 65 if (label.isEmpty()) -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyComputeCommandEncoderMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU ComputeCommandEncoder.h"27 #import "GPULegacyComputeCommandEncoder.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Buffer.h"32 #import "GPU CommandBuffer.h"33 #import "GPU ComputePipelineState.h"34 #import "GPU Size.h"31 #import "GPULegacyBuffer.h" 32 #import "GPULegacyCommandBuffer.h" 33 #import "GPULegacyComputePipelineState.h" 34 #import "GPULegacySize.h" 35 35 #import "Logging.h" 36 36 #import <Metal/Metal.h> … … 38 38 namespace WebCore { 39 39 40 static inline MTLSize MTLSizeMake(GPU Size size)40 static inline MTLSize MTLSizeMake(GPULegacySize size) 41 41 { 42 42 return { size.width, size.height, size.depth }; 43 43 } 44 44 45 GPU ComputeCommandEncoder::GPUComputeCommandEncoder(const GPUCommandBuffer& buffer)45 GPULegacyComputeCommandEncoder::GPULegacyComputeCommandEncoder(const GPULegacyCommandBuffer& buffer) 46 46 : m_metal { [buffer.metal() computeCommandEncoder] } 47 47 { 48 LOG(WebMetal, "GPU ComputeCommandEncoder::GPUComputeCommandEncoder()");48 LOG(WebMetal, "GPULegacyComputeCommandEncoder::GPULegacyComputeCommandEncoder()"); 49 49 } 50 50 51 void GPU ComputeCommandEncoder::setComputePipelineState(const GPUComputePipelineState& computePipelineState) const51 void GPULegacyComputeCommandEncoder::setComputePipelineState(const GPULegacyComputePipelineState& computePipelineState) const 52 52 { 53 53 if (!computePipelineState.metal()) … … 57 57 } 58 58 59 void GPU ComputeCommandEncoder::setBuffer(const GPUBuffer& buffer, unsigned offset, unsigned index) const59 void GPULegacyComputeCommandEncoder::setBuffer(const GPULegacyBuffer& buffer, unsigned offset, unsigned index) const 60 60 { 61 61 if (!buffer.metal()) … … 65 65 } 66 66 67 void GPU ComputeCommandEncoder::dispatch(GPUSize threadgroupsPerGrid, GPUSize threadsPerThreadgroup) const67 void GPULegacyComputeCommandEncoder::dispatch(GPULegacySize threadgroupsPerGrid, GPULegacySize threadsPerThreadgroup) const 68 68 { 69 69 [m_metal dispatchThreadgroups:MTLSizeMake(threadgroupsPerGrid) threadsPerThreadgroup:MTLSizeMake(threadsPerThreadgroup)]; 70 70 } 71 71 72 void GPU ComputeCommandEncoder::endEncoding() const72 void GPULegacyComputeCommandEncoder::endEncoding() const 73 73 { 74 74 [m_metal endEncoding]; -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyComputePipelineStateMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU ComputePipelineState.h"27 #import "GPULegacyComputePipelineState.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Device.h"32 #import "GPU Function.h"31 #import "GPULegacyDevice.h" 32 #import "GPULegacyFunction.h" 33 33 #import "Logging.h" 34 34 #import <Metal/Metal.h> … … 36 36 namespace WebCore { 37 37 38 GPU ComputePipelineState::GPUComputePipelineState(const GPUDevice& device, const GPUFunction& function)38 GPULegacyComputePipelineState::GPULegacyComputePipelineState(const GPULegacyDevice& device, const GPULegacyFunction& function) 39 39 { 40 LOG(WebMetal, "GPU ComputePipelineState::GPUComputePipelineState()");40 LOG(WebMetal, "GPULegacyComputePipelineState::GPULegacyComputePipelineState()"); 41 41 42 42 if (!function.metal()) -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyDepthStencilDescriptorMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU DepthStencilDescriptor.h"27 #import "GPULegacyDepthStencilDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Enums.h"31 #import "GPULegacyEnums.h" 32 32 #import "Logging.h" 33 33 #import <Metal/Metal.h> … … 35 35 namespace WebCore { 36 36 37 GPU DepthStencilDescriptor::GPUDepthStencilDescriptor()37 GPULegacyDepthStencilDescriptor::GPULegacyDepthStencilDescriptor() 38 38 : m_metal { adoptNS([MTLDepthStencilDescriptor new]) } 39 39 { … … 41 41 } 42 42 43 bool GPU DepthStencilDescriptor::depthWriteEnabled() const43 bool GPULegacyDepthStencilDescriptor::depthWriteEnabled() const 44 44 { 45 45 return [m_metal isDepthWriteEnabled]; 46 46 } 47 47 48 void GPU DepthStencilDescriptor::setDepthWriteEnabled(bool newDepthWriteEnabled) const48 void GPULegacyDepthStencilDescriptor::setDepthWriteEnabled(bool newDepthWriteEnabled) const 49 49 { 50 50 [m_metal setDepthWriteEnabled:newDepthWriteEnabled]; 51 51 } 52 52 53 GPU CompareFunction GPUDepthStencilDescriptor::depthCompareFunction() const53 GPULegacyCompareFunction GPULegacyDepthStencilDescriptor::depthCompareFunction() const 54 54 { 55 return static_cast<GPU CompareFunction>([m_metal depthCompareFunction]);55 return static_cast<GPULegacyCompareFunction>([m_metal depthCompareFunction]); 56 56 } 57 57 58 void GPU DepthStencilDescriptor::setDepthCompareFunction(GPUCompareFunction newFunction) const58 void GPULegacyDepthStencilDescriptor::setDepthCompareFunction(GPULegacyCompareFunction newFunction) const 59 59 { 60 60 // FIXME: Do we need to check if the function value is in range before casting to MTLCompareFunction? -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyDepthStencilStateMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU DepthStencilState.h"27 #import "GPULegacyDepthStencilState.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU DepthStencilDescriptor.h"32 #import "GPU Device.h"31 #import "GPULegacyDepthStencilDescriptor.h" 32 #import "GPULegacyDevice.h" 33 33 #import "Logging.h" 34 34 #import <Metal/Metal.h> … … 37 37 namespace WebCore { 38 38 39 GPU DepthStencilState::GPUDepthStencilState(const GPUDevice& device, const GPUDepthStencilDescriptor& descriptor)39 GPULegacyDepthStencilState::GPULegacyDepthStencilState(const GPULegacyDevice& device, const GPULegacyDepthStencilDescriptor& descriptor) 40 40 : m_metal { adoptNS([device.metal() newDepthStencilStateWithDescriptor:descriptor.metal()]) } 41 41 { 42 LOG(WebMetal, "GPU DepthStencilState::GPUDepthStencilState()");42 LOG(WebMetal, "GPULegacyDepthStencilState::GPULegacyDepthStencilState()"); 43 43 } 44 44 45 String GPU DepthStencilState::label() const45 String GPULegacyDepthStencilState::label() const 46 46 { 47 47 if (!m_metal) … … 51 51 } 52 52 53 void GPU DepthStencilState::setLabel(const String&) const53 void GPULegacyDepthStencilState::setLabel(const String&) const 54 54 { 55 55 // FIXME: The MTLDepthStencilState protocol does not allow setting the label. -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyDeviceMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU Device.h"27 #import "GPULegacyDevice.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 37 37 namespace WebCore { 38 38 39 GPU Device::GPUDevice()39 GPULegacyDevice::GPULegacyDevice() 40 40 : m_metal { adoptNS(MTLCreateSystemDefaultDevice()) } 41 41 { 42 42 43 43 if (!m_metal) { 44 LOG(WebMetal, "GPU Device::GPUDevice -- could not create the device. This usually means Metal is not available on this hardware.");44 LOG(WebMetal, "GPULegacyDevice::GPULegacyDevice -- could not create the device. This usually means Metal is not available on this hardware."); 45 45 return; 46 46 } 47 47 48 LOG(WebMetal, "GPU Device::GPUDevice Metal device is %p", m_metal.get());48 LOG(WebMetal, "GPULegacyDevice::GPULegacyDevice Metal device is %p", m_metal.get()); 49 49 50 50 BEGIN_BLOCK_OBJC_EXCEPTIONS … … 62 62 } 63 63 64 void GPU Device::disconnect()64 void GPULegacyDevice::disconnect() 65 65 { 66 66 m_layer.get().context = nullptr; … … 68 68 } 69 69 70 void GPU Device::reshape(int width, int height) const70 void GPULegacyDevice::reshape(int width, int height) const 71 71 { 72 72 [m_layer setBounds:CGRectMake(0, 0, width, height)]; … … 76 76 } 77 77 78 CALayer *GPU Device::platformLayer() const78 CALayer *GPULegacyDevice::platformLayer() const 79 79 { 80 80 return m_layer.get(); 81 81 } 82 82 83 bool GPU Device::operator!() const83 bool GPULegacyDevice::operator!() const 84 84 { 85 85 return !m_metal; -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyDrawableMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU Drawable.h"27 #import "GPULegacyDrawable.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Device.h"31 #import "GPULegacyDevice.h" 32 32 #import "Logging.h" 33 33 #import "WebMetalLayer.h" … … 35 35 namespace WebCore { 36 36 37 GPU Drawable::GPUDrawable(const GPUDevice& device)37 GPULegacyDrawable::GPULegacyDrawable(const GPULegacyDevice& device) 38 38 : m_metal { [device.layer() nextDrawable] } 39 39 { 40 LOG(WebMetal, "GPU Drawable::GPUDrawable()");40 LOG(WebMetal, "GPULegacyDrawable::GPULegacyDrawable()"); 41 41 } 42 42 43 void GPU Drawable::release()43 void GPULegacyDrawable::release() 44 44 { 45 LOG(WebMetal, "GPU Drawable::release()");45 LOG(WebMetal, "GPULegacyDrawable::release()"); 46 46 m_metal = nil; 47 47 } 48 48 49 MTLDrawable *GPU Drawable::metal() const49 MTLDrawable *GPULegacyDrawable::metal() const 50 50 { 51 51 return m_metal.get(); 52 52 } 53 53 54 MTLTexture *GPU Drawable::texture() const54 MTLTexture *GPULegacyDrawable::texture() const 55 55 { 56 56 if (![m_metal conformsToProtocol:@protocol(CAMetalDrawable)]) { -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyFunctionMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU Function.h"27 #import "GPULegacyFunction.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPUL ibrary.h"31 #import "GPULegacyLibrary.h" 32 32 #import "Logging.h" 33 33 #import <Metal/Metal.h> … … 36 36 namespace WebCore { 37 37 38 GPU Function::GPUFunction(const GPULibrary& library, const String& name)38 GPULegacyFunction::GPULegacyFunction(const GPULegacyLibrary& library, const String& name) 39 39 : m_metal { adoptNS([library.metal() newFunctionWithName:name]) } 40 40 { 41 LOG(WebMetal, "GPU Function::GPUFunction()");41 LOG(WebMetal, "GPULegacyFunction::GPULegacyFunction()"); 42 42 } 43 43 44 String GPU Function::name() const44 String GPULegacyFunction::name() const 45 45 { 46 46 if (!m_metal) … … 50 50 } 51 51 52 bool GPU Function::operator!() const52 bool GPULegacyFunction::operator!() const 53 53 { 54 54 return !m_metal; -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyLibraryMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPUL ibrary.h"27 #import "GPULegacyLibrary.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Device.h"31 #import "GPULegacyDevice.h" 32 32 #import "Logging.h" 33 33 #import <Metal/Metal.h> … … 37 37 namespace WebCore { 38 38 39 GPUL ibrary::GPULibrary(const GPUDevice& device, const String& sourceCode)39 GPULegacyLibrary::GPULegacyLibrary(const GPULegacyDevice& device, const String& sourceCode) 40 40 { 41 LOG(WebMetal, "GPUL ibrary::GPULibrary()");41 LOG(WebMetal, "GPULegacyLibrary::GPULegacyLibrary()"); 42 42 43 43 if (!device.metal()) … … 50 50 } 51 51 52 String GPUL ibrary::label() const52 String GPULegacyLibrary::label() const 53 53 { 54 54 if (!m_metal) … … 58 58 } 59 59 60 void GPUL ibrary::setLabel(const String& label) const60 void GPULegacyLibrary::setLabel(const String& label) const 61 61 { 62 62 ASSERT(m_metal); … … 64 64 } 65 65 66 Vector<String> GPUL ibrary::functionNames() const66 Vector<String> GPULegacyLibrary::functionNames() const 67 67 { 68 68 auto array = [m_metal functionNames]; -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyRenderCommandEncoderMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU RenderCommandEncoder.h"27 #import "GPULegacyRenderCommandEncoder.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Buffer.h"32 #import "GPU CommandBuffer.h"33 #import "GPU DepthStencilState.h"34 #import "GPU RenderPassDescriptor.h"35 #import "GPU RenderPipelineState.h"31 #import "GPULegacyBuffer.h" 32 #import "GPULegacyCommandBuffer.h" 33 #import "GPULegacyDepthStencilState.h" 34 #import "GPULegacyRenderPassDescriptor.h" 35 #import "GPULegacyRenderPipelineState.h" 36 36 #import "Logging.h" 37 37 #import <Metal/Metal.h> … … 39 39 namespace WebCore { 40 40 41 GPU RenderCommandEncoder::GPURenderCommandEncoder(const GPUCommandBuffer& buffer, const GPURenderPassDescriptor& descriptor)41 GPULegacyRenderCommandEncoder::GPULegacyRenderCommandEncoder(const GPULegacyCommandBuffer& buffer, const GPULegacyRenderPassDescriptor& descriptor) 42 42 { 43 LOG(WebMetal, "GPU RenderCommandEncoder::GPURenderCommandEncoder()");43 LOG(WebMetal, "GPULegacyRenderCommandEncoder::GPULegacyRenderCommandEncoder()"); 44 44 45 45 if (!descriptor.metal()) … … 49 49 } 50 50 51 void GPU RenderCommandEncoder::setRenderPipelineState(const GPURenderPipelineState& renderPipelineState) const51 void GPULegacyRenderCommandEncoder::setRenderPipelineState(const GPULegacyRenderPipelineState& renderPipelineState) const 52 52 { 53 53 if (!renderPipelineState.metal()) … … 57 57 } 58 58 59 void GPU RenderCommandEncoder::setDepthStencilState(const GPUDepthStencilState& depthStencilState) const59 void GPULegacyRenderCommandEncoder::setDepthStencilState(const GPULegacyDepthStencilState& depthStencilState) const 60 60 { 61 61 if (!depthStencilState.metal()) … … 65 65 } 66 66 67 void GPU RenderCommandEncoder::setVertexBuffer(const GPUBuffer& buffer, unsigned offset, unsigned index) const67 void GPULegacyRenderCommandEncoder::setVertexBuffer(const GPULegacyBuffer& buffer, unsigned offset, unsigned index) const 68 68 { 69 69 if (!buffer.metal()) … … 73 73 } 74 74 75 void GPU RenderCommandEncoder::setFragmentBuffer(const GPUBuffer& buffer, unsigned offset, unsigned index) const75 void GPULegacyRenderCommandEncoder::setFragmentBuffer(const GPULegacyBuffer& buffer, unsigned offset, unsigned index) const 76 76 { 77 77 if (!buffer.metal()) … … 81 81 } 82 82 83 void GPU RenderCommandEncoder::drawPrimitives(unsigned type, unsigned start, unsigned count) const83 void GPULegacyRenderCommandEncoder::drawPrimitives(unsigned type, unsigned start, unsigned count) const 84 84 { 85 85 // FIXME: Why do we need a specially optimized path for count of 0? … … 90 90 } 91 91 92 void GPU RenderCommandEncoder::endEncoding() const92 void GPULegacyRenderCommandEncoder::endEncoding() const 93 93 { 94 94 [m_metal endEncoding]; -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyRenderPassAttachmentDescriptorMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU RenderPassAttachmentDescriptor.h"27 #import "GPULegacyRenderPassAttachmentDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Texture.h"31 #import "GPULegacyTexture.h" 32 32 #import "Logging.h" 33 33 … … 36 36 namespace WebCore { 37 37 38 GPU RenderPassAttachmentDescriptor::GPURenderPassAttachmentDescriptor(MTLRenderPassAttachmentDescriptor *metal)38 GPULegacyRenderPassAttachmentDescriptor::GPULegacyRenderPassAttachmentDescriptor(MTLRenderPassAttachmentDescriptor *metal) 39 39 : m_metal { metal } 40 40 { 41 LOG(WebMetal, "GPU RenderPassAttachmentDescriptor::GPURenderPassAttachmentDescriptor()");41 LOG(WebMetal, "GPULegacyRenderPassAttachmentDescriptor::GPULegacyRenderPassAttachmentDescriptor()"); 42 42 } 43 43 44 unsigned GPU RenderPassAttachmentDescriptor::loadAction() const44 unsigned GPULegacyRenderPassAttachmentDescriptor::loadAction() const 45 45 { 46 46 return [m_metal loadAction]; 47 47 } 48 48 49 void GPU RenderPassAttachmentDescriptor::setLoadAction(unsigned newLoadAction) const49 void GPULegacyRenderPassAttachmentDescriptor::setLoadAction(unsigned newLoadAction) const 50 50 { 51 51 // FIXME: Should this range check for legitimate values? … … 53 53 } 54 54 55 unsigned GPU RenderPassAttachmentDescriptor::storeAction() const55 unsigned GPULegacyRenderPassAttachmentDescriptor::storeAction() const 56 56 { 57 57 return [m_metal storeAction]; 58 58 } 59 59 60 void GPU RenderPassAttachmentDescriptor::setStoreAction(unsigned newStoreAction) const60 void GPULegacyRenderPassAttachmentDescriptor::setStoreAction(unsigned newStoreAction) const 61 61 { 62 62 // FIXME: Should this range check for legitimate values? … … 64 64 } 65 65 66 void GPU RenderPassAttachmentDescriptor::setTexture(const GPUTexture& texture) const66 void GPULegacyRenderPassAttachmentDescriptor::setTexture(const GPULegacyTexture& texture) const 67 67 { 68 68 [m_metal setTexture:texture.metal()]; 69 69 } 70 70 71 MTLRenderPassAttachmentDescriptor *GPU RenderPassAttachmentDescriptor::metal() const71 MTLRenderPassAttachmentDescriptor *GPULegacyRenderPassAttachmentDescriptor::metal() const 72 72 { 73 73 return m_metal.get(); -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyRenderPassColorAttachmentDescriptorMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU RenderPassColorAttachmentDescriptor.h"27 #import "GPULegacyRenderPassColorAttachmentDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 36 36 namespace WebCore { 37 37 38 GPU RenderPassColorAttachmentDescriptor::GPURenderPassColorAttachmentDescriptor(MTLRenderPassColorAttachmentDescriptor *metal)39 : GPU RenderPassAttachmentDescriptor { metal }38 GPULegacyRenderPassColorAttachmentDescriptor::GPULegacyRenderPassColorAttachmentDescriptor(MTLRenderPassColorAttachmentDescriptor *metal) 39 : GPULegacyRenderPassAttachmentDescriptor { metal } 40 40 { 41 LOG(WebMetal, "GPU RenderPassColorAttachmentDescriptor::GPURenderPassColorAttachmentDescriptor()");41 LOG(WebMetal, "GPULegacyRenderPassColorAttachmentDescriptor::GPULegacyRenderPassColorAttachmentDescriptor()"); 42 42 } 43 43 44 Vector<float> GPU RenderPassColorAttachmentDescriptor::clearColor() const44 Vector<float> GPULegacyRenderPassColorAttachmentDescriptor::clearColor() const 45 45 { 46 46 auto* metal = this->metal(); … … 52 52 } 53 53 54 void GPU RenderPassColorAttachmentDescriptor::setClearColor(const Vector<float>& newClearColor) const54 void GPULegacyRenderPassColorAttachmentDescriptor::setClearColor(const Vector<float>& newClearColor) const 55 55 { 56 56 if (newClearColor.size() != 4) … … 60 60 } 61 61 62 MTLRenderPassColorAttachmentDescriptor *GPU RenderPassColorAttachmentDescriptor::metal() const62 MTLRenderPassColorAttachmentDescriptor *GPULegacyRenderPassColorAttachmentDescriptor::metal() const 63 63 { 64 return static_cast<MTLRenderPassColorAttachmentDescriptor *>(GPU RenderPassAttachmentDescriptor::metal());64 return static_cast<MTLRenderPassColorAttachmentDescriptor *>(GPULegacyRenderPassAttachmentDescriptor::metal()); 65 65 } 66 66 -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyRenderPassDepthAttachmentDescriptorMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU RenderPassDepthAttachmentDescriptor.h"27 #import "GPULegacyRenderPassDepthAttachmentDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU RenderPassAttachmentDescriptor.h"31 #import "GPULegacyRenderPassAttachmentDescriptor.h" 32 32 #import "Logging.h" 33 33 #import <Metal/Metal.h> … … 35 35 namespace WebCore { 36 36 37 GPU RenderPassDepthAttachmentDescriptor::GPURenderPassDepthAttachmentDescriptor(MTLRenderPassDepthAttachmentDescriptor *metal)38 : GPU RenderPassAttachmentDescriptor { metal }37 GPULegacyRenderPassDepthAttachmentDescriptor::GPULegacyRenderPassDepthAttachmentDescriptor(MTLRenderPassDepthAttachmentDescriptor *metal) 38 : GPULegacyRenderPassAttachmentDescriptor { metal } 39 39 { 40 40 LOG(WebMetal, "GPURenderPassDepthAttachmentDescriptor::GPURenderPassDepthAttachmentDescriptor()"); 41 41 } 42 42 43 double GPU RenderPassDepthAttachmentDescriptor::clearDepth() const43 double GPULegacyRenderPassDepthAttachmentDescriptor::clearDepth() const 44 44 { 45 45 auto* metal = this->metal(); … … 50 50 } 51 51 52 void GPU RenderPassDepthAttachmentDescriptor::setClearDepth(double newClearDepth) const52 void GPULegacyRenderPassDepthAttachmentDescriptor::setClearDepth(double newClearDepth) const 53 53 { 54 54 [metal() setClearDepth:newClearDepth]; 55 55 } 56 56 57 MTLRenderPassDepthAttachmentDescriptor *GPU RenderPassDepthAttachmentDescriptor::metal() const57 MTLRenderPassDepthAttachmentDescriptor *GPULegacyRenderPassDepthAttachmentDescriptor::metal() const 58 58 { 59 return static_cast<MTLRenderPassDepthAttachmentDescriptor *>(GPU RenderPassAttachmentDescriptor::metal());59 return static_cast<MTLRenderPassDepthAttachmentDescriptor *>(GPULegacyRenderPassAttachmentDescriptor::metal()); 60 60 } 61 61 -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyRenderPassDescriptorMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU RenderPassDescriptor.h"27 #import "GPULegacyRenderPassDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU RenderPassColorAttachmentDescriptor.h"32 #import "GPU RenderPassDepthAttachmentDescriptor.h"31 #import "GPULegacyRenderPassColorAttachmentDescriptor.h" 32 #import "GPULegacyRenderPassDepthAttachmentDescriptor.h" 33 33 #import "Logging.h" 34 34 #import <Metal/Metal.h> … … 37 37 namespace WebCore { 38 38 39 GPU RenderPassDescriptor::GPURenderPassDescriptor()39 GPULegacyRenderPassDescriptor::GPULegacyRenderPassDescriptor() 40 40 : m_metal { adoptNS([MTLRenderPassDescriptor new]) } 41 41 { … … 43 43 } 44 44 45 Vector<GPU RenderPassColorAttachmentDescriptor> GPURenderPassDescriptor::colorAttachments() const45 Vector<GPULegacyRenderPassColorAttachmentDescriptor> GPULegacyRenderPassDescriptor::colorAttachments() const 46 46 { 47 47 if (!m_metal) … … 52 52 } 53 53 54 GPU RenderPassDepthAttachmentDescriptor GPURenderPassDescriptor::depthAttachment() const54 GPULegacyRenderPassDepthAttachmentDescriptor GPULegacyRenderPassDescriptor::depthAttachment() const 55 55 { 56 56 return [m_metal depthAttachment]; 57 57 } 58 58 59 MTLRenderPassDescriptor *GPU RenderPassDescriptor::metal() const59 MTLRenderPassDescriptor *GPULegacyRenderPassDescriptor::metal() const 60 60 { 61 61 return m_metal.get(); -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyRenderPipelineColorAttachmentDescriptorMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU RenderPipelineColorAttachmentDescriptor.h"27 #import "GPULegacyRenderPipelineColorAttachmentDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 34 34 namespace WebCore { 35 35 36 GPU RenderPipelineColorAttachmentDescriptor::GPURenderPipelineColorAttachmentDescriptor(MTLRenderPipelineColorAttachmentDescriptor *metal)36 GPULegacyRenderPipelineColorAttachmentDescriptor::GPULegacyRenderPipelineColorAttachmentDescriptor(MTLRenderPipelineColorAttachmentDescriptor *metal) 37 37 : m_metal { metal } 38 38 { 39 LOG(WebMetal, "GPU RenderPipelineColorAttachmentDescriptor::GPURenderPipelineColorAttachmentDescriptor()");39 LOG(WebMetal, "GPULegacyRenderPipelineColorAttachmentDescriptor::GPULegacyRenderPipelineColorAttachmentDescriptor()"); 40 40 } 41 41 42 unsigned GPU RenderPipelineColorAttachmentDescriptor::pixelFormat() const42 unsigned GPULegacyRenderPipelineColorAttachmentDescriptor::pixelFormat() const 43 43 { 44 44 return [m_metal pixelFormat]; 45 45 } 46 46 47 void GPU RenderPipelineColorAttachmentDescriptor::setPixelFormat(unsigned newPixelFormat) const47 void GPULegacyRenderPipelineColorAttachmentDescriptor::setPixelFormat(unsigned newPixelFormat) const 48 48 { 49 49 // FIXME: Should we check for enumeration values out of range before calling the method? … … 51 51 } 52 52 53 MTLRenderPipelineColorAttachmentDescriptor *GPU RenderPipelineColorAttachmentDescriptor::metal() const53 MTLRenderPipelineColorAttachmentDescriptor *GPULegacyRenderPipelineColorAttachmentDescriptor::metal() const 54 54 { 55 55 return m_metal.get(); -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyRenderPipelineDescriptorMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU RenderPipelineDescriptor.h"27 #import "GPULegacyRenderPipelineDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Function.h"32 #import "GPU RenderPipelineColorAttachmentDescriptor.h"31 #import "GPULegacyFunction.h" 32 #import "GPULegacyRenderPipelineColorAttachmentDescriptor.h" 33 33 #import "Logging.h" 34 34 #import <Metal/Metal.h> … … 37 37 namespace WebCore { 38 38 39 GPU RenderPipelineDescriptor::GPURenderPipelineDescriptor()39 GPULegacyRenderPipelineDescriptor::GPULegacyRenderPipelineDescriptor() 40 40 : m_metal { adoptNS([MTLRenderPipelineDescriptor new]) } 41 41 { … … 43 43 } 44 44 45 unsigned GPU RenderPipelineDescriptor::depthAttachmentPixelFormat() const45 unsigned GPULegacyRenderPipelineDescriptor::depthAttachmentPixelFormat() const 46 46 { 47 47 return [m_metal depthAttachmentPixelFormat]; 48 48 } 49 49 50 void GPU RenderPipelineDescriptor::setDepthAttachmentPixelFormat(unsigned newPixelFormat) const50 void GPULegacyRenderPipelineDescriptor::setDepthAttachmentPixelFormat(unsigned newPixelFormat) const 51 51 { 52 52 [m_metal setDepthAttachmentPixelFormat:static_cast<MTLPixelFormat>(newPixelFormat)]; 53 53 } 54 54 55 void GPU RenderPipelineDescriptor::setVertexFunction(const GPUFunction& newFunction) const55 void GPULegacyRenderPipelineDescriptor::setVertexFunction(const GPULegacyFunction& newFunction) const 56 56 { 57 57 [m_metal setVertexFunction:newFunction.metal()]; 58 58 } 59 59 60 void GPU RenderPipelineDescriptor::setFragmentFunction(const GPUFunction& newFunction) const60 void GPULegacyRenderPipelineDescriptor::setFragmentFunction(const GPULegacyFunction& newFunction) const 61 61 { 62 62 [m_metal setFragmentFunction:newFunction.metal()]; 63 63 } 64 64 65 Vector<GPU RenderPipelineColorAttachmentDescriptor> GPURenderPipelineDescriptor::colorAttachments() const65 Vector<GPULegacyRenderPipelineColorAttachmentDescriptor> GPULegacyRenderPipelineDescriptor::colorAttachments() const 66 66 { 67 67 // FIXME: Why is it always OK to return exactly one attachment? … … 69 69 } 70 70 71 void GPU RenderPipelineDescriptor::reset() const71 void GPULegacyRenderPipelineDescriptor::reset() const 72 72 { 73 73 [m_metal reset]; 74 74 } 75 75 76 MTLRenderPipelineDescriptor *GPU RenderPipelineDescriptor::metal() const76 MTLRenderPipelineDescriptor *GPULegacyRenderPipelineDescriptor::metal() const 77 77 { 78 78 return m_metal.get(); -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyRenderPipelineStateMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU RenderPipelineState.h"27 #import "GPULegacyRenderPipelineState.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Device.h"32 #import "GPU RenderPipelineDescriptor.h"31 #import "GPULegacyDevice.h" 32 #import "GPULegacyRenderPipelineDescriptor.h" 33 33 #import "Logging.h" 34 34 #import <Metal/Metal.h> … … 37 37 namespace WebCore { 38 38 39 GPU RenderPipelineState::GPURenderPipelineState(const GPUDevice& device, const GPURenderPipelineDescriptor& descriptor)39 GPULegacyRenderPipelineState::GPULegacyRenderPipelineState(const GPULegacyDevice& device, const GPULegacyRenderPipelineDescriptor& descriptor) 40 40 : m_metal { adoptNS([device.metal() newRenderPipelineStateWithDescriptor:descriptor.metal() error:nil]) } 41 41 { 42 LOG(WebMetal, "GPU RenderPipelineState::GPURenderPipelineState()");42 LOG(WebMetal, "GPULegacyRenderPipelineState::GPULegacyRenderPipelineState()"); 43 43 } 44 44 45 String GPU RenderPipelineState::label() const45 String GPULegacyRenderPipelineState::label() const 46 46 { 47 47 if (!m_metal) … … 50 50 } 51 51 52 void GPU RenderPipelineState::setLabel(const String&) const52 void GPULegacyRenderPipelineState::setLabel(const String&) const 53 53 { 54 54 // FIXME: The MTLRenderPipelineState protocol does not allow setting the label. … … 57 57 } 58 58 59 MTLRenderPipelineState *GPU RenderPipelineState::metal() const59 MTLRenderPipelineState *GPULegacyRenderPipelineState::metal() const 60 60 { 61 61 return m_metal.get(); -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyTextureDescriptorMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU TextureDescriptor.h"27 #import "GPULegacyTextureDescriptor.h" 28 28 29 29 #if ENABLE(WEBMETAL) … … 34 34 namespace WebCore { 35 35 36 GPU TextureDescriptor::GPUTextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped)36 GPULegacyTextureDescriptor::GPULegacyTextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped) 37 37 : m_metal { [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:static_cast<MTLPixelFormat>(pixelFormat) width:width height:height mipmapped:mipmapped] } 38 38 { … … 40 40 } 41 41 42 unsigned GPU TextureDescriptor::width() const42 unsigned GPULegacyTextureDescriptor::width() const 43 43 { 44 44 return [m_metal width]; 45 45 } 46 46 47 void GPU TextureDescriptor::setWidth(unsigned newWidth) const47 void GPULegacyTextureDescriptor::setWidth(unsigned newWidth) const 48 48 { 49 49 ASSERT(m_metal); … … 51 51 } 52 52 53 unsigned GPU TextureDescriptor::height() const53 unsigned GPULegacyTextureDescriptor::height() const 54 54 { 55 55 return [m_metal height]; 56 56 } 57 57 58 void GPU TextureDescriptor::setHeight(unsigned newHeight) const58 void GPULegacyTextureDescriptor::setHeight(unsigned newHeight) const 59 59 { 60 60 ASSERT(m_metal); … … 62 62 } 63 63 64 unsigned GPU TextureDescriptor::sampleCount() const64 unsigned GPULegacyTextureDescriptor::sampleCount() const 65 65 { 66 66 return [m_metal sampleCount]; 67 67 } 68 68 69 void GPU TextureDescriptor::setSampleCount(unsigned newSampleCount) const69 void GPULegacyTextureDescriptor::setSampleCount(unsigned newSampleCount) const 70 70 { 71 71 ASSERT(m_metal); … … 73 73 } 74 74 75 unsigned GPU TextureDescriptor::textureType() const75 unsigned GPULegacyTextureDescriptor::textureType() const 76 76 { 77 77 return [m_metal textureType]; 78 78 } 79 79 80 void GPU TextureDescriptor::setTextureType(unsigned newTextureType) const80 void GPULegacyTextureDescriptor::setTextureType(unsigned newTextureType) const 81 81 { 82 82 ASSERT(m_metal); … … 84 84 } 85 85 86 unsigned GPU TextureDescriptor::storageMode() const86 unsigned GPULegacyTextureDescriptor::storageMode() const 87 87 { 88 88 return [m_metal storageMode]; 89 89 } 90 90 91 void GPU TextureDescriptor::setStorageMode(unsigned newStorageMode) const91 void GPULegacyTextureDescriptor::setStorageMode(unsigned newStorageMode) const 92 92 { 93 93 [m_metal setStorageMode:static_cast<MTLStorageMode>(newStorageMode)]; 94 94 } 95 95 96 unsigned GPU TextureDescriptor::usage() const96 unsigned GPULegacyTextureDescriptor::usage() const 97 97 { 98 98 return [m_metal usage]; 99 99 } 100 100 101 void GPU TextureDescriptor::setUsage(unsigned newUsage) const101 void GPULegacyTextureDescriptor::setUsage(unsigned newUsage) const 102 102 { 103 103 ASSERT(m_metal); … … 105 105 } 106 106 107 MTLTextureDescriptor *GPU TextureDescriptor::metal() const107 MTLTextureDescriptor *GPULegacyTextureDescriptor::metal() const 108 108 { 109 109 return m_metal.get(); -
trunk/Source/WebCore/platform/graphics/metal/GPULegacyTextureMetal.mm
r237367 r237368 25 25 26 26 #import "config.h" 27 #import "GPU Texture.h"27 #import "GPULegacyTexture.h" 28 28 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Device.h"32 #import "GPU Drawable.h"33 #import "GPU TextureDescriptor.h"31 #import "GPULegacyDevice.h" 32 #import "GPULegacyDrawable.h" 33 #import "GPULegacyTextureDescriptor.h" 34 34 #import "Logging.h" 35 35 #import <Metal/Metal.h> … … 37 37 namespace WebCore { 38 38 39 GPU Texture::GPUTexture(const GPUDevice& device, const GPUTextureDescriptor& descriptor)39 GPULegacyTexture::GPULegacyTexture(const GPULegacyDevice& device, const GPULegacyTextureDescriptor& descriptor) 40 40 { 41 41 LOG(WebMetal, "GPUTexture::GPUTexture()"); … … 47 47 } 48 48 49 GPU Texture::GPUTexture(const GPUDrawable& other)49 GPULegacyTexture::GPULegacyTexture(const GPULegacyDrawable& other) 50 50 : m_metal { other.texture() } 51 51 { … … 53 53 } 54 54 55 unsigned GPU Texture::width() const55 unsigned GPULegacyTexture::width() const 56 56 { 57 57 return m_metal.get().width; 58 58 } 59 59 60 unsigned GPU Texture::height() const60 unsigned GPULegacyTexture::height() const 61 61 { 62 62 return m_metal.get().height; 63 63 } 64 64 65 MTLTexture *GPU Texture::metal() const65 MTLTexture *GPULegacyTexture::metal() const 66 66 { 67 67 return m_metal.get(); -
trunk/Tools/ChangeLog
r237355 r237368 1 2018-10-23 Justin Fan <justin_fan@apple.com> 2 3 [WebGPU] Rename old GPU* implementation files to GPULegacy* for WebMetal 4 https://bugs.webkit.org/show_bug.cgi?id=190817 5 6 Reviewed by Dean Jackson. 7 8 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: 9 * TestWebKitAPI/Tests/WebCore/mac/GPULegacyBuffer.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUBuffer.mm. 10 (TestWebKitAPI::TEST_F): 11 * TestWebKitAPI/Tests/WebCore/mac/GPULegacyCommandQueue.mm: Copied from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUFunction.mm. 12 (TestWebKitAPI::TEST_F): 13 * TestWebKitAPI/Tests/WebCore/mac/GPULegacyDevice.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUDevice.mm. 14 (TestWebKitAPI::TEST_F): 15 * TestWebKitAPI/Tests/WebCore/mac/GPULegacyFunction.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUFunction.mm. 16 (TestWebKitAPI::TEST_F): 17 * TestWebKitAPI/Tests/WebCore/mac/GPULegacyLibrary.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPULibrary.mm. 18 (TestWebKitAPI::TEST_F): 19 * TestWebKitAPI/Tests/WebCore/mac/GPULegacyTest.h: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUTest.h. 20 1 21 2018-10-23 Chris Dumez <cdumez@apple.com> 2 22 -
trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
r237118 r237368 125 125 2EFF06D71D8AF34A0004BB30 /* WKWebViewCandidateTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2EFF06D61D8AF34A0004BB30 /* WKWebViewCandidateTests.mm */; }; 126 126 315118101DB1AE4000176304 /* ExtendedColor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3151180F1DB1ADD500176304 /* ExtendedColor.cpp */; }; 127 315231CA1EB3B3C700A22A16 /* GPU CommandQueue.mm in Sources */ = {isa = PBXBuildFile; fileRef = 315231C91EB3B3C700A22A16 /* GPUCommandQueue.mm */; };128 3162AE9C1E6F2FF5000E4DBC /* GPU Device.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3162AE9B1E6F2FCE000E4DBC /* GPUDevice.mm */; };129 316BDBA11E70D71B00DE0D5A /* GPUL ibrary.mm in Sources */ = {isa = PBXBuildFile; fileRef = 316BDBA01E70D6D800DE0D5A /* GPULibrary.mm */; };130 316BDBA41E70EF6800DE0D5A /* GPU Function.mm in Sources */ = {isa = PBXBuildFile; fileRef = 316BDBA31E70EF5D00DE0D5A /* GPUFunction.mm */; };131 316BDBAC1E7207F100DE0D5A /* GPU Buffer.mm in Sources */ = {isa = PBXBuildFile; fileRef = 316BDBAB1E7207F100DE0D5A /* GPUBuffer.mm */; };127 315231CA1EB3B3C700A22A16 /* GPULegacyCommandQueue.mm in Sources */ = {isa = PBXBuildFile; fileRef = 315231C91EB3B3C700A22A16 /* GPULegacyCommandQueue.mm */; }; 128 3162AE9C1E6F2FF5000E4DBC /* GPULegacyDevice.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3162AE9B1E6F2FCE000E4DBC /* GPULegacyDevice.mm */; }; 129 316BDBA11E70D71B00DE0D5A /* GPULegacyLibrary.mm in Sources */ = {isa = PBXBuildFile; fileRef = 316BDBA01E70D6D800DE0D5A /* GPULegacyLibrary.mm */; }; 130 316BDBA41E70EF6800DE0D5A /* GPULegacyFunction.mm in Sources */ = {isa = PBXBuildFile; fileRef = 316BDBA31E70EF5D00DE0D5A /* GPULegacyFunction.mm */; }; 131 316BDBAC1E7207F100DE0D5A /* GPULegacyBuffer.mm in Sources */ = {isa = PBXBuildFile; fileRef = 316BDBAB1E7207F100DE0D5A /* GPULegacyBuffer.mm */; }; 132 132 33BE5AF9137B5AAE00705813 /* MouseMoveAfterCrash_Bundle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 33BE5AF8137B5AAE00705813 /* MouseMoveAfterCrash_Bundle.cpp */; }; 133 133 33DC8912141955FE00747EF7 /* simple-iframe.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = 33DC890E1419539300747EF7 /* simple-iframe.html */; }; … … 1382 1382 2EFF06D61D8AF34A0004BB30 /* WKWebViewCandidateTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKWebViewCandidateTests.mm; sourceTree = "<group>"; }; 1383 1383 3151180F1DB1ADD500176304 /* ExtendedColor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ExtendedColor.cpp; sourceTree = "<group>"; }; 1384 315231C91EB3B3C700A22A16 /* GPU CommandQueue.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUCommandQueue.mm; sourceTree = "<group>"; };1385 3162AE9B1E6F2FCE000E4DBC /* GPU Device.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUDevice.mm; sourceTree = "<group>"; };1386 316BDBA01E70D6D800DE0D5A /* GPUL ibrary.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULibrary.mm; sourceTree = "<group>"; };1387 316BDBA21E70DEE500DE0D5A /* GPU Test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPUTest.h; sourceTree = "<group>"; };1388 316BDBA31E70EF5D00DE0D5A /* GPU Function.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPUFunction.mm; sourceTree = "<group>"; };1389 316BDBAB1E7207F100DE0D5A /* GPU Buffer.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; path = GPUBuffer.mm; sourceTree = "<group>"; };1384 315231C91EB3B3C700A22A16 /* GPULegacyCommandQueue.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyCommandQueue.mm; sourceTree = "<group>"; }; 1385 3162AE9B1E6F2FCE000E4DBC /* GPULegacyDevice.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyDevice.mm; sourceTree = "<group>"; }; 1386 316BDBA01E70D6D800DE0D5A /* GPULegacyLibrary.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyLibrary.mm; sourceTree = "<group>"; }; 1387 316BDBA21E70DEE500DE0D5A /* GPULegacyTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPULegacyTest.h; sourceTree = "<group>"; }; 1388 316BDBA31E70EF5D00DE0D5A /* GPULegacyFunction.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GPULegacyFunction.mm; sourceTree = "<group>"; }; 1389 316BDBAB1E7207F100DE0D5A /* GPULegacyBuffer.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; path = GPULegacyBuffer.mm; sourceTree = "<group>"; }; 1390 1390 333B9CE11277F23100FEFCE3 /* PreventEmptyUserAgent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PreventEmptyUserAgent.cpp; sourceTree = "<group>"; }; 1391 1391 33BE5AF4137B5A6C00705813 /* MouseMoveAfterCrash.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MouseMoveAfterCrash.cpp; sourceTree = "<group>"; }; … … 2506 2506 isa = PBXGroup; 2507 2507 children = ( 2508 316BDBAB1E7207F100DE0D5A /* GPU Buffer.mm */,2509 315231C91EB3B3C700A22A16 /* GPU CommandQueue.mm */,2510 3162AE9B1E6F2FCE000E4DBC /* GPU Device.mm */,2511 316BDBA31E70EF5D00DE0D5A /* GPU Function.mm */,2512 316BDBA01E70D6D800DE0D5A /* GPUL ibrary.mm */,2513 316BDBA21E70DEE500DE0D5A /* GPU Test.h */,2508 316BDBAB1E7207F100DE0D5A /* GPULegacyBuffer.mm */, 2509 315231C91EB3B3C700A22A16 /* GPULegacyCommandQueue.mm */, 2510 3162AE9B1E6F2FCE000E4DBC /* GPULegacyDevice.mm */, 2511 316BDBA31E70EF5D00DE0D5A /* GPULegacyFunction.mm */, 2512 316BDBA01E70D6D800DE0D5A /* GPULegacyLibrary.mm */, 2513 316BDBA21E70DEE500DE0D5A /* GPULegacyTest.h */, 2514 2514 ); 2515 2515 path = mac; … … 3850 3850 07CE1CF31F06A7E000BF89F5 /* GetUserMediaNavigation.mm in Sources */, 3851 3851 07E499911F9E56DF002F1EF3 /* GetUserMediaReprompt.mm in Sources */, 3852 316BDBAC1E7207F100DE0D5A /* GPU Buffer.mm in Sources */,3853 315231CA1EB3B3C700A22A16 /* GPU CommandQueue.mm in Sources */,3854 3162AE9C1E6F2FF5000E4DBC /* GPU Device.mm in Sources */,3855 316BDBA41E70EF6800DE0D5A /* GPU Function.mm in Sources */,3856 316BDBA11E70D71B00DE0D5A /* GPUL ibrary.mm in Sources */,3852 316BDBAC1E7207F100DE0D5A /* GPULegacyBuffer.mm in Sources */, 3853 315231CA1EB3B3C700A22A16 /* GPULegacyCommandQueue.mm in Sources */, 3854 3162AE9C1E6F2FF5000E4DBC /* GPULegacyDevice.mm in Sources */, 3855 316BDBA41E70EF6800DE0D5A /* GPULegacyFunction.mm in Sources */, 3856 316BDBA11E70D71B00DE0D5A /* GPULegacyLibrary.mm in Sources */, 3857 3857 8E4A85371E1D1AB200F53B0F /* GridPosition.cpp in Sources */, 3858 3858 7CCE7EFA1A411AE600447C4C /* HitTestResultNodeHandle.cpp in Sources */, -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPULegacyBuffer.mm
r237367 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #import "GPU Test.h"30 #import "GPULegacyTest.h" 31 31 #import <JavaScriptCore/ArrayBuffer.h> 32 32 #import <JavaScriptCore/ArrayBufferView.h> … … 36 36 #import <JavaScriptCore/TypedArrays.h> 37 37 #import <Metal/Metal.h> 38 #import <WebCore/GPU Buffer.h>39 #import <WebCore/GPU Device.h>38 #import <WebCore/GPULegacyBuffer.h> 39 #import <WebCore/GPULegacyDevice.h> 40 40 41 41 using namespace WebCore; … … 43 43 namespace TestWebKitAPI { 44 44 45 TEST_F(GPU , BufferCreate)45 TEST_F(GPULegacy, BufferCreate) 46 46 { 47 GPU Device device;47 GPULegacyDevice device; 48 48 49 49 // Not all hardware supports Metal, so it is possible … … 60 60 memset(data, 1, bufferView->byteLength()); 61 61 62 GPU Buffer buffer { device, bufferView.get() };62 GPULegacyBuffer buffer { device, bufferView.get() }; 63 63 EXPECT_EQ(1024U, buffer.length()); 64 64 -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPULegacyCommandQueue.mm
r237367 r237368 24 24 */ 25 25 26 27 26 #import "config.h" 28 27 29 28 #if ENABLE(WEBMETAL) 30 29 31 #import "GPU Test.h"30 #import "GPULegacyTest.h" 32 31 #import "PlatformUtilities.h" 33 32 #import <Metal/Metal.h> 34 #import <WebCore/GPUDevice.h> 35 #import <WebCore/GPUFunction.h> 36 #import <WebCore/GPULibrary.h> 33 #import <WebCore/GPULegacyCommandQueue.h> 34 #import <WebCore/GPULegacyDevice.h> 37 35 38 36 using namespace WebCore; … … 40 38 namespace TestWebKitAPI { 41 39 42 TEST_F(GPU , FunctionAccessByName)40 TEST_F(GPULegacy, CommandQueueCreate) 43 41 { 44 GPU Device device;42 GPULegacyDevice device; 45 43 46 44 // Not all hardware supports Metal, so it is possible … … 50 48 return; 51 49 52 EXPECT_NOT_NULL(device.metal()); 50 GPULegacyCommandQueue commandQueue { device }; 51 EXPECT_WK_STREQ("", commandQueue.label()); 53 52 54 GPULibrary library { device, librarySourceCode() };53 EXPECT_NOT_NULL(commandQueue.metal()); 55 54 56 GPUFunction vertexFunction { library, "vertex_main"_s }; 57 EXPECT_NOT_NULL(vertexFunction.metal()); 58 EXPECT_WK_STREQ("vertex_main", vertexFunction.name()); 55 // If you haven't set a label, we just use the prefix. 56 EXPECT_STREQ("com.apple.WebKit", commandQueue.metal().label.UTF8String); 59 57 60 GPUFunction fragmentFunction { library, "fragment_main"_s }; 61 EXPECT_NOT_NULL(fragmentFunction.metal()); 62 EXPECT_WK_STREQ("fragment_main", fragmentFunction.name()); 58 commandQueue.setLabel("this.is.a.test"_s); 63 59 64 GPUFunction nonexistentFunction { library, "name_that_is_not_in_library"_s }; 65 EXPECT_NULL(nonexistentFunction.metal()); 60 // The WebKit API doesn't prefix. 61 EXPECT_WK_STREQ("this.is.a.test", commandQueue.label()); 62 63 // But the underlying Metal object label will have one. 64 EXPECT_STREQ("com.apple.WebKit.this.is.a.test", commandQueue.metal().label.UTF8String); 66 65 } 67 66 -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPULegacyDevice.mm
r237367 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #import "GPU Test.h"30 #import "GPULegacyTest.h" 31 31 #import <Metal/Metal.h> 32 #import <WebCore/GPU Device.h>32 #import <WebCore/GPULegacyDevice.h> 33 33 34 34 using namespace WebCore; … … 36 36 namespace TestWebKitAPI { 37 37 38 TEST_F(GPU , DeviceCreate)38 TEST_F(GPULegacy, DeviceCreate) 39 39 { 40 GPU Device device;40 GPULegacyDevice device; 41 41 42 42 // Not all hardware supports Metal, so it is possible -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPULegacyFunction.mm
r237367 r237368 29 29 #if ENABLE(WEBMETAL) 30 30 31 #import "GPU Test.h"31 #import "GPULegacyTest.h" 32 32 #import "PlatformUtilities.h" 33 33 #import <Metal/Metal.h> 34 #import <WebCore/GPU Device.h>35 #import <WebCore/GPU Function.h>36 #import <WebCore/GPUL ibrary.h>34 #import <WebCore/GPULegacyDevice.h> 35 #import <WebCore/GPULegacyFunction.h> 36 #import <WebCore/GPULegacyLibrary.h> 37 37 38 38 using namespace WebCore; … … 40 40 namespace TestWebKitAPI { 41 41 42 TEST_F(GPU , FunctionAccessByName)42 TEST_F(GPULegacy, FunctionAccessByName) 43 43 { 44 GPU Device device;44 GPULegacyDevice device; 45 45 46 46 // Not all hardware supports Metal, so it is possible … … 52 52 EXPECT_NOT_NULL(device.metal()); 53 53 54 GPUL ibrary library { device, librarySourceCode() };54 GPULegacyLibrary library { device, librarySourceCode() }; 55 55 56 GPU Function vertexFunction { library, "vertex_main"_s };56 GPULegacyFunction vertexFunction { library, "vertex_main"_s }; 57 57 EXPECT_NOT_NULL(vertexFunction.metal()); 58 58 EXPECT_WK_STREQ("vertex_main", vertexFunction.name()); 59 59 60 GPU Function fragmentFunction { library, "fragment_main"_s };60 GPULegacyFunction fragmentFunction { library, "fragment_main"_s }; 61 61 EXPECT_NOT_NULL(fragmentFunction.metal()); 62 62 EXPECT_WK_STREQ("fragment_main", fragmentFunction.name()); 63 63 64 GPU Function nonexistentFunction { library, "name_that_is_not_in_library"_s };64 GPULegacyFunction nonexistentFunction { library, "name_that_is_not_in_library"_s }; 65 65 EXPECT_NULL(nonexistentFunction.metal()); 66 66 } -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPULegacyLibrary.mm
r237367 r237368 28 28 #if ENABLE(WEBMETAL) 29 29 30 #import "GPU Test.h"30 #import "GPULegacyTest.h" 31 31 #import "PlatformUtilities.h" 32 32 #import <Metal/Metal.h> 33 #import <WebCore/GPU Device.h>34 #import <WebCore/GPUL ibrary.h>33 #import <WebCore/GPULegacyDevice.h> 34 #import <WebCore/GPULegacyLibrary.h> 35 35 36 36 using namespace WebCore; … … 38 38 namespace TestWebKitAPI { 39 39 40 TEST_F(GPU , LibraryCreate)40 TEST_F(GPULegacy, LibraryCreate) 41 41 { 42 GPU Device device;42 GPULegacyDevice device; 43 43 44 44 // Not all hardware supports Metal, so it is possible … … 50 50 EXPECT_NOT_NULL(device.metal()); 51 51 52 GPUL ibrary library { device, librarySourceCode() };52 GPULegacyLibrary library { device, librarySourceCode() }; 53 53 EXPECT_NOT_NULL(library.metal()); 54 54 } 55 55 56 TEST_F(GPU , LibrarySetLabel)56 TEST_F(GPULegacy, LibrarySetLabel) 57 57 { 58 GPU Device device;58 GPULegacyDevice device; 59 59 if (!device) 60 60 return; 61 61 62 GPUL ibrary library { device, librarySourceCode() };62 GPULegacyLibrary library { device, librarySourceCode() }; 63 63 EXPECT_NOT_NULL(library.metal()); 64 64 … … 67 67 } 68 68 69 TEST_F(GPU , LibraryFunctionNames)69 TEST_F(GPULegacy, LibraryFunctionNames) 70 70 { 71 GPU Device device;71 GPULegacyDevice device; 72 72 if (!device) 73 73 return; 74 74 75 GPUL ibrary library { device, librarySourceCode() };75 GPULegacyLibrary library { device, librarySourceCode() }; 76 76 EXPECT_NOT_NULL(library.metal()); 77 77 -
trunk/Tools/TestWebKitAPI/Tests/WebCore/mac/GPULegacyTest.h
r237367 r237368 32 32 namespace TestWebKitAPI { 33 33 34 class GPU : public testing::Test {34 class GPULegacy : public testing::Test { 35 35 public: 36 36 void SetUp() final
Note: See TracChangeset
for help on using the changeset viewer.