added sparseBinding presence check
This commit is contained in:
parent
fa18736ee5
commit
54e7cb5aad
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