update some stuff
This commit is contained in:
@@ -28,13 +28,13 @@ if (APPLE)
|
||||
set(VULKAN_BUILT ON)
|
||||
set(METAL_BUILT ON)
|
||||
endif()
|
||||
# add_subdirectory(projects/utils)
|
||||
add_subdirectory(projects/utils)
|
||||
add_subdirectory(projects/loader) # build gryphn loader
|
||||
add_subdirectory(projects/core) # build gryphn core
|
||||
add_subdirectory(projects/extensions)
|
||||
add_subdirectory(projects/platform) # build gryphn platform
|
||||
add_subdirectory(projects/validation_layers/function_loader/)
|
||||
target_link_libraries(Gryphn INTERFACE GryphnCore GryphnLoader GryphnPlatform GryphnFunctionValidator GryphnExtensions)
|
||||
target_link_libraries(Gryphn INTERFACE GryphnUtils GryphnCore GryphnLoader GryphnPlatform GryphnFunctionValidator GryphnExtensions)
|
||||
|
||||
if (VULKAN_BUILT)
|
||||
target_link_libraries(Gryphn INTERFACE GryphnVulkanImpl)
|
||||
|
@@ -22,7 +22,7 @@ gnBool gnIsSurfaceFormatSupported(
|
||||
) {
|
||||
uint32_t formatCount = 0;
|
||||
gnSurfaceFormat* formats = gnGetSupportedSurfaceFormats(windowSurface, device, &formatCount);
|
||||
for (int i = 0; i < formatCount; i++) {
|
||||
for (uint32_t i = 0; i < formatCount; i++) {
|
||||
if (formats[i].format == format.format && formats[i].colorSpace == format.colorSpace) {
|
||||
return GN_TRUE;
|
||||
}
|
||||
@@ -37,14 +37,14 @@ gnSurfaceFormat gnGetPreferredSurfaceFormat(
|
||||
) {
|
||||
uint32_t formatCount = 0;
|
||||
gnSurfaceFormat* formats = gnGetSupportedSurfaceFormats(windowSurface, device, &formatCount);
|
||||
for (int i = 0; i < formatCount; i++) {
|
||||
for (uint32_t i = 0; i < formatCount; i++) {
|
||||
if (formats[i].format == format.format && formats[i].colorSpace == format.colorSpace) {
|
||||
return formats[i];
|
||||
}
|
||||
}
|
||||
|
||||
// will attempt to give you a simmilar format that either matches the Image format and the Color space
|
||||
for (int i = 0; i < formatCount; i++) {
|
||||
for (uint32_t i = 0; i < formatCount; i++) {
|
||||
if (formats[i].format == format.format || formats[i].colorSpace == format.colorSpace) {
|
||||
return formats[i];
|
||||
}
|
||||
|
Submodule projects/utils updated: b6a25dd41b...a9aa97be63
Reference in New Issue
Block a user