mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-19 08:58:01 +00:00
shader: Initial OpenGL implementation
This commit is contained in:
parent
5ad12292a6
commit
5ca5988c63
38 changed files with 1427 additions and 705 deletions
|
@ -154,6 +154,15 @@ union TextureHandle {
|
|||
};
|
||||
static_assert(sizeof(TextureHandle) == 4, "TextureHandle has wrong size");
|
||||
|
||||
[[nodiscard]] inline std::pair<u32, u32> TexturePair(u32 raw, bool via_header_index) {
|
||||
if (via_header_index) {
|
||||
return {raw, raw};
|
||||
} else {
|
||||
const Tegra::Texture::TextureHandle handle{raw};
|
||||
return {handle.tic_id, via_header_index ? handle.tic_id : handle.tsc_id};
|
||||
}
|
||||
}
|
||||
|
||||
struct TICEntry {
|
||||
union {
|
||||
struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue