github.com/racerxdl/gonx@v0.0.0-20210103083128-c5afc43bcbd2/services/nv/nvSurface.go (about) 1 package nv 2 3 import "github.com/racerxdl/gonx/nx/nxtypes" 4 5 type Surface struct { 6 Width uint32 7 Height uint32 8 ColorFormat ColorFormat 9 Layout Layout 10 Pitch uint32 11 Unused uint32 12 Offset uint32 13 Kind Kind 14 BlockHeightLog2 uint32 15 Scan DisplayScanFormat 16 SecondFieldOffset uint32 17 Flags uint64 18 Size uint64 19 Unk [6]uint32 20 } 21 22 type GraphicBuffer struct { 23 Header nxtypes.NativeHandle 24 Unk0 int32 // -1 25 NVMapID int32 26 Unk2 uint32 // 0 27 Magic uint32 // 0xDAFFCAFF 28 PID uint32 // 42 29 Type uint32 30 Usage uint32 // GRALLOC_USAGE_* bitmask 31 Format uint32 // PIXEL_FORMAT_* 32 ExtFormat uint32 // Copy the value in Format field 33 Stride uint32 // in pixels 34 TotalSize uint32 // in bytes 35 NumPlanes uint32 // 1 36 Unk12 uint32 // 0 37 Planes [3]Surface 38 Unused uint64 39 }