Title: [292479] trunk/Source/WebGPU
- Revision
- 292479
- Author
- mmaxfi...@apple.com
- Date
- 2022-04-06 11:08:52 -0700 (Wed, 06 Apr 2022)
Log Message
[WebGPU] Fix the tvOS build
https://bugs.webkit.org/show_bug.cgi?id=238881
<rdar://problem/91351306>
Unreviewed.
MTLTextureType2DMultisampleArray is not available on tvOS.
* WebGPU/Texture.mm:
(WebGPU::Device::createTexture):
(WebGPU::Texture::createView):
Modified Paths
Diff
Modified: trunk/Source/WebGPU/ChangeLog (292478 => 292479)
--- trunk/Source/WebGPU/ChangeLog 2022-04-06 17:57:35 UTC (rev 292478)
+++ trunk/Source/WebGPU/ChangeLog 2022-04-06 18:08:52 UTC (rev 292479)
@@ -1,3 +1,17 @@
+2022-04-06 Myles C. Maxfield <mmaxfi...@apple.com>
+
+ [WebGPU] Fix the tvOS build
+ https://bugs.webkit.org/show_bug.cgi?id=238881
+ <rdar://problem/91351306>
+
+ Unreviewed.
+
+ MTLTextureType2DMultisampleArray is not available on tvOS.
+
+ * WebGPU/Texture.mm:
+ (WebGPU::Device::createTexture):
+ (WebGPU::Texture::createView):
+
2022-04-04 Myles C. Maxfield <mmaxfi...@apple.com>
[WebGPU] Set svn:ignore on WebGPU.xcodeproj
Modified: trunk/Source/WebGPU/WebGPU/Texture.mm (292478 => 292479)
--- trunk/Source/WebGPU/WebGPU/Texture.mm 2022-04-06 17:57:35 UTC (rev 292478)
+++ trunk/Source/WebGPU/WebGPU/Texture.mm 2022-04-06 18:08:52 UTC (rev 292479)
@@ -1896,7 +1896,7 @@
if (descriptor.size.depthOrArrayLayers > 1) {
textureDescriptor.arrayLength = descriptor.size.depthOrArrayLayers;
if (descriptor.sampleCount > 1) {
-#if PLATFORM(WATCHOS)
+#if PLATFORM(WATCHOS) || PLATFORM(TVOS)
return nullptr;
#else
textureDescriptor.textureType = MTLTextureType2DMultisampleArray;
@@ -2244,7 +2244,7 @@
break;
case WGPUTextureViewDimension_2DArray:
if (m_descriptor.sampleCount > 1) {
-#if PLATFORM(WATCHOS)
+#if PLATFORM(WATCHOS) || PLATFORM(TVOS)
return nullptr;
#else
textureType = MTLTextureType2DMultisampleArray;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes