little change

This commit is contained in:
2020-10-26 15:45:03 +08:00
parent 9db09fced1
commit 744c3a1963
5 changed files with 23 additions and 19 deletions

View File

@@ -164,12 +164,12 @@ private:
VK_SAMPLER_ADDRESS_MODE_REPEAT,
VK_SAMPLER_ADDRESS_MODE_REPEAT,
0.0f,
false,
0,
VK_TRUE,
device->GetGPUPhysicalDevice()->GetMaxSamplerAnisotropy(),
false,
VK_COMPARE_OP_NEVER,
0.0f,
1.0f,
static_cast<float>(texture.color->GetMipLevel()),
VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK,
false
};

View File

@@ -28,22 +28,22 @@ private:
Sampler * sampler =nullptr;
MaterialInstance * material_instance =nullptr;
GPUBuffer * ubo_world_matrix =nullptr;
GPUBuffer * ubo_color =nullptr;
GPUBuffer * ubo_world_matrix =nullptr;
GPUBuffer * ubo_color =nullptr;
Pipeline * pipeline =nullptr;
private:
FontSource * eng_fs =nullptr;
FontSource * chs_fs =nullptr;
FontSourceMulti * font_source =nullptr;
FontSource * eng_fs =nullptr;
FontSource * chs_fs =nullptr;
FontSourceMulti * font_source =nullptr;
TileFont * tile_font =nullptr;
TextLayout tl_engine; ///<文本排版引擎
TileFont * tile_font =nullptr;
TextLayout tl_engine; ///<文本排版引擎
TextRenderable * text_render_obj =nullptr;
RenderableInstance * render_instance =nullptr;
TextRenderable * text_render_obj =nullptr;
RenderableInstance *render_instance =nullptr;
public:

View File

@@ -31,7 +31,7 @@ class TestApp:public VulkanApplicationFramework
ObjectList<TileBitmap> tile_list;
TileData *tile_data;
TileData *tile_data=nullptr;
float *vertex_data=nullptr;
float *tex_coord_data=nullptr;