mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Merge pull request #8669 from jsjtxietian/patch-1
Update textureQueryLevels to mention it returns 1 when the texture is unassigned
This commit is contained in:
@@ -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) | |
|
||||
|
||||
Reference in New Issue
Block a user