浏览代码

Merge pull request #37962 from Calinou/doc-image-size-limits

Document image size limits
Rémi Verschelde 5 年之前
父节点
当前提交
364cb2ce92
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      doc/classes/Image.xml
  2. 1 0
      doc/classes/ImageTexture.xml

+ 1 - 0
doc/classes/Image.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	<description>
 		Native image datatype. Contains image data, which can be converted to a [Texture2D], and several functions to interact with it. The maximum width and height for an [Image] are [constant MAX_WIDTH] and [constant MAX_HEIGHT].
+		[b]Note:[/b] The maximum image size is 16384×16384 pixels due to graphics hardware limitations. Larger images will fail to import.
 	</description>
 	<tutorials>
 	</tutorials>

+ 1 - 0
doc/classes/ImageTexture.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	<description>
 		A [Texture2D] based on an [Image]. Can be created from an [Image] with [method create_from_image].
+		[b]Note:[/b] The maximum image size is 16384×16384 pixels due to graphics hardware limitations. Larger images will fail to import.
 	</description>
 	<tutorials>
 	</tutorials>