Texture2D.PixelFormat Enum
The texture pixel format, default value is RGBA8888
Index
RGB565RGB5A1RGBA4444RGB888RGBA8888A8I8AI88
Details
RGB565
16-bit texture without Alpha channel, not supported yet
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:80 |
RGB5A1
16-bit textures: RGB5A1, not supported yet
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:87 |
RGBA4444
16-bit textures: RGBA4444, not supported yet
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:94 |
RGB888
24-bit texture: RGB888, not supported yet
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:101 |
RGBA8888
32-bit texture: RGBA8888
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:108 |
A8
8-bit textures used as masks, not supported yet
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:115 |
I8
8-bit intensity texture, not supported yet
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:122 |
AI88
16-bit textures used as masks, not supported yet
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:129 |