From 54e7cb5aad22a8450dfb9992e9f2c935189542cb Mon Sep 17 00:00:00 2001 From: asokolow Date: Tue, 9 May 2017 10:05:03 +0200 Subject: [PATCH 1/3] added sparseBinding presence check --- texturesparseresidency/texturesparseresidency.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; From 01fec7c73b7f518cf89a4aed924e428df3752c77 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Tue, 9 May 2017 20:26:27 +0200 Subject: [PATCH 2/3] cmake packages for travis CI --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5fa81ef6..af632d95 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,13 @@ language: cpp sudo: required os: linux dist: xenial +addons: + apt: + sources: + - george-edison55-precise-backports + packages: + - cmake + - cmake-data compiler: - clang - gcc From 1460cd59fad7a3e546ec7a7e47dd9fcd00adcdb1 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Tue, 9 May 2017 20:42:54 +0200 Subject: [PATCH 3/3] Travis build file --- .travis.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index af632d95..b411c624 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,7 @@ language: cpp sudo: required os: linux -dist: xenial -addons: - apt: - sources: - - george-edison55-precise-backports - packages: - - cmake - - cmake-data +dist: trusty compiler: - clang - gcc @@ -21,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