used GetVkDevice() instead of GetVulkanDevice()

This commit is contained in:
hyzboy 2024-10-29 00:36:48 +08:00
parent 2221e10750
commit d3df8d50ca
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ Texture2D *TextureManager::CreateTexture2D(TextureData *tex_data)
if(!tex_data)
return(nullptr);
return(new Texture2D(GetVulkanDevice(),tex_data));
return(new Texture2D(GetVkDevice(),tex_data));
}
Texture2D *TextureManager::CreateTexture2D(TextureCreateInfo *tci)
@ -44,7 +44,7 @@ Texture2D *TextureManager::CreateTexture2D(TextureCreateInfo *tci)
}
if(!tci->image_view)
tci->image_view=CreateImageView2D(GetVulkanDevice(),tci->format,tci->extent,tci->target_mipmaps,tci->aspect,tci->image);
tci->image_view=CreateImageView2D(GetVkDevice(),tci->format,tci->extent,tci->target_mipmaps,tci->aspect,tci->image);
TextureData *tex_data=new TextureData(tci);

View File

@ -2,7 +2,7 @@
#include<hgl/graph/VKDevice.h>
VK_NAMESPACE_BEGIN
VkDevice GraphManager::GetVulkanDevice()
VkDevice GraphManager::GetVkDevice()
{
return device->GetDevice();
}