Title: [291805] trunk/Source/WebGPU
Revision
291805
Author
mmaxfi...@apple.com
Date
2022-03-24 11:08:02 -0700 (Thu, 24 Mar 2022)

Log Message

[WebGPU] Fix the watchOS build
https://bugs.webkit.org/show_bug.cgi?id=238337

Unreviewed.

* WebGPU/Texture.mm:
(WebGPU::Device::createTexture):

Modified Paths

Diff

Modified: trunk/Source/WebGPU/ChangeLog (291804 => 291805)


--- trunk/Source/WebGPU/ChangeLog	2022-03-24 17:57:50 UTC (rev 291804)
+++ trunk/Source/WebGPU/ChangeLog	2022-03-24 18:08:02 UTC (rev 291805)
@@ -1,3 +1,13 @@
+2022-03-24  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+        [WebGPU] Fix the watchOS build
+        https://bugs.webkit.org/show_bug.cgi?id=238337
+
+        Unreviewed.
+
+        * WebGPU/Texture.mm:
+        (WebGPU::Device::createTexture):
+
 2022-03-23  Myles C. Maxfield  <mmaxfi...@apple.com>
 
         [WebGPU] Fix the non-macOS build

Modified: trunk/Source/WebGPU/WebGPU/Texture.mm (291804 => 291805)


--- trunk/Source/WebGPU/WebGPU/Texture.mm	2022-03-24 17:57:50 UTC (rev 291804)
+++ trunk/Source/WebGPU/WebGPU/Texture.mm	2022-03-24 18:08:02 UTC (rev 291805)
@@ -1349,9 +1349,13 @@
         textureDescriptor.height = descriptor.size.height;
         if (descriptor.size.depthOrArrayLayers > 1) {
             textureDescriptor.arrayLength = descriptor.size.depthOrArrayLayers;
-            if (descriptor.sampleCount > 1)
+            if (descriptor.sampleCount > 1) {
+#if PLATFORM(WATCHOS)
+                return nullptr;
+#else
                 textureDescriptor.textureType = MTLTextureType2DMultisampleArray;
-            else
+#endif
+            } else
                 textureDescriptor.textureType = MTLTextureType2DArray;
         } else {
             if (descriptor.sampleCount > 1)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to