2013-12-19 17:10:14 +00:00
|
|
|
#pragma once
|
2020-03-28 16:58:01 +00:00
|
|
|
#include "types.h"
|
|
|
|
#include "ta_ctx.h"
|
2021-03-23 15:07:53 +00:00
|
|
|
#include "hw/sh4/sh4_if.h"
|
2013-12-19 17:10:14 +00:00
|
|
|
|
2022-03-16 16:28:45 +00:00
|
|
|
constexpr u32 SZ32 = 1;
|
|
|
|
constexpr u32 SZ64 = 2;
|
|
|
|
|
2013-12-19 17:10:14 +00:00
|
|
|
struct TA_context;
|
|
|
|
|
|
|
|
void ta_vtx_ListInit();
|
|
|
|
void ta_vtx_SoftReset();
|
|
|
|
|
2021-03-23 15:07:53 +00:00
|
|
|
void DYNACALL ta_vtx_data32(const SQBuffer *data);
|
|
|
|
void ta_vtx_data(const SQBuffer *data, u32 size);
|
2013-12-19 17:10:14 +00:00
|
|
|
|
2022-04-13 18:36:52 +00:00
|
|
|
bool ta_parse(TA_context *ctx);
|
2021-03-26 17:39:19 +00:00
|
|
|
|
|
|
|
class TaTypeLut
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static const TaTypeLut& instance() {
|
|
|
|
static TaTypeLut _instance;
|
|
|
|
return _instance;
|
|
|
|
}
|
|
|
|
u32 table[256];
|
|
|
|
|
|
|
|
private:
|
|
|
|
TaTypeLut();
|
2022-03-16 16:28:45 +00:00
|
|
|
u32 poly_data_type_id(PCW pcw);
|
|
|
|
u32 poly_header_type_size(PCW pcw);
|
2021-03-26 17:39:19 +00:00
|
|
|
};
|