dreamcast/holly/texture_memory_alloc9.hpp

33 lines
1004 B
C++

#pragma once
#include <cstdint>
#include <cstddef>
struct texture_memory_alloc__start_end {
uint32_t start;
uint32_t end;
};
struct texture_memory_alloc {
struct texture_memory_alloc__start_end isp_tsp_parameters;
struct texture_memory_alloc__start_end object_list;
struct texture_memory_alloc__start_end region_array;
struct texture_memory_alloc__start_end framebuffer[3];
struct texture_memory_alloc__start_end background[2];
struct texture_memory_alloc__start_end texture;
};
constexpr texture_memory_alloc texture_memory_alloc = {
// 32-bit addresses start end start end
.isp_tsp_parameters = {0x000000, 0x21bfe0},
.object_list = {0x400000, 0x495fe0},
.region_array = {0x21c000, 0x22c000},
.framebuffer = {{0x496000, 0x53ec00},
{0x22c000, 0x2d4c00},
{0x53ec00, 0x5e7800}},
.background = {{0x2d4c00, 0x2d4c20},
{0x5e7800, 0x5e7820}},
// 64-bit addresses
.texture = {0x5a9840, 0x800000}
};