Texture2D.PixelFormat 枚举
模块: cc
The texture pixel format, default value is RGBA8888, you should note that textures loaded by normal image files (png, jpg) can only support RGBA8888 format, other formats are supported by compressed file types or raw data.
索引
RGB565RGB5A1RGBA4444RGB888RGBA8888RGBA32FA8I8AI88RGB_PVRTC_2BPPV1RGBA_PVRTC_2BPPV1RGB_A_PVRTC_2BPPV1RGB_PVRTC_4BPPV1RGBA_PVRTC_4BPPV1RGB_A_PVRTC_4BPPV1RGB_ETC1RGBA_ETC1RGB_ETC2RGBA_ETC2
Details
RGB565
16-bit texture without Alpha channel
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:72 |
RGB5A1
16-bit textures: RGB5A1
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:79 |
RGBA4444
16-bit textures: RGBA4444
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:86 |
RGB888
24-bit texture: RGB888
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:93 |
RGBA8888
32-bit texture: RGBA8888
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:100 |
RGBA32F
32-bit float texture: RGBA32F
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:107 |
A8
8-bit textures used as masks
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:114 |
I8
8-bit intensity texture
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:121 |
AI88
16-bit textures used as masks
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:128 |
RGB_PVRTC_2BPPV1
rgb 2 bpp pvrtc
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:136 |
RGBA_PVRTC_2BPPV1
rgba 2 bpp pvrtc
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:143 |
RGB_A_PVRTC_2BPPV1
rgb separate a 2 bpp pvrtc RGB_A_PVRTC_2BPPV1 texture is a 2x height RGB_PVRTC_2BPPV1 format texture. It separate the origin alpha channel to the bottom half atlas, the origin rgb channel to the top half atlas
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:150 |
RGB_PVRTC_4BPPV1
rgb 4 bpp pvrtc
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:159 |
RGBA_PVRTC_4BPPV1
rgba 4 bpp pvrtc
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:166 |
RGB_A_PVRTC_4BPPV1
rgb a 4 bpp pvrtc RGB_A_PVRTC_4BPPV1 texture is a 2x height RGB_PVRTC_4BPPV1 format texture. It separate the origin alpha channel to the bottom half atlas, the origin rgb channel to the top half atlas
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:173 |
RGB_ETC1
rgb etc1
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:182 |
RGBA_ETC1
rgba etc1
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:189 |
RGB_ETC2
rgb etc2
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:197 |
RGBA_ETC2
rgba etc2
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/assets/CCTexture2D.js:204 |