Merge pull request #75241 from Calinou/doc-compressedtexturelayered
Fix CompressedTextureLayered description in the class reference
This commit is contained in:
commit
3abe4781b6
|
@ -5,10 +5,11 @@
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
A cubemap that is loaded from a [code].ccube[/code] file. This file format is internal to Godot; it is created by importing other image formats with the import system. [CompressedCubemap] can use one of 4 compresson methods:
|
A cubemap that is loaded from a [code].ccube[/code] file. This file format is internal to Godot; it is created by importing other image formats with the import system. [CompressedCubemap] can use one of 4 compresson methods:
|
||||||
- Uncompressed (uncompressed on the GPU)
|
|
||||||
- Lossless (WebP or PNG, uncompressed on the GPU)
|
- Lossless (WebP or PNG, uncompressed on the GPU)
|
||||||
- Lossy (WebP, uncompressed on the GPU)
|
- Lossy (WebP, uncompressed on the GPU)
|
||||||
- VRAM Compressed (compressed on the GPU)
|
- VRAM Compressed (compressed on the GPU)
|
||||||
|
- VRAM Uncompressed (uncompressed on the GPU)
|
||||||
|
- Basis Universal (compressed on the GPU. Lower file sizes than VRAM Compressed, but slower to compress and lower quality than VRAM Compressed)
|
||||||
Only [b]VRAM Compressed[/b] actually reduces the memory usage on the GPU. The [b]Lossless[/b] and [b]Lossy[/b] compression methods will reduce the required storage on disk, but they will not reduce memory usage on the GPU as the texture is sent to the GPU uncompressed.
|
Only [b]VRAM Compressed[/b] actually reduces the memory usage on the GPU. The [b]Lossless[/b] and [b]Lossy[/b] compression methods will reduce the required storage on disk, but they will not reduce memory usage on the GPU as the texture is sent to the GPU uncompressed.
|
||||||
Using [b]VRAM Compressed[/b] also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless or lossy compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D.
|
Using [b]VRAM Compressed[/b] also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless or lossy compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D.
|
||||||
See [Cubemap] for a general description of cubemaps.
|
See [Cubemap] for a general description of cubemaps.
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
A cubemap array that is loaded from a [code].ccubearray[/code] file. This file format is internal to Godot; it is created by importing other image formats with the import system. [CompressedCubemapArray] can use one of 4 compresson methods:
|
A cubemap array that is loaded from a [code].ccubearray[/code] file. This file format is internal to Godot; it is created by importing other image formats with the import system. [CompressedCubemapArray] can use one of 4 compresson methods:
|
||||||
- Uncompressed (uncompressed on the GPU)
|
|
||||||
- Lossless (WebP or PNG, uncompressed on the GPU)
|
- Lossless (WebP or PNG, uncompressed on the GPU)
|
||||||
- Lossy (WebP, uncompressed on the GPU)
|
- Lossy (WebP, uncompressed on the GPU)
|
||||||
- VRAM Compressed (compressed on the GPU)
|
- VRAM Compressed (compressed on the GPU)
|
||||||
|
- VRAM Uncompressed (uncompressed on the GPU)
|
||||||
|
- Basis Universal (compressed on the GPU. Lower file sizes than VRAM Compressed, but slower to compress and lower quality than VRAM Compressed)
|
||||||
Only [b]VRAM Compressed[/b] actually reduces the memory usage on the GPU. The [b]Lossless[/b] and [b]Lossy[/b] compression methods will reduce the required storage on disk, but they will not reduce memory usage on the GPU as the texture is sent to the GPU uncompressed.
|
Only [b]VRAM Compressed[/b] actually reduces the memory usage on the GPU. The [b]Lossless[/b] and [b]Lossy[/b] compression methods will reduce the required storage on disk, but they will not reduce memory usage on the GPU as the texture is sent to the GPU uncompressed.
|
||||||
Using [b]VRAM Compressed[/b] also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless or lossy compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D.
|
Using [b]VRAM Compressed[/b] also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless or lossy compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D.
|
||||||
See [CubemapArray] for a general description of cubemap arrays.
|
See [CubemapArray] for a general description of cubemap arrays.
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
A texture that is loaded from a [code].ctex[/code] file. This file format is internal to Godot; it is created by importing other image formats with the import system. [CompressedTexture2D] can use one of 4 compression methods (including a lack of any compression):
|
A texture that is loaded from a [code].ctex[/code] file. This file format is internal to Godot; it is created by importing other image formats with the import system. [CompressedTexture2D] can use one of 4 compression methods (including a lack of any compression):
|
||||||
- Uncompressed (uncompressed on the GPU)
|
|
||||||
- Lossless (WebP or PNG, uncompressed on the GPU)
|
- Lossless (WebP or PNG, uncompressed on the GPU)
|
||||||
- Lossy (WebP, uncompressed on the GPU)
|
- Lossy (WebP, uncompressed on the GPU)
|
||||||
- VRAM Compressed (compressed on the GPU)
|
- VRAM Compressed (compressed on the GPU)
|
||||||
|
- VRAM Uncompressed (uncompressed on the GPU)
|
||||||
|
- Basis Universal (compressed on the GPU. Lower file sizes than VRAM Compressed, but slower to compress and lower quality than VRAM Compressed)
|
||||||
Only [b]VRAM Compressed[/b] actually reduces the memory usage on the GPU. The [b]Lossless[/b] and [b]Lossy[/b] compression methods will reduce the required storage on disk, but they will not reduce memory usage on the GPU as the texture is sent to the GPU uncompressed.
|
Only [b]VRAM Compressed[/b] actually reduces the memory usage on the GPU. The [b]Lossless[/b] and [b]Lossy[/b] compression methods will reduce the required storage on disk, but they will not reduce memory usage on the GPU as the texture is sent to the GPU uncompressed.
|
||||||
Using [b]VRAM Compressed[/b] also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless or lossy compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D.
|
Using [b]VRAM Compressed[/b] also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless or lossy compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D.
|
||||||
</description>
|
</description>
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
A texture array that is loaded from a [code].ctexarray[/code] file. This file format is internal to Godot; it is created by importing other image formats with the import system. [CompressedTexture2DArray] can use one of 4 compresson methods:
|
A texture array that is loaded from a [code].ctexarray[/code] file. This file format is internal to Godot; it is created by importing other image formats with the import system. [CompressedTexture2DArray] can use one of 4 compresson methods:
|
||||||
- Uncompressed (uncompressed on the GPU)
|
|
||||||
- Lossless (WebP or PNG, uncompressed on the GPU)
|
- Lossless (WebP or PNG, uncompressed on the GPU)
|
||||||
- Lossy (WebP, uncompressed on the GPU)
|
- Lossy (WebP, uncompressed on the GPU)
|
||||||
- VRAM Compressed (compressed on the GPU)
|
- VRAM Compressed (compressed on the GPU)
|
||||||
|
- VRAM Uncompressed (uncompressed on the GPU)
|
||||||
|
- Basis Universal (compressed on the GPU. Lower file sizes than VRAM Compressed, but slower to compress and lower quality than VRAM Compressed)
|
||||||
Only [b]VRAM Compressed[/b] actually reduces the memory usage on the GPU. The [b]Lossless[/b] and [b]Lossy[/b] compression methods will reduce the required storage on disk, but they will not reduce memory usage on the GPU as the texture is sent to the GPU uncompressed.
|
Only [b]VRAM Compressed[/b] actually reduces the memory usage on the GPU. The [b]Lossless[/b] and [b]Lossy[/b] compression methods will reduce the required storage on disk, but they will not reduce memory usage on the GPU as the texture is sent to the GPU uncompressed.
|
||||||
Using [b]VRAM Compressed[/b] also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless or lossy compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D.
|
Using [b]VRAM Compressed[/b] also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless or lossy compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D.
|
||||||
See [Texture2DArray] for a general description of texture arrays.
|
See [Texture2DArray] for a general description of texture arrays.
|
||||||
|
|
|
@ -4,13 +4,7 @@
|
||||||
Base class for texture arrays that can optionally be compressed.
|
Base class for texture arrays that can optionally be compressed.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
A texture array that is loaded from a [code].ctexarray[/code] file. This file format is internal to Godot; it is created by importing other image formats with the import system. [CompressedTexture2D] can use one of 4 compresson methods:
|
Base class for [CompressedTexture2DArray] and [CompressedTexture3D]. Cannot be used directly, but contains all the functions necessary for accessing the derived resource types. See also [TextureLayered].
|
||||||
- Uncompressed (uncompressed on the GPU)
|
|
||||||
- Lossless (WebP or PNG, uncompressed on the GPU)
|
|
||||||
- Lossy (WebP, uncompressed on the GPU)
|
|
||||||
- VRAM Compressed (compressed on the GPU)
|
|
||||||
Only [b]VRAM Compressed[/b] actually reduces the memory usage on the GPU. The [b]Lossless[/b] and [b]Lossy[/b] compression methods will reduce the required storage on disk, but they will not reduce memory usage on the GPU as the texture is sent to the GPU uncompressed.
|
|
||||||
Using [b]VRAM Compressed[/b] also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless or lossy compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D.
|
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Base class for texture types which contain the data of multiple [Image]s. Each image is of the same size and format.
|
Base class for texture types which contain the data of multiple [Image]s. Each image is of the same size and format.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Base class for [ImageTextureLayered]. Cannot be used directly, but contains all the functions necessary for accessing the derived resource types. See also [Texture3D].
|
Base class for [ImageTextureLayered] and [CompressedTextureLayered]. Cannot be used directly, but contains all the functions necessary for accessing the derived resource types. See also [Texture3D].
|
||||||
Data is set on a per-layer basis. For [Texture2DArray]s, the layer specifies the array layer.
|
Data is set on a per-layer basis. For [Texture2DArray]s, the layer specifies the array layer.
|
||||||
All images need to have the same width, height and number of mipmap levels.
|
All images need to have the same width, height and number of mipmap levels.
|
||||||
A [TextureLayered] can be loaded with [method ResourceLoader.load].
|
A [TextureLayered] can be loaded with [method ResourceLoader.load].
|
||||||
|
|
Loading…
Reference in New Issue