summaryrefslogtreecommitdiff
path: root/engine/xe_image.hpp
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-25 23:08:03 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-25 23:08:03 -0400
commitee3a4d6073421fd9e17e832dc9d10e151e6029ea (patch)
treeb0228ffe9af69f53e7cff238a1ead44244cf4dea /engine/xe_image.hpp
parent3D Chunks rendering (diff)
downloadminecraftvulkan-ee3a4d6073421fd9e17e832dc9d10e151e6029ea.tar.gz
minecraftvulkan-ee3a4d6073421fd9e17e832dc9d10e151e6029ea.tar.bz2
minecraftvulkan-ee3a4d6073421fd9e17e832dc9d10e151e6029ea.zip
remove color vertex data, mipmapping
Diffstat (limited to 'engine/xe_image.hpp')
-rw-r--r--engine/xe_image.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/xe_image.hpp b/engine/xe_image.hpp
index a8e50ba..29f5d58 100644
--- a/engine/xe_image.hpp
+++ b/engine/xe_image.hpp
@@ -21,12 +21,16 @@ class Image {
void createTextureImage(const std::string &filename);
void createImage(uint32_t width, uint32_t height, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, VkMemoryPropertyFlags properties, VkImage& image, VkDeviceMemory& imageMemory);
void transitionImageLayout(VkImage image, VkFormat format, VkImageLayout oldLayout, VkImageLayout newLayout);
+ void generateMipmaps(VkImage image, VkFormat imageFormat, int32_t texWidth, int32_t texHeight, uint32_t mipLevels);
void copyBufferToImage(VkBuffer buffer, VkImage image, uint32_t width, uint32_t height);
void createTextureImageView();
+ void createTextureSampler();
Device &xeDevice;
+ uint32_t mipLevels;
VkImage textureImage;
+ VkSampler textureSampler;
VkImageView textureImageView;
VkDeviceMemory textureImageMemory;