Enable required device features (validation) (Refs #277)
This commit is contained in:
parent
153e555447
commit
4094aa0ea0
5 changed files with 88 additions and 6 deletions
|
|
@ -240,6 +240,20 @@ public:
|
|||
else {
|
||||
vks::tools::exitFatal("Selected GPU does not support geometry shaders!", "Feature not supported");
|
||||
}
|
||||
// Enable anisotropic filtering if supported
|
||||
if (deviceFeatures.samplerAnisotropy) {
|
||||
enabledFeatures.samplerAnisotropy = VK_TRUE;
|
||||
}
|
||||
// Enable texture compression
|
||||
if (deviceFeatures.textureCompressionBC) {
|
||||
enabledFeatures.textureCompressionBC = VK_TRUE;
|
||||
}
|
||||
else if (deviceFeatures.textureCompressionASTC_LDR) {
|
||||
enabledFeatures.textureCompressionASTC_LDR = VK_TRUE;
|
||||
}
|
||||
else if (deviceFeatures.textureCompressionETC2) {
|
||||
enabledFeatures.textureCompressionETC2 = VK_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
// Prepare a layered shadow map with each layer containing depth from a light's point of view
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue