not totally sure what I did
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "gryphn_loader.h"
|
||||
#include <validation_layers/function_loader/loader/function_loader.h>
|
||||
#ifdef GN_API_VULKAN
|
||||
#include <apis/vulkan/loader/vulkan_loader.h>
|
||||
#endif
|
||||
@@ -6,8 +7,9 @@
|
||||
#include <apis/metal/loader/metal_loader.h>
|
||||
#endif
|
||||
|
||||
gnInstanceFunctions loadInstanceFunctions(loaderInfo info) {
|
||||
switch (info.api) {
|
||||
// load the speedy API functions or something like that
|
||||
gnInstanceFunctions loadAPIFunctions(gnRenderingAPI api) {
|
||||
switch (api) {
|
||||
case GN_RENDERINGAPI_NONE: return (gnInstanceFunctions){ NULL };
|
||||
case GN_RENDERINGAPI_VULKAN: return loadVulkanInstanceFunctions(info);
|
||||
|
||||
@@ -22,6 +24,15 @@ gnInstanceFunctions loadInstanceFunctions(loaderInfo info) {
|
||||
}
|
||||
}
|
||||
|
||||
gnInstanceFunctions loadInstanceFunctions(loaderInfo info) {
|
||||
gnInstanceFunctions apiFunctions = loadAPIFunctions(info.api);
|
||||
|
||||
if (info.validateIfLoaded)
|
||||
return loadFunctionLoaderInstanceFunctions(&apiFunctions);
|
||||
|
||||
return apiFunctions;
|
||||
}
|
||||
|
||||
gnDeviceFunctions loadDeviceFunctions(loaderInfo info) {
|
||||
switch (info.api) {
|
||||
case GN_RENDERINGAPI_NONE: return (gnDeviceFunctions){ NULL };
|
||||
|
Reference in New Issue
Block a user