--- nono/vm/tvram.h 2026/04/29 17:04:36 1.1.1.3 +++ nono/vm/tvram.h 2026/04/29 17:04:56 1.1.1.7 @@ -9,8 +9,7 @@ #include "device.h" #include -class TVRAMDevice - : public IODevice +class TVRAMDevice : public IODevice { using inherited = IODevice; private: @@ -25,7 +24,7 @@ class TVRAMDevice public: TVRAMDevice(); - ~TVRAMDevice() override; + virtual ~TVRAMDevice() override; void ResetHard() override; @@ -51,6 +50,13 @@ class TVRAMDevice // XXX 実際には縦がこれ以上になる可能性はある std::atomic atomic_dirty[1024] {}; struct tvram tvram {}; + + // レンダリング時に使う変換テーブル + static uint32 deptable[256]; + + // RGB24 形式(3バイト)を4バイトあるいは SSE なら 16バイト単位で + // 書き込むための1ライン分の中間バッファ。 + ALIGNAS_IF_X86(16) uint32 rb[768] {}; }; extern std::unique_ptr gTVRAM;