remove old gnGetPhysicalDevices
This commit is contained in:
@@ -2,7 +2,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS on)
|
|||||||
project(GryphnVulkanImpl)
|
project(GryphnVulkanImpl)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
add_compile_definitions(GN_REVEAL_IMPL)
|
add_compile_definitions(GN_REVEAL_IMPL GN_IMPLEMENTATION)
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS "src/*.c" "src/*.h")
|
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS "src/*.c" "src/*.h")
|
||||||
file(GLOB_RECURSE LOADER_FILES CONFIGURE_DEPENDS "loader/*.c")
|
file(GLOB_RECURSE LOADER_FILES CONFIGURE_DEPENDS "loader/*.c")
|
||||||
|
@@ -8,14 +8,13 @@ gryphnInstanceFunctionLayers loadVulkanAPILayer(void) {
|
|||||||
return (gryphnInstanceFunctionLayers) {
|
return (gryphnInstanceFunctionLayers) {
|
||||||
.createInstance = vulkanCreateInstance,
|
.createInstance = vulkanCreateInstance,
|
||||||
.destroyInstance = vulkanDestroyInstance,
|
.destroyInstance = vulkanDestroyInstance,
|
||||||
|
.queryDevices = vulkanQueryDevices,
|
||||||
.next = NULL
|
.next = NULL
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
gnInstanceFunctions loadVulkanInstanceFunctions(void) {
|
gnInstanceFunctions loadVulkanInstanceFunctions(void) {
|
||||||
return (gnInstanceFunctions){
|
return (gnInstanceFunctions){
|
||||||
|
|
||||||
._gnGetPhysicalDevices = getPhysicalDevices,
|
|
||||||
._gnPhysicalDeviceCanPresentToSurface = deviceCanPresentToSurface,
|
._gnPhysicalDeviceCanPresentToSurface = deviceCanPresentToSurface,
|
||||||
|
|
||||||
._gnCreateOutputDevice = createVulkanOutputDevice,
|
._gnCreateOutputDevice = createVulkanOutputDevice,
|
||||||
|
@@ -2,11 +2,6 @@
|
|||||||
#include "instance/gryphn_instance.h"
|
#include "instance/gryphn_instance.h"
|
||||||
#include "loader/src/gryphn_instance_functions.h"
|
#include "loader/src/gryphn_instance_functions.h"
|
||||||
|
|
||||||
gnPhysicalDeviceHandle* gnGetPhyscialDevices(gnInstanceHandle instance, uint32_t* count) {;
|
|
||||||
gnPhysicalDeviceHandle* devices = instance->callingLayer->instanceFunctions._gnGetPhysicalDevices(instance, count);
|
|
||||||
return devices;
|
|
||||||
}
|
|
||||||
|
|
||||||
gnBool gnPhysicalDeviceCanPresentToSurface(gnInstanceHandle instance, gnPhysicalDeviceHandle device, gnWindowSurfaceHandle windowSurface) {
|
gnBool gnPhysicalDeviceCanPresentToSurface(gnInstanceHandle instance, gnPhysicalDeviceHandle device, gnWindowSurfaceHandle windowSurface) {
|
||||||
return instance->callingLayer->instanceFunctions._gnPhysicalDeviceCanPresentToSurface(device, windowSurface);
|
return instance->callingLayer->instanceFunctions._gnPhysicalDeviceCanPresentToSurface(device, windowSurface);
|
||||||
}
|
}
|
||||||
|
@@ -38,7 +38,6 @@ typedef struct gnPhysicalDeviceFeatures {
|
|||||||
// } gnPhysicalOutputDevice_t;
|
// } gnPhysicalOutputDevice_t;
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
gnPhysicalDeviceHandle* gnGetPhyscialDevices(gnInstanceHandle instance, uint32_t* count);
|
|
||||||
gnBool gnPhysicalDeviceCanPresentToSurface(gnInstance instance, gnPhysicalDeviceHandle device, gnWindowSurfaceHandle windowSurface);
|
gnBool gnPhysicalDeviceCanPresentToSurface(gnInstance instance, gnPhysicalDeviceHandle device, gnWindowSurfaceHandle windowSurface);
|
||||||
|
|
||||||
gnPhysicalDeviceProperties gnGetPhysicalDeviceProperties(gnPhysicalDeviceHandle device);
|
gnPhysicalDeviceProperties gnGetPhysicalDeviceProperties(gnPhysicalDeviceHandle device);
|
||||||
|
Reference in New Issue
Block a user