Fix displacement sample blindly enabling BC compression feature
This commit is contained in:
parent
7086684979
commit
60a459552e
1 changed files with 13 additions and 1 deletions
|
|
@ -122,9 +122,21 @@ public:
|
|||
else {
|
||||
splitScreen = false;
|
||||
}
|
||||
// Enable texture compression features. We already fail in loadAssets()
|
||||
// below if none are supported, so just enable whatever exists.
|
||||
if (deviceFeatures.textureCompressionBC) {
|
||||
enabledFeatures.textureCompressionBC = VK_TRUE;
|
||||
}
|
||||
|
||||
if (deviceFeatures.textureCompressionETC2) {
|
||||
enabledFeatures.textureCompressionETC2 = VK_TRUE;
|
||||
}
|
||||
|
||||
if (deviceFeatures.textureCompressionASTC_LDR) {
|
||||
enabledFeatures.textureCompressionASTC_LDR = VK_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
void loadAssets()
|
||||
{
|
||||
models.object.loadFromFile(getAssetPath() + "models/plane.obj", vertexLayout, 0.25f, vulkanDevice, queue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue