D3D12 texture implementation (2D, cube, array)
More...
#include <Texture12.h>
Inherits Texture.
|
| void | updateData (const void *data, int width, int height, int level, int layerIndex=0) override |
| | Update a two-dimensional texture image.
|
| void | updateCompressedData (const void *data, int width, int height, std::size_t dataSize, int level, int layerIndex=0) override |
| | Update a two-dimensional texture image in a compressed format.
|
| void | updateSubData (int xoffset, int yoffset, int width, int height, int level, const void *data, int layerIndex=0) override |
| | Update a two-dimensional texture subimage.
|
| void | updateCompressedSubData (int xoffset, int yoffset, int width, int height, std::size_t dataSize, int level, const void *data, int layerIndex=0) override |
| | Update a two-dimensional texture subimage in a compressed format.
|
| void | updateFaceData (TextureCubeFace side, const void *data) override |
| | Update texutre cube data in give slice side.
|
| void | updateSamplerDesc (const SamplerDesc &sampler) override |
| | Update sampler.
|
| void | updateTextureDesc (const TextureDesc &desc) override |
| | Update texture description.
|
| PixelFormat | getPixelFormat () const |
| | Get texture format.
|
| TextureUsage | getTextureUsage () const |
| | Get texture usage.
|
| TextureType | getTextureType () const |
| | Get texture type.
|
| bool | hasMipmaps () const |
| | Check if mipmap had generated before.
|
| void | zeroTexData () |
| | clear texture data to zero.
|
| void | retain () |
| | Retains the ownership.
|
| void | release () |
| | Releases the ownership immediately.
|
| Object * | autorelease () |
| | Releases the ownership sometime soon automatically.
|
| unsigned int | getReferenceCount () const |
| | Returns the Object's current reference count.
|
| virtual | ~Object () |
| | Destructor.
|
|
|
unsigned int | _ID |
| | object id, ScriptSupport need public _ID
|
|
int | _luaID |
| | Lua reference id.
|
D3D12 texture implementation (2D, cube, array)
◆ updateData()
| void updateData |
( |
const void * | data, |
|
|
int | width, |
|
|
int | height, |
|
|
int | level, |
|
|
int | layerIndex = 0 ) |
|
overridevirtual |
Update a two-dimensional texture image.
- Parameters
-
| data | Specifies a pointer to the image data in memory. |
| width | Specifies the width of the texture image. |
| height | Specifies the height of the texture image. |
| level | Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. |
| layerIndex | Specifies the layer index for 2D array textures. |
Implements Texture.
◆ updateCompressedData()
| void updateCompressedData |
( |
const void * | data, |
|
|
int | width, |
|
|
int | height, |
|
|
std::size_t | dataSize, |
|
|
int | level, |
|
|
int | layerIndex = 0 ) |
|
overridevirtual |
Update a two-dimensional texture image in a compressed format.
- Parameters
-
| data | Specifies a pointer to the compressed image data in memory. |
| width | Specifies the width of the texture image. |
| height | Specifies the height of the texture image. |
| dataSize | Specifies the totoal size of compressed image in bytes. |
| level | Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. |
| layerIndex | Specifies the layer index for 2D array textures. |
Implements Texture.
◆ updateSubData()
| void updateSubData |
( |
int | xoffset, |
|
|
int | yoffset, |
|
|
int | width, |
|
|
int | height, |
|
|
int | level, |
|
|
const void * | data, |
|
|
int | layerIndex = 0 ) |
|
overridevirtual |
Update a two-dimensional texture subimage.
- Parameters
-
| xoffset | Specifies a texel offset in the x direction within the texture array. |
| yoffset | Specifies a texel offset in the y direction within the texture array. |
| width | Specifies the width of the texture subimage. |
| height | Specifies the height of the texture subimage. |
| level | Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. |
| data | Specifies a pointer to the image data in memory. |
| layerIndex | Specifies the layer index for 2D array textures. |
Implements Texture.
◆ updateCompressedSubData()
| void updateCompressedSubData |
( |
int | xoffset, |
|
|
int | yoffset, |
|
|
int | width, |
|
|
int | height, |
|
|
std::size_t | dataSize, |
|
|
int | level, |
|
|
const void * | data, |
|
|
int | layerIndex = 0 ) |
|
overridevirtual |
Update a two-dimensional texture subimage in a compressed format.
- Parameters
-
| xoffset | Specifies a texel offset in the x direction within the texture array. |
| yoffset | Specifies a texel offset in the y direction within the texture array. |
| width | Specifies the width of the texture subimage. |
| height | Specifies the height of the texture subimage. |
| dataSize | Specifies the totoal size of compressed subimage in bytes. |
| level | Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. |
| data | Specifies a pointer to the compressed image data in memory. |
| layerIndex | Specifies the layer index for 2D array textures. |
Implements Texture.
◆ updateFaceData()
| void updateFaceData |
( |
TextureCubeFace | side, |
|
|
const void * | data ) |
|
overridevirtual |
Update texutre cube data in give slice side.
- Parameters
-
| side | Specifies which slice texture of cube to be update. |
| data | Specifies a pointer to the image data in memory. |
Implements Texture.
◆ updateSamplerDesc()
Update sampler.
- Parameters
-
| sampler | Specifies the sampler descriptor. |
Implements Texture.
◆ updateTextureDesc()
Update texture description.
- Parameters
-
| descriptor | Specifies texture and sampler descriptor. |
Reimplemented from Texture.
The documentation for this class was generated from the following file: