Documentation ¶
Index ¶
- Variables
- func ReadTexPSMCT32(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)
- func ReadTexPSMT4(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)
- func ReadTexPSMT8(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)
- func Swizzle4(data []byte, width, height int) []byte
- func Swizzle8(data []byte, width, height int) []byte
- func Unswizzle4(data []byte, width int, height int) []byte
- func Unswizzle8(data []byte, width int, height int) []byte
- func WriteTexPSMCT32(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)
- func WriteTexPSMT4(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)
- func WriteTexPSMT8(dbp int, dbw int, dsax int, dsay int, rrw int, rrh int, data []byte)
Constants ¶
This section is empty.
Variables ¶
View Source
var Block4 = [32]int{0, 2, 8, 10, 1, 3, 9, 11, 4, 6, 12,
14, 5, 7, 13, 15, 16, 18, 24, 26, 17, 19,
25, 27, 20, 22, 28, 30, 21, 23, 29, 31}
View Source
var ColumnByte4 = [128]int{}/* 128 elements not displayed */
View Source
var ColumnWord4 = [2][128]int{
{0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13,
0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13,
2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15,
2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15,
8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5,
8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5,
10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7,
10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7},
{8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5,
8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5,
10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7,
10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7,
0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13,
0, 1, 4, 5, 8, 9, 12, 13, 0, 1, 4, 5, 8, 9, 12, 13,
2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15,
2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15}}
View Source
var GsMem = make([]byte, 1024*1024*4)
Functions ¶
func ReadTexPSMCT32 ¶
func ReadTexPSMT4 ¶
func ReadTexPSMT8 ¶
func WriteTexPSMCT32 ¶
func WriteTexPSMT4 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.