Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Vulkan Workshop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
Vulkan Workshop
Commits
dc9d02f7
Commit
dc9d02f7
authored
1 year ago
by
n0F4x
Browse files
Options
Downloads
Patches
Plain Diff
Test libraries
parent
410a2252
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.clang-format
+4
-4
4 additions, 4 deletions
.clang-format
CMakeLists.txt
+2
-2
2 additions, 2 deletions
CMakeLists.txt
src/main.cpp
+13
-1
13 additions, 1 deletion
src/main.cpp
with
19 additions
and
7 deletions
.clang-format
+
4
−
4
View file @
dc9d02f7
...
...
@@ -84,13 +84,13 @@ IfMacros: [ 'IF' ]
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<glm/'
Priority: 1
- Regex: '^<vulkan/'
Priority: 2
- Regex: '<v
k_mem_alloc.h>
'
- Regex: '
^
<v
ulkan/
'
Priority: 3
- Regex: '^<
glfw/
'
- Regex: '^<
vk_mem_alloc.h>
'
Priority: 4
- Regex: '^<GLFW/'
Priority: 5
- Regex: '^<.*\..*'
Priority: 998
- Regex: '^<.*'
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
2
−
2
View file @
dc9d02f7
...
...
@@ -85,13 +85,13 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
target_link_libraries
(
${
PROJECT_NAME
}
PRIVATE VulkanMemoryAllocator
)
# GLFW
FetchContent_Declare
(
GLFW
FetchContent_Declare
(
glfw3
GIT_REPOSITORY https://github.com/glfw/glfw.git
GIT_TAG 3.4
GIT_PROGRESS TRUE
SYSTEM
)
FetchContent_MakeAvailable
(
GLFW
)
FetchContent_MakeAvailable
(
glfw3
)
target_compile_definitions
(
${
PROJECT_NAME
}
PRIVATE
GLFW_INCLUDE_VULKAN
)
...
...
This diff is collapsed.
Click to expand it.
src/main.cpp
+
13
−
1
View file @
dc9d02f7
#include
<iostream>
#include
<glm/glm.hpp>
#include
<vulkan/vulkan.hpp>
#include
<vk_mem_alloc.h>
#include
<GLFW/glfw3.h>
int
main
()
{
std
::
cout
<<
"Hello World!
\n
"
;
std
::
cout
<<
GLM_VERSION_MESSAGE
<<
'\n'
;
std
::
cout
<<
"Vulkan-Hpp C++ version: "
<<
VULKAN_HPP_CPP_VERSION
<<
'\n'
;
std
::
cout
<<
"Vulkan Version found by VMA: "
<<
VMA_VULKAN_VERSION
<<
'\n'
;
std
::
cout
<<
"GLFW version: "
<<
GLFW_VERSION_MAJOR
<<
'.'
<<
GLFW_VERSION_MINOR
<<
'\n'
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment