Merge pull request #329 from aleksysokolowski-intel/master
added sparseBinding presence check
This commit is contained in:
commit
ff1e5c2d7f
1 changed files with 11 additions and 0 deletions
|
|
@ -267,6 +267,17 @@ public:
|
||||||
uniformBufferVS.destroy();
|
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 alignedDivision(const VkExtent3D& extent, const VkExtent3D& granularity)
|
||||||
{
|
{
|
||||||
glm::uvec3 res;
|
glm::uvec3 res;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue