Enable required device features for instancing example
This commit is contained in:
parent
44c420940d
commit
3064aef33c
1 changed files with 19 additions and 0 deletions
|
|
@ -118,6 +118,25 @@ public:
|
||||||
uniformBuffers.scene.destroy();
|
uniformBuffers.scene.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable physical device features required for this example
|
||||||
|
virtual void getEnabledFeatures()
|
||||||
|
{
|
||||||
|
// 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;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
void buildCommandBuffers()
|
void buildCommandBuffers()
|
||||||
{
|
{
|
||||||
VkCommandBufferBeginInfo cmdBufInfo = vks::initializers::commandBufferBeginInfo();
|
VkCommandBufferBeginInfo cmdBufInfo = vks::initializers::commandBufferBeginInfo();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue