Преглед изворни кода

maxTextureLayers limit for Metal (#1328)

Source:
https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf

At Resources/Maximum number of layers per 1D texture array, 2D texture array, or 3D texture
attilaz пре 8 година
родитељ
комит
85c5b1e74d
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/renderer_mtl.mm

+ 1 - 0
src/renderer_mtl.mm

@@ -525,6 +525,7 @@ namespace bgfx { namespace mtl
 				g_caps.limits.maxFBAttachments = 8;
 				g_caps.supported |= BGFX_CAPS_TEXTURE_CUBE_ARRAY;
 			}
+			g_caps.limits.maxTextureLayers = 2048;
 
 			//todo: vendor id, device id, gpu enum