diff --git a/inc/hgl/graph/TileData.h b/inc/hgl/graph/TileData.h index 6ba7e980..a901a274 100644 --- a/inc/hgl/graph/TileData.h +++ b/inc/hgl/graph/TileData.h @@ -13,7 +13,7 @@ namespace hgl * TileData是一种处理大量等同尺寸及格式贴图的管理机制,程序会自动根据显卡最大贴图处理能力来创建尽可能符合需求的贴图。(注:Tile的大小不必符合2次幂) * Tile的增加或删除,程序会自动排序,尽可能小的减少I/O消耗。 */ - class TileData ///Tile纹理管理 + class TileData ///Tile纹理管理 { Device *device; @@ -30,43 +30,42 @@ namespace hgl protected: - vulkan::Buffer *tile_buffer; ///index,obj,data,bytes,format,ctw,cth); + WriteTile(obj->index,obj,data,bytes,ctw,cth); return(true); }