Fully support Full16 TIM
This commit is contained in:
@@ -16,6 +16,8 @@ namespace JabyEngine {
|
||||
};
|
||||
|
||||
struct CPU2VRAM {
|
||||
static constexpr bool is_render_primitive = true;
|
||||
|
||||
GPU_IO_Values::GP0 cmd;
|
||||
GPU_IO_Values::GP0 pos;
|
||||
GPU_IO_Values::GP0 size;
|
||||
@@ -28,5 +30,23 @@ namespace JabyEngine {
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
struct VRAM2VRAM {
|
||||
static constexpr bool is_render_primitive = true;
|
||||
|
||||
GPU_IO_Values::GP0 cmd;
|
||||
GPU_IO_Values::GP0 src_pos;
|
||||
GPU_IO_Values::GP0 dst_pos;
|
||||
GPU_IO_Values::GP0 size;
|
||||
|
||||
static constexpr VRAM2VRAM create(const AreaU16& src, const PositionU16& dst) {
|
||||
return VRAM2VRAM{
|
||||
.cmd = GPU_IO_Values::GP0::VRAM2VRAMBlitting(),
|
||||
.src_pos = GPU_IO_Values::GP0::PostionTopLeft(src.position),
|
||||
.dst_pos = GPU_IO_Values::GP0::PostionTopLeft(dst),
|
||||
.size = GPU_IO_Values::GP0::WidthHeight(src.size)
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user