get the queues when GN_EXT_QUEUES is enabled

This commit is contained in:
Greg Wells
2025-07-16 12:42:30 -04:00
parent 92e8ea8fe8
commit 5e3f9e0a37
9 changed files with 94 additions and 104 deletions

View File

@@ -14,10 +14,10 @@ gnReturnCode gnCreateInstance(gnInstanceHandle* instance, gnInstanceInfo info) {
.layerToLoad = api_layer
}));
// TODO: still needs to check to see if the extension is supported
for (int i = 0; i < info.extensionCount; i++) {
if (info.extensions[i] == GN_EXT_SYNCHRONIZATION) (*instance)->layers.data[0].syncFunctions = loadAPISyncFunctions(info.renderingAPI);
}
for (int c = 0; c < GN_EXT_MAX; c++) (*instance)->enabledExtensions[c] = gnFalse;
for (int i = 0; i < info.extensionCount; i++) (*instance)->enabledExtensions[info.extensions[i]] = gnTrue;
if ((*instance)->enabledExtensions[GN_EXT_SYNCHRONIZATION]) (*instance)->layers.data[0].syncFunctions = loadAPISyncFunctions(info.renderingAPI);
gnBool loaderFunctionChecker = gnFalse;
if (info.debugger != NULL) {