-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from alfonsmagd/feature/CreateContextVK
Feature/create context vk
- Loading branch information
Showing
74 changed files
with
37,994 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,3 +139,4 @@ yarn-error.log | |
# Build directory | ||
/build/ | ||
/Logos | ||
/Ifnity/Ifnity/vendor/imgui/examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <d3d11.h> | ||
|
||
int main() | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <d3d12.h> | ||
|
||
int main() | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# FindGraphicsAPIs.cmake | ||
|
||
|
||
#Try compile D3D12 example | ||
if(WIN32) | ||
try_compile(D3D12_COMPILE_SUCCEEDED | ||
"${PROJECT_SOURCE_DIR}/CmakeCheck" | ||
"${PROJECT_SOURCE_DIR}/CmakeCheck/CheckD3D12.cpp" | ||
OUTPUT_VARIABLE D3D12_COMPILE_OUTPUT | ||
) | ||
try_compile(D3D11_COMPILE_SUCCEEDED | ||
"${PROJECT_SOURCE_DIR}/CmakeCheck" | ||
"${PROJECT_SOURCE_DIR}/CmakeCheck/CheckD3D11.cpp" | ||
OUTPUT_VARIABLE D3D11_COMPILE_OUTPUT | ||
) | ||
if(D3D12_COMPILE_SUCCEEDED) | ||
message(STATUS "D3D12 is supported.") | ||
else() | ||
message(STATUS "D3D12 IS NOT SUPPORTED. ${D3D12_COMPILE_OUTPUT}") | ||
endif() | ||
|
||
if(D3D11_COMPILE_SUCCEEDED) | ||
message(STATUS "D3D11 is supported") | ||
else() | ||
message(STATUS "D3D11 IS NOT SUPPORTED. ${D3D11_COMPILE_OUTPUT}") | ||
endif() | ||
endif() | ||
|
||
# Find Vulkan | ||
find_package(Vulkan REQUIRED) | ||
|
||
# Find OpenGL | ||
find_package(OpenGL REQUIRED) | ||
|
||
|
||
|
||
if(NOT Vulkan_FOUND) | ||
message(FATAL_ERROR "Vulkan was not found on the system.") | ||
else() | ||
message(STATUS "Vulkan found: ${Vulkan_LIBRARY}") | ||
endif() | ||
|
||
if(NOT OpenGL_FOUND) | ||
message(FATAL_ERROR "OpenGL was not found on the system.") | ||
else() | ||
message(STATUS "OpenGL found: ${OpenGL_LIBRARY}") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.