add TextureCreateInfo struct.
This commit is contained in:
parent
c38d293498
commit
cf1f39fa3d
@ -20,6 +20,27 @@ struct TextureData
|
|||||||
VkImageTiling tiling =VK_IMAGE_TILING_OPTIMAL;
|
VkImageTiling tiling =VK_IMAGE_TILING_OPTIMAL;
|
||||||
};//struct TextureData
|
};//struct TextureData
|
||||||
|
|
||||||
|
struct TextureCreateInfo
|
||||||
|
{
|
||||||
|
VkExtent3D extent;
|
||||||
|
VkFormat format;
|
||||||
|
uint usage;
|
||||||
|
VkImageAspectFlags aspect;
|
||||||
|
ImageTiling tiling;
|
||||||
|
|
||||||
|
VkImage image;
|
||||||
|
Memory * memory;
|
||||||
|
ImageView * image_view;
|
||||||
|
VkImageLayout image_layout;
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
TextureCreateInfo()
|
||||||
|
{
|
||||||
|
hgl_zero(*this);
|
||||||
|
}
|
||||||
|
};//struct TextureCreateInfo
|
||||||
|
|
||||||
class Texture
|
class Texture
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user