mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 07:24:34 +00:00
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:
parent
50b75222b2
commit
e186301249
@ -182,7 +182,7 @@ Features only available through extensions need to use `add_required_extension_f
|
|||||||
VkPhysicalDeviceDescriptorIndexingFeatures descriptor_indexing_features{};
|
VkPhysicalDeviceDescriptorIndexingFeatures descriptor_indexing_features{};
|
||||||
descriptor_indexing_features.<features_used> = true;
|
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.
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user