Fixed issue plane not showing up
This commit is contained in:
14
.gitignore
vendored
14
.gitignore
vendored
@@ -1,6 +1,16 @@
|
|||||||
.vscode
|
# Visual Studio 2024
|
||||||
bin
|
**.vcxproj
|
||||||
**.spv
|
**.spv
|
||||||
**.filters
|
**.filters
|
||||||
|
**.sln
|
||||||
|
# Visual Studio Code
|
||||||
|
.vscode
|
||||||
|
# Gnu Make
|
||||||
Makefile
|
Makefile
|
||||||
**/Makefile
|
**/Makefile
|
||||||
|
|
||||||
|
# project specific
|
||||||
|
libs
|
||||||
|
bin
|
||||||
|
obj
|
||||||
|
build
|
||||||
|
|||||||
33
CMakeLists.txt
Normal file
33
CMakeLists.txt
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
cmake_minimum_required(VERSION 4.0)
|
||||||
|
|
||||||
|
set(CXX_STANDARD 17)
|
||||||
|
set(CXX_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_GENERATOR_PLATFORM x64)
|
||||||
|
|
||||||
|
project (LearnVulkan VERSION 1.0.0)
|
||||||
|
|
||||||
|
# project 1
|
||||||
|
add_executable(HelloTriangle)
|
||||||
|
|
||||||
|
# linker settings
|
||||||
|
target_link_options(HelloTriangle PUBLIC nodefaultlibs)
|
||||||
|
target_link_directories( HelloTriangle PUBLIC )
|
||||||
|
target_link_libraries(HelloTriangle msvcrt user32 kernel32 libcmt gdi32 glu32 shell32 opengl32
|
||||||
|
glfw3 vulkan-1)
|
||||||
|
|
||||||
|
target_include_directories(HelloTriangle PUBLIC "c:/VulkanSDK/1.4.304.1/Include" "libs")
|
||||||
|
|
||||||
|
target_compile_definitions(HelloTriangle PUBLIC $<CONFIG:Release>:NDEBUG)
|
||||||
|
target_compile_definitions(HelloTriangle PUBLIC $<CONFIG:Debug>:DEBUG)
|
||||||
|
|
||||||
|
# project 2
|
||||||
|
add_executable(HelloVulkan)
|
||||||
|
|
||||||
|
# linker settings
|
||||||
|
target_link_options(HelloVulkan PUBLIC nodefaultlibs)
|
||||||
|
target_include_directories(HelloVulkan PUBLIC "c:/VulkanSDK/1.4.304.1/Include" "libs")
|
||||||
|
target_link_libraries(HelloVulkan msvcrt user32 kernel32 libcmt gdi32 glu32 shell32 opengl32
|
||||||
|
glfw3 vulkan-1)
|
||||||
|
|
||||||
|
target_compile_definitions(HelloVulkan PUBLIC $<CONFIG:Release>:NDEBUG)
|
||||||
|
target_compile_definitions(HelloVulkan PUBLIC $<CONFIG:Debug>:DEBUG)
|
||||||
13
HelloTriangle/compile_commands.json
Normal file
13
HelloTriangle/compile_commands.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"directory": "J:/git/Graphics API/LearnVulkan/HelloVulkan",
|
||||||
|
"file": "J:/git/Graphics API/LearnVulkan/HelloVulkan/main.cpp",
|
||||||
|
"command": "cc -MD -MP -DDEBUG -IC:/VulkanSDK/1.4.304.1/Include -I\"J:/git/Graphics API/LearnVulkan/libs\" -m64 -g -o J:/git/Graphics API/LearnVulkan/HelloVulkan/obj/Debug/main.o -MF J:/git/Graphics API/LearnVulkan/HelloVulkan/obj/Debug/main.d -c J:/git/Graphics API/LearnVulkan/HelloVulkan/main.cpp"
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"directory": "J:/git/Graphics API/LearnVulkan/HelloTriangle",
|
||||||
|
"file": "J:/git/Graphics API/LearnVulkan/HelloTriangle/main.cpp",
|
||||||
|
"command": "cc -MD -MP -DDEBUG -IC:/VulkanSDK/1.4.304.1/Include -I\"J:/git/Graphics API/LearnVulkan/libs\" -m64 -g -o J:/git/Graphics API/LearnVulkan/HelloTriangle/obj/Debug/main.o -MF J:/git/Graphics API/LearnVulkan/HelloTriangle/obj/Debug/main.d -c J:/git/Graphics API/LearnVulkan/HelloTriangle/main.cpp"
|
||||||
|
}
|
||||||
|
]
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,6 @@
|
|||||||
require("premake", ">=5.0-beta2")
|
|
||||||
|
|
||||||
project "HelloVulkan"
|
project "HelloVulkan"
|
||||||
files{
|
files {
|
||||||
"**.cpp",
|
"**.cpp",
|
||||||
"**.h"
|
"**.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
54
premake5.lua
54
premake5.lua
@@ -1,3 +1,5 @@
|
|||||||
|
require "../export-compile-commands"
|
||||||
|
|
||||||
workspace "LearnVulkan"
|
workspace "LearnVulkan"
|
||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
language "C++"
|
language "C++"
|
||||||
@@ -7,6 +9,7 @@ targetdir "%{prj.location}/bin/%{cfg.buildcfg}"
|
|||||||
|
|
||||||
configurations { "Debug", "Release" }
|
configurations { "Debug", "Release" }
|
||||||
|
|
||||||
|
|
||||||
filter "configurations:Debug"
|
filter "configurations:Debug"
|
||||||
defines { "DEBUG" }
|
defines { "DEBUG" }
|
||||||
symbols "On"
|
symbols "On"
|
||||||
@@ -16,46 +19,41 @@ defines { "NDEBUG" }
|
|||||||
optimize "On"
|
optimize "On"
|
||||||
|
|
||||||
filter "system:windows"
|
filter "system:windows"
|
||||||
-- buildoptions {
|
|
||||||
-- "/MD"
|
|
||||||
-- }
|
|
||||||
linkoptions {
|
linkoptions {
|
||||||
-- "/NODEFAULTLIB:library"
|
"-nodefaultlibs"
|
||||||
"-nodefaultlibs"
|
|
||||||
}
|
}
|
||||||
libdirs {
|
libdirs {
|
||||||
"C:/VulkanSDK/1.4.304.1/Lib",
|
"C:/VulkanSDK/1.4.304.1/Lib",
|
||||||
"libs/GLFW",
|
"libs/GLFW",
|
||||||
}
|
}
|
||||||
includedirs {
|
includedirs {
|
||||||
"C:/VulkanSDK/1.4.304.1/Include",
|
"C:/VulkanSDK/1.4.304.1/Include",
|
||||||
"libs"
|
"libs"
|
||||||
}
|
}
|
||||||
|
|
||||||
links {
|
links {
|
||||||
"msvcrt",
|
"msvcrt",
|
||||||
"user32",
|
"user32",
|
||||||
"kernel32",
|
"kernel32",
|
||||||
"libcmt",
|
"libcmt",
|
||||||
"gdi32",
|
"gdi32",
|
||||||
"glu32",
|
"glu32",
|
||||||
"shell32",
|
"shell32",
|
||||||
"opengl32",
|
"opengl32",
|
||||||
"glfw3",
|
"glfw3",
|
||||||
"vulkan-1"
|
"vulkan-1"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
filter "system:linux"
|
filter "system:linux"
|
||||||
links {
|
links {
|
||||||
"glfw3",
|
"glfw3",
|
||||||
"vulkan",
|
"vulkan",
|
||||||
"dl",
|
"dl",
|
||||||
"pthread",
|
"pthread",
|
||||||
"X11",
|
"X11",
|
||||||
"Xxf86vm",
|
"Xxf86vm",
|
||||||
"Xrandr",
|
"Xrandr",
|
||||||
"Xi"
|
"Xi"
|
||||||
}
|
}
|
||||||
|
|
||||||
include("HelloVulkan/premake5.lua")
|
include("HelloVulkan/premake5.lua")
|
||||||
|
|||||||
Reference in New Issue
Block a user