@@ -44,27 +44,27 @@ object TextureOwner {
4444 textureMap.getValue(this @texture)[index] as T
4545
4646 /* *
47- * Binds a list of textures to texture slots, ensuring no more than 32 textures
47+ * Binds a list of textures to texture slots, ensuring no more than 96 textures
4848 * are bound at once (to fit within the typical GPU limitations)
4949 *
5050 * @param textures The list of objects that own textures to be bound.
51- * @throws IllegalArgumentException If more than 32 textures are provided.
51+ * @throws IllegalArgumentException If more than 96 textures are provided.
5252 */
5353 fun bind (vararg textures : Any ) {
54- check(textures.size < 33 ) { " Texture slot overflow, expected to use less than 33 slots , got ${textures.size} slots " }
54+ check(textures.size <= 96 ) { " Expected equal or less than 96 simultaneous textures , got ${textures.size} textures " }
5555
5656 textures.forEachIndexed { index, texture -> texture.texture.bind(index) }
5757 }
5858
5959 /* *
60- * Binds a list of textures to texture slots, ensuring no more than 32 textures
60+ * Binds a list of textures to texture slots, ensuring no more than 96 textures
6161 * are bound at once (to fit within the typical GPU limitations)
6262 *
6363 * @param textures The list of textures to be bound
64- * @throws IllegalArgumentException If more than 32 textures are provided
64+ * @throws IllegalArgumentException If more than 96 textures are provided
6565 */
6666 fun bind (vararg textures : Texture ) {
67- check(textures.size < 33 ) { " Texture slot overflow, expected to use less than 33 slots , got ${textures.size} slots " }
67+ check(textures.size <= 96 ) { " Expected equal or less than 96 simultaneous textures , got ${textures.size} textures " }
6868
6969 textures.forEachIndexed { index, texture -> texture.bind(index) }
7070 }
0 commit comments