diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2022-09-26 23:34:05 -0400 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2022-09-26 23:34:05 -0400 |
commit | 63d8a67845b81ed72b5c6dec2a182f8327457811 (patch) | |
tree | a598b442cb07f2d4f5dad4a7644cc1241c1ad8fd /engine/xe_image.hpp | |
parent | window icon (diff) | |
download | minecraftvulkan-63d8a67845b81ed72b5c6dec2a182f8327457811.tar.gz minecraftvulkan-63d8a67845b81ed72b5c6dec2a182f8327457811.tar.bz2 minecraftvulkan-63d8a67845b81ed72b5c6dec2a182f8327457811.zip |
disable anisotropic filtering on chunks
Diffstat (limited to '')
-rw-r--r-- | engine/xe_image.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/xe_image.hpp b/engine/xe_image.hpp index 1b92e2a..6520a95 100644 --- a/engine/xe_image.hpp +++ b/engine/xe_image.hpp @@ -10,7 +10,7 @@ class Image { public: - Image(Device &xeDevice, const std::string &filename); + Image(Device &xeDevice, const std::string &filename, bool anisotropic); ~Image(); Image(const Image&) = delete; @@ -23,7 +23,7 @@ class Image { 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(); + void createTextureSampler(bool anisotropic); static void createImage(Device& device, uint32_t width, uint32_t height, uint32_t mipLevels, VkSampleCountFlagBits numSamples, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, VkMemoryPropertyFlags properties, VkImage& image, VkDeviceMemory& imageMemory); static VkImageView createImageView(Device& device, VkImage image, VkFormat format, VkImageAspectFlags aspectFlags, uint32_t mipLevels); |