Skip to content

Commit 55abaae

Browse files
Initial commit
0 parents  commit 55abaae

File tree

418 files changed

+51860
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

418 files changed

+51860
-0
lines changed

.clang-format

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: LLVM
4+
AccessModifierOffset: -2
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: true
7+
AlignConsecutiveDeclarations: true
8+
AlignEscapedNewlines: Left
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: None
15+
AllowShortIfStatementsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: false
20+
AlwaysBreakTemplateDeclarations: true
21+
BinPackArguments: true
22+
BinPackParameters: true
23+
BraceWrapping:
24+
AfterClass: true
25+
AfterControlStatement: true
26+
AfterEnum: true
27+
AfterFunction: true
28+
AfterNamespace: true
29+
AfterObjCDeclaration: true
30+
AfterStruct: true
31+
AfterUnion: true
32+
AfterExternBlock: true
33+
BeforeCatch: true
34+
BeforeElse: true
35+
IndentBraces: false
36+
SplitEmptyFunction: false
37+
SplitEmptyRecord: false
38+
SplitEmptyNamespace: false
39+
BreakBeforeBinaryOperators: None
40+
BreakBeforeBraces: Custom
41+
BreakBeforeInheritanceComma: false
42+
BreakBeforeTernaryOperators: false
43+
BreakConstructorInitializersBeforeComma: false
44+
BreakConstructorInitializers: AfterColon
45+
BreakAfterJavaFieldAnnotations: false
46+
BreakStringLiterals: true
47+
ColumnLimit: 0
48+
CommentPragmas: '^ IWYU pragma:'
49+
CompactNamespaces: false
50+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
51+
ConstructorInitializerIndentWidth: 4
52+
ContinuationIndentWidth: 4
53+
Cpp11BracedListStyle: true
54+
DerivePointerAlignment: false
55+
DisableFormat: false
56+
ExperimentalAutoDetectBinPacking: false
57+
FixNamespaceComments: true
58+
ForEachMacros:
59+
- foreach
60+
- Q_FOREACH
61+
- BOOST_FOREACH
62+
IncludeBlocks: Preserve
63+
IncludeIsMainRegex: '(Test)?$'
64+
IndentCaseLabels: true
65+
IndentPPDirectives: AfterHash
66+
IndentWidth: 4
67+
IndentWrappedFunctionNames: true
68+
JavaScriptQuotes: Leave
69+
JavaScriptWrapImports: true
70+
KeepEmptyLinesAtTheStartOfBlocks: false
71+
MacroBlockBegin: ''
72+
MacroBlockEnd: ''
73+
MaxEmptyLinesToKeep: 1
74+
NamespaceIndentation: None
75+
ObjCBinPackProtocolList: Auto
76+
ObjCBlockIndentWidth: 2
77+
ObjCSpaceAfterProperty: false
78+
ObjCSpaceBeforeProtocolList: true
79+
PenaltyBreakAssignment: 2
80+
PenaltyBreakBeforeFirstCallParameter: 19
81+
PenaltyBreakComment: 300
82+
PenaltyBreakFirstLessLess: 120
83+
PenaltyBreakString: 1000
84+
PenaltyExcessCharacter: 1000000
85+
PenaltyReturnTypeOnItsOwnLine: 60
86+
PointerAlignment: Right
87+
ReflowComments: true
88+
SortIncludes: true
89+
SortUsingDeclarations: true
90+
SpaceAfterCStyleCast: true
91+
SpaceAfterTemplateKeyword: true
92+
SpaceBeforeAssignmentOperators: true
93+
SpaceBeforeCtorInitializerColon: true
94+
SpaceBeforeInheritanceColon: true
95+
SpaceBeforeParens: ControlStatements
96+
SpaceBeforeRangeBasedForLoopColon: true
97+
SpaceInEmptyParentheses: false
98+
SpacesBeforeTrailingComments: 8
99+
SpacesInAngles: false
100+
SpacesInContainerLiterals: false
101+
SpacesInCStyleCastParentheses: false
102+
SpacesInParentheses: false
103+
SpacesInSquareBrackets: false
104+
Standard: Cpp11
105+
TabWidth: 4
106+
UseTab: ForIndentation
107+
...

.copyrightignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.clang-format
2+
.gitignore
3+
.snakeignore
4+
.yml
5+
.gitmodules
6+
.jpg
7+
.png
8+
.ttf
9+
doxyfile
10+
build.gradle.in
11+
settings.gradle.in
12+
VERSION
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!--
2+
- Copyright (c) 2019, Arm Limited and Contributors
3+
-
4+
- SPDX-License-Identifier: Apache-2.0
5+
-
6+
- Licensed under the Apache License, Version 2.0 the "License";
7+
- you may not use this file except in compliance with the License.
8+
- You may obtain a copy of the License at
9+
-
10+
- http://www.apache.org/licenses/LICENSE-2.0
11+
-
12+
- Unless required by applicable law or agreed to in writing, software
13+
- distributed under the License is distributed on an "AS IS" BASIS,
14+
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
- See the License for the specific language governing permissions and
16+
- limitations under the License.
17+
-
18+
-->
19+
20+
---
21+
name: Issue template
22+
about: Create a report to help us improve
23+
title: ''
24+
labels: ''
25+
assignees: ''
26+
27+
---
28+
29+
**Describe the issue**
30+
A clear and concise description of what the problem is.
31+
32+
**To Reproduce**
33+
Steps to reproduce the behavior:
34+
1. Run '...'
35+
2. Click on '....'
36+
3. View line '....'
37+
4. See error
38+
39+
**Expected behavior**
40+
A clear and concise description of what you expected to happen.
41+
42+
**Screenshots**
43+
If applicable, add screenshots to help explain your problem.
44+
45+
**Desktop**
46+
- OS: [e.g. Windows 10]
47+
- GPU: [e.g. NVidia GeForce GTX 1080]
48+
49+
**Smartphone**
50+
- Device: [e.g. Samsung S10]
51+
- OS: [e.g. Android 8.0]
52+
- GPU: [e.g. Mali G72]
53+
- Driver version [Report GL_VENDOR and GL_VERSION from chrome://gpu/ on the device]
54+
55+
**Additional context**
56+
Add any other context about the problem here.

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
assets/scenes
2+
build
3+
.vs
4+
.vscode
5+
imgui.ini
6+
./doxygen
7+
tests/system_test/artifacts
8+
tests/system_test/tmp
9+
output/*

.gitlab-ci.yml

+170
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
stages:
2+
- Check
3+
- Build
4+
- Test
5+
- Package
6+
7+
cache:
8+
key: ${CI_PIPELINE_ID}
9+
paths:
10+
- build/windows
11+
- build/linux
12+
- build/android
13+
- output
14+
15+
Doxygen:
16+
stage: Check
17+
image: khronosgroup/vulkan-samples
18+
tags:
19+
- linux
20+
- docker
21+
script:
22+
- mkdir -p doxygen
23+
- doxygen docs/doxygen/doxyfile
24+
- if [ $(stat -c%s doxygen/warnings.txt) -gt 0 ]; then cat doxygen/warnings.txt; exit 1; fi
25+
26+
CopyrightHeaders:
27+
stage: Check
28+
image: khronosgroup/vulkan-samples
29+
tags:
30+
- linux
31+
- docker
32+
script:
33+
- python3 /usr/local/bin/check_copyright_headers.py $TARGET_BRANCH
34+
35+
SnakeCase:
36+
stage: Check
37+
image: khronosgroup/vulkan-samples
38+
tags:
39+
- linux
40+
- docker
41+
script:
42+
- python3 /usr/local/bin/snake_case.py $TARGET_BRANCH > snake-report.txt
43+
- if [ $(grep -c '@@' snake-report.txt) -gt 0 ]; then cat snake-report.txt; exit 1; fi
44+
allow_failure: true
45+
46+
ClangFormat:
47+
stage: Check
48+
image: khronosgroup/vulkan-samples
49+
tags:
50+
- linux
51+
- docker
52+
script:
53+
- python3 /usr/local/bin/clang_format.py -v --diff $TARGET_BRANCH > clang-format-report.txt
54+
- if [ $(grep -c 'clang-format did not modify any files' clang-format-report.txt) -eq 0 ] && [ $(grep -c 'no modified files to format' clang-format-report.txt) -eq 0 ]; then cat clang-format-report.txt; exit 1; fi
55+
56+
ClangTidy:
57+
stage: Check
58+
image: khronosgroup/vulkan-samples
59+
variables:
60+
GIT_SUBMODULE_STRATEGY: recursive
61+
tags:
62+
- linux
63+
- docker
64+
script:
65+
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -H. -Bbuild/clang
66+
- python3 /usr/local/bin/run-clang-tidy.py -j $(($(nproc)/2+1)) -p build/clang -clang-tidy-binary=clang-tidy-8 -header-filter=framework,samples,vulkan_samples -checks=-*,google-*,-google-runtime-references -quiet framework/* samples/* vulkan_samples/* tests/*
67+
68+
Linux:
69+
stage: Build
70+
image: khronosgroup/vulkan-samples
71+
variables:
72+
GIT_SUBMODULE_STRATEGY: recursive
73+
artifacts:
74+
paths:
75+
- build/linux
76+
expire_in: 1h
77+
tags:
78+
- linux
79+
- docker
80+
script:
81+
- cmake -G "Unix Makefiles" -H. -Bbuild/linux -DCMAKE_BUILD_TYPE=Release -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON
82+
- cmake --build build/linux --target vulkan_samples --config Release -- -j$(($(nproc)/2+1))
83+
84+
Windows:
85+
stage: Build
86+
variables:
87+
GIT_SUBMODULE_STRATEGY: recursive
88+
artifacts:
89+
paths:
90+
- build/windows
91+
expire_in: 1d
92+
tags:
93+
- gpu
94+
script:
95+
- cmake -G"Visual Studio 15 2017 Win64" -H. -Bbuild/windows -DVKB_BUILD_TESTS:BOOL=ON -DVKB_BUILD_SAMPLES:BOOL=ON
96+
- cmake --build build/windows --target vulkan_samples --config Release
97+
98+
Android:
99+
stage: Build
100+
image: khronosgroup/vulkan-samples
101+
variables:
102+
GIT_SUBMODULE_STRATEGY: recursive
103+
tags:
104+
- linux
105+
- docker
106+
script:
107+
- cmake -G "Unix Makefiles" -H. -Bbuild/android -DCMAKE_TOOLCHAIN_FILE=bldsys/toolchain/android_gradle.cmake -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON
108+
- cmake --build build/android --config Release --target vulkan_samples_package -- -j$(($(nproc)/2+1))
109+
110+
GenerateSample:
111+
stage: Test
112+
image: khronosgroup/vulkan-samples
113+
variables:
114+
GIT_SUBMODULE_STRATEGY: recursive
115+
dependencies:
116+
- Linux
117+
tags:
118+
- linux
119+
- docker
120+
script:
121+
- cd tests/generate_sample
122+
- python3 generate_sample_test.py
123+
124+
SystemTest:
125+
stage: Test
126+
variables:
127+
GIT_SUBMODULE_STRATEGY: recursive
128+
artifacts:
129+
paths:
130+
- tests/system_test/artifacts
131+
expire_in: 1d
132+
when: on_failure
133+
dependencies:
134+
- Windows
135+
tags:
136+
- gpu
137+
script:
138+
- cd tests/system_test
139+
- python system_test.py -Bbuild/windows -CRelease -D -P
140+
141+
LinuxExternalProject:
142+
stage: Package
143+
image: khronosgroup/vulkan-samples
144+
variables:
145+
GIT_SUBMODULE_STRATEGY: recursive
146+
tags:
147+
- linux
148+
- docker
149+
script:
150+
- cmake -Htests/external_project -Bbuild -DVKB_BUILD_SAMPLES=OFF
151+
152+
WindowsExternalProject:
153+
stage: Package
154+
variables:
155+
GIT_SUBMODULE_STRATEGY: recursive
156+
tags:
157+
- gpu
158+
script:
159+
- cmake -Htests/external_project -Bbuild -DVKB_BUILD_SAMPLES=OFF
160+
161+
AndroidExternalProject:
162+
stage: Package
163+
image: khronosgroup/vulkan-samples
164+
variables:
165+
GIT_SUBMODULE_STRATEGY: recursive
166+
tags:
167+
- linux
168+
- docker
169+
script:
170+
- cmake -DCMAKE_TOOLCHAIN_FILE=../../bldsys/toolchain/android_gradle.cmake -Htests/external_project -Bbuild -DVKB_BUILD_SAMPLES=OFF

0 commit comments

Comments
 (0)