Skip to content

Commit

Permalink
Merge pull request #8669 from jsjtxietian/patch-1
Browse files Browse the repository at this point in the history
Update textureQueryLevels to mention it returns 1 when the texture is unassigned
  • Loading branch information
skyace65 authored Dec 24, 2023
2 parents cdd2141 + 1c2a030 commit fbfb81d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/shaders/shader_reference/shading_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1269,8 +1269,8 @@ is used, it can be scalar or vector.
+-----------------------------------------------------------------------------+---------------------------------------------------------------------+
| int **textureQueryLevels** (gsampler2D s) | Get the number of accessible mipmap levels of a texture. |
| | |
| int **textureQueryLevels** (gsampler2DArray s) | If the texture is unassigned to a sampler, ``0`` is returned. |
| | |
| int **textureQueryLevels** (gsampler2DArray s) | If the texture is unassigned to a sampler, ``1`` is returned (Godot |
| | always internally assigns a texture even to an empty sampler). |
| int **textureQueryLevels** (gsampler3D s) | |
| | |
| int **textureQueryLevels** (samplerCube s) | |
Expand Down

0 comments on commit fbfb81d

Please sign in to comment.