Fixed issue plane not showing up
This commit is contained in:
14
.gitignore
vendored
14
.gitignore
vendored
@@ -1,6 +1,16 @@
|
||||
.vscode
|
||||
bin
|
||||
# Visual Studio 2024
|
||||
**.vcxproj
|
||||
**.spv
|
||||
**.filters
|
||||
**.sln
|
||||
# Visual Studio Code
|
||||
.vscode
|
||||
# Gnu Make
|
||||
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"
|
||||
files{
|
||||
"**.cpp",
|
||||
"**.h"
|
||||
}
|
||||
|
||||
files {
|
||||
"**.cpp",
|
||||
"**.h"
|
||||
}
|
||||
|
||||
|
||||
54
premake5.lua
54
premake5.lua
@@ -1,3 +1,5 @@
|
||||
require "../export-compile-commands"
|
||||
|
||||
workspace "LearnVulkan"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
@@ -7,6 +9,7 @@ targetdir "%{prj.location}/bin/%{cfg.buildcfg}"
|
||||
|
||||
configurations { "Debug", "Release" }
|
||||
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines { "DEBUG" }
|
||||
symbols "On"
|
||||
@@ -16,46 +19,41 @@ defines { "NDEBUG" }
|
||||
optimize "On"
|
||||
|
||||
filter "system:windows"
|
||||
-- buildoptions {
|
||||
-- "/MD"
|
||||
-- }
|
||||
linkoptions {
|
||||
-- "/NODEFAULTLIB:library"
|
||||
"-nodefaultlibs"
|
||||
"-nodefaultlibs"
|
||||
}
|
||||
libdirs {
|
||||
"C:/VulkanSDK/1.4.304.1/Lib",
|
||||
"libs/GLFW",
|
||||
"C:/VulkanSDK/1.4.304.1/Lib",
|
||||
"libs/GLFW",
|
||||
}
|
||||
includedirs {
|
||||
"C:/VulkanSDK/1.4.304.1/Include",
|
||||
"libs"
|
||||
"C:/VulkanSDK/1.4.304.1/Include",
|
||||
"libs"
|
||||
}
|
||||
|
||||
links {
|
||||
"msvcrt",
|
||||
"user32",
|
||||
"kernel32",
|
||||
"libcmt",
|
||||
"gdi32",
|
||||
"glu32",
|
||||
"shell32",
|
||||
"opengl32",
|
||||
"glfw3",
|
||||
"vulkan-1"
|
||||
|
||||
"msvcrt",
|
||||
"user32",
|
||||
"kernel32",
|
||||
"libcmt",
|
||||
"gdi32",
|
||||
"glu32",
|
||||
"shell32",
|
||||
"opengl32",
|
||||
"glfw3",
|
||||
"vulkan-1"
|
||||
}
|
||||
|
||||
filter "system:linux"
|
||||
links {
|
||||
"glfw3",
|
||||
"vulkan",
|
||||
"dl",
|
||||
"pthread",
|
||||
"X11",
|
||||
"Xxf86vm",
|
||||
"Xrandr",
|
||||
"Xi"
|
||||
"glfw3",
|
||||
"vulkan",
|
||||
"dl",
|
||||
"pthread",
|
||||
"X11",
|
||||
"Xxf86vm",
|
||||
"Xrandr",
|
||||
"Xi"
|
||||
}
|
||||
|
||||
include("HelloVulkan/premake5.lua")
|
||||
|
||||
Reference in New Issue
Block a user