mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-01 19:39:10 +12:00
[PICA] Add texture swizzling
This commit is contained in:
parent
dd17b2ecb8
commit
03d0d77db8
2 changed files with 26 additions and 0 deletions
include/renderer_gl
|
@ -57,4 +57,9 @@ struct Texture {
|
|||
void allocate();
|
||||
void free();
|
||||
u64 sizeInBytes();
|
||||
|
||||
// Get the morton interleave offset of a texel based on its U and V values
|
||||
static u32 mortonInterleave(u32 u, u32 v);
|
||||
// Get the byte offset of texel (u, v) in the texture
|
||||
static u32 getSwizzledOffset(u32 u, u32 v, u32 width, u32 bytesPerPixel);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue