VK仅支持CombindImageSamler,所有去掉原本的GetSampler,将GetCombindImageSampler改名为GetSampler

This commit is contained in:
2019-05-21 00:11:50 +08:00
parent cbdbd75e66
commit 056be453f2
2 changed files with 6 additions and 6 deletions

View File

@@ -13,8 +13,8 @@ VK_NAMESPACE_BEGIN
Texture2D *LoadTGATexture(const OSString &filename,Device *device);
VK_NAMESPACE_END
constexpr uint32_t SCREEN_WIDTH=256;
constexpr uint32_t SCREEN_HEIGHT=256;
constexpr uint32_t SCREEN_WIDTH=512;
constexpr uint32_t SCREEN_HEIGHT=512;
struct WorldConfig
{
@@ -118,7 +118,7 @@ private:
image_info.imageLayout =*texture;
image_info.sampler =*sampler;
desciptor_sets->UpdateSampler(material->GetCombindImageSampler("texture_lena"),&image_info);
desciptor_sets->UpdateSampler(material->GetSampler("texture_lena"),&image_info);
return(true);
}