ユーザ用ツール

サイト用ツール


opengl:texturefileformat

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
opengl:texturefileformat [2015/07/04 02:59] – [PVR format version 2] ogaopengl:texturefileformat [2015/07/04 03:02] – [PVR format version 2] oga
行 123: 行 123:
  
 <code cpp> <code cpp>
 +enum {
 +    KTX_HEADER_MAGIC0     0x58544bab,
 +    KTX_HEADER_MAGIC1     0xbb313120,
 +    KTX_HEADER_MAGIC2     0x0a1a0a0d,
 +    KTX_HEADER_ENDIAN     0x04030201,
 +};
 +
 struct T_KTXHEADER {       // 64byte struct T_KTXHEADER {       // 64byte
     UI32    Identifier[3];     UI32    Identifier[3];
行 166: 行 173:
     * PVRTC-2 対応     * PVRTC-2 対応
     * データ並びが KTX 順     * データ並びが KTX 順
 +
 +<code cpp>
 +struct T_PVR3HEADER {   // 13x4 = 52
 +    unsigned int    Version;        // 'PVR' 0x03
 +    unsigned int    Flags;
 +    unsigned int    PixelFormat[2]; // ('argb',08080808) or (PVR3_FORMAT_*,00000000)
 +    unsigned int    ColorSpace;
 +    unsigned int    ChannelType;    // PVR3_CHANNELTYPE_
 +    unsigned int    Height;
 +    unsigned int    Width;
 +    unsigned int    Depth;          // >=1
 +    unsigned int    Surfaces;       // >=1 texture array
 +    unsigned int    Faces;          // >=1 cubemap
 +    unsigned int    MipMapCount;    // >=1
 +    unsigned int    MetaDataSize;
 +};
 +</code>
  
 <code> <code>
行 177: 行 201:
     * PVRTC-2 非対応     * PVRTC-2 非対応
     * データ並びが DDS 順     * データ並びが DDS 順
 +
 +
 +
 +<code>
 +( ( ( width * height ) * mip ) * [cube_face or volume_depth] )
 +</code>
 +
  
 <code cpp> <code cpp>
 struct T_PVR2HEADER { struct T_PVR2HEADER {
-    unsigned int    hsize;      // == 52 == sizeof(T_PVRHEADER)+    unsigned int    hsize;      // == 52 == sizeof(T_PVR2HEADER)
     unsigned int    height;     unsigned int    height;
     unsigned int    width;     unsigned int    width;
行 195: 行 226:
 }; };
 </code> </code>
- 
- 
-<code> 
-( ( ( width * height ) * mip ) * [cube_face or volume_depth] ) 
-</code> 
- 
- 
  
 ===== PKM ===== ===== PKM =====
opengl/texturefileformat.txt · 最終更新: 2015/07/04 03:11 by oga

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki