Prechádzať zdrojové kódy

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

Document image size limits
Rémi Verschelde 5 rokov pred
rodič
commit
364cb2ce92
2 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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>
 	</brief_description>
 	<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].
 		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>
 	</description>
 	<tutorials>
 	<tutorials>
 	</tutorials>
 	</tutorials>

+ 1 - 0
doc/classes/ImageTexture.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	</brief_description>
 	<description>
 	<description>
 		A [Texture2D] based on an [Image]. Can be created from an [Image] with [method create_from_image].
 		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>
 	</description>
 	<tutorials>
 	<tutorials>
 	</tutorials>
 	</tutorials>