Fix getting started docs using pointer instead of reference

add_required_extension_features takes a reference now, but the docs
indicated it took a pointer.
This commit is contained in:
Charles Giessen 2024-04-26 15:01:09 -05:00 committed by Charles Giessen
parent 50b75222b2
commit e186301249

View File

@ -182,7 +182,7 @@ Features only available through extensions need to use `add_required_extension_f
VkPhysicalDeviceDescriptorIndexingFeatures descriptor_indexing_features{};
descriptor_indexing_features.<features_used> = true;
phys_device_selector.add_required_extension_features(&descriptor_indexing_features);
phys_device_selector.add_required_extension_features(descriptor_indexing_features);
```
The features and extensions used as selection criteria in `vkb::PhysicalDeviceSelector` automatically propagate into `vkb::DeviceBuilder`. That means the application only needs to state the feature requirement once, and `vk-bootstrap` will handle enabling it on the resulting device.