各种类名结构名优化,不再使用GPU开头

This commit is contained in:
2025-05-17 20:26:36 +08:00
parent 29aa76a917
commit 0e789b6f47
118 changed files with 314 additions and 318 deletions

View File

@@ -11,7 +11,7 @@ namespace hgl
*/
class TextPrimitive:public Primitive
{
GPUDevice * device;
VulkanDevice * device;
Material * mtl;
uint max_count; ///<缓冲区最大容量
@@ -36,7 +36,7 @@ namespace hgl
public:
TextPrimitive(GPUDevice *,Material *,uint mc=1024);
TextPrimitive(VulkanDevice *,Material *,uint mc=1024);
public:

View File

@@ -15,7 +15,7 @@ namespace hgl
class TextRender
{
GPUDevice * device;
VulkanDevice * device;
RenderResource * db;
Material * material;
@@ -37,8 +37,8 @@ namespace hgl
private:
friend TextRender *CreateTextRender(GPUDevice *,FontSource *,RenderPass *,DeviceBuffer *,int limit=-1);
TextRender(GPUDevice *dev,FontSource *);
friend TextRender *CreateTextRender(VulkanDevice *,FontSource *,RenderPass *,DeviceBuffer *,int limit=-1);
TextRender(VulkanDevice *dev,FontSource *);
bool InitTileFont(int limit);
bool InitTextLayoutEngine();
@@ -82,7 +82,7 @@ namespace hgl
* 创建一个文本渲染器
* @param limit 节数限制(-1表示自动)
*/
TextRender *CreateTextRender(GPUDevice *,FontSource *,RenderPass *,DeviceBuffer *,int limit);
TextRender *CreateTextRender(VulkanDevice *,FontSource *,RenderPass *,DeviceBuffer *,int limit);
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_TEXT_RENDER_INCLUDE