used GetVkDevice() instead of GetVulkanDevice()
This commit is contained in:
parent
2221e10750
commit
d3df8d50ca
@ -13,7 +13,7 @@ Texture2D *TextureManager::CreateTexture2D(TextureData *tex_data)
|
|||||||
if(!tex_data)
|
if(!tex_data)
|
||||||
return(nullptr);
|
return(nullptr);
|
||||||
|
|
||||||
return(new Texture2D(GetVulkanDevice(),tex_data));
|
return(new Texture2D(GetVkDevice(),tex_data));
|
||||||
}
|
}
|
||||||
|
|
||||||
Texture2D *TextureManager::CreateTexture2D(TextureCreateInfo *tci)
|
Texture2D *TextureManager::CreateTexture2D(TextureCreateInfo *tci)
|
||||||
@ -44,7 +44,7 @@ Texture2D *TextureManager::CreateTexture2D(TextureCreateInfo *tci)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!tci->image_view)
|
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);
|
TextureData *tex_data=new TextureData(tci);
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include<hgl/graph/VKDevice.h>
|
#include<hgl/graph/VKDevice.h>
|
||||||
|
|
||||||
VK_NAMESPACE_BEGIN
|
VK_NAMESPACE_BEGIN
|
||||||
VkDevice GraphManager::GetVulkanDevice()
|
VkDevice GraphManager::GetVkDevice()
|
||||||
{
|
{
|
||||||
return device->GetDevice();
|
return device->GetDevice();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user