diff --git a/.travis.yml b/.travis.yml index 5fa81ef6..b411c624 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: cpp sudo: required os: linux -dist: xenial +dist: trusty compiler: - clang - gcc @@ -14,6 +14,6 @@ script: notifications: email: recipients: - - webmaster@saschawillems.dev + - webmaster@saschawillems.de on_success: change on_failure: always \ No newline at end of file diff --git a/texturesparseresidency/texturesparseresidency.cpp b/texturesparseresidency/texturesparseresidency.cpp index 4a239f19..b1504520 100644 --- a/texturesparseresidency/texturesparseresidency.cpp +++ b/texturesparseresidency/texturesparseresidency.cpp @@ -267,6 +267,17 @@ public: uniformBufferVS.destroy(); } + virtual void getEnabledFeatures() + { + if (deviceFeatures.sparseBinding && deviceFeatures.sparseResidencyImage2D) { + enabledFeatures.sparseBinding = VK_TRUE; + enabledFeatures.sparseResidencyImage2D = VK_TRUE; + } + else { + std::cout << "Sparse binding not supported" << std::endl; + } + } + glm::uvec3 alignedDivision(const VkExtent3D& extent, const VkExtent3D& granularity) { glm::uvec3 res;