A texture cube.
More...
#include <TextureMTL.h>
Inherits TextureCubemapBackend.
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
◆ TextureCubeMTL()
- Parameters
-
mtlDevice | The device for which MTLTexture and MTLSamplerState object was created. |
descriptor | Specify texture and sampler description. |
◆ updateSamplerDescriptor()
Update sampler.
- Parameters
-
sampler | Specifies the sampler descriptor. |
Implements TextureBackend.
◆ updateFaceData()
virtual void updateFaceData |
( |
TextureCubeFace | side, |
|
|
void * | data, |
|
|
int | index = 0 ) |
|
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 TextureCubemapBackend.
◆ updateTextureDescriptor()
Update texture description.
- Parameters
-
descriptor | Specifies texture and sampler descriptor. |
Reimplemented from TextureBackend.
◆ getMTLSamplerState()
id< MTLSamplerState > getMTLSamplerState |
( |
| ) |
const |
|
inline |
Get MTLSamplerState object.
- Returns
- A MTLSamplerState object.
The documentation for this class was generated from the following file: