Skip to content

Commit fbfb81d

Browse files
authored
Merge pull request godotengine#8669 from jsjtxietian/patch-1
Update textureQueryLevels to mention it returns 1 when the texture is unassigned
2 parents cdd2141 + 1c2a030 commit fbfb81d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/shaders/shader_reference/shading_language.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,8 +1269,8 @@ is used, it can be scalar or vector.
12691269
+-----------------------------------------------------------------------------+---------------------------------------------------------------------+
12701270
| int **textureQueryLevels** (gsampler2D s) | Get the number of accessible mipmap levels of a texture. |
12711271
| | |
1272-
| int **textureQueryLevels** (gsampler2DArray s) | If the texture is unassigned to a sampler, ``0`` is returned. |
1273-
| | |
1272+
| int **textureQueryLevels** (gsampler2DArray s) | If the texture is unassigned to a sampler, ``1`` is returned (Godot |
1273+
| | always internally assigns a texture even to an empty sampler). |
12741274
| int **textureQueryLevels** (gsampler3D s) | |
12751275
| | |
12761276
| int **textureQueryLevels** (samplerCube s) | |

0 commit comments

Comments
 (0)