Merge pull request #68023 from rsjtdrjgfuzkfg/pico

Partial support for Pico 4
This commit is contained in:
Rémi Verschelde 2022-11-24 10:43:15 +01:00
commit c39c251255
No known key found for this signature in database
GPG key ID: C3336907360768E1
4 changed files with 38 additions and 2 deletions

View file

@ -299,9 +299,17 @@ bool OpenXRAPI::create_instance() {
XR_CURRENT_API_VERSION // apiVersion
};
void *next_pointer = nullptr;
for (OpenXRExtensionWrapper *wrapper : registered_extension_wrappers) {
void *np = wrapper->set_instance_create_info_and_get_next_pointer(next_pointer);
if (np != nullptr) {
next_pointer = np;
}
}
XrInstanceCreateInfo instance_create_info = {
XR_TYPE_INSTANCE_CREATE_INFO, // type
nullptr, // next
next_pointer, // next
0, // createFlags
application_info, // applicationInfo
0, // enabledApiLayerCount, need to find out if we need support for this?