forked from KhronosGroup/Vulkan-Samples
-
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.
- Loading branch information
0 parents
commit 55abaae
Showing
418 changed files
with
51,860 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,107 @@ | ||
--- | ||
Language: Cpp | ||
# BasedOnStyle: LLVM | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: true | ||
AlignEscapedNewlines: Left | ||
AlignOperands: true | ||
AlignTrailingComments: true | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
AlwaysBreakTemplateDeclarations: true | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterObjCDeclaration: true | ||
AfterStruct: true | ||
AfterUnion: true | ||
AfterExternBlock: true | ||
BeforeCatch: true | ||
BeforeElse: true | ||
IndentBraces: false | ||
SplitEmptyFunction: false | ||
SplitEmptyRecord: false | ||
SplitEmptyNamespace: false | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Custom | ||
BreakBeforeInheritanceComma: false | ||
BreakBeforeTernaryOperators: false | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakConstructorInitializers: AfterColon | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakStringLiterals: true | ||
ColumnLimit: 0 | ||
CommentPragmas: '^ IWYU pragma:' | ||
CompactNamespaces: false | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: true | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: true | ||
ForEachMacros: | ||
- foreach | ||
- Q_FOREACH | ||
- BOOST_FOREACH | ||
IncludeBlocks: Preserve | ||
IncludeIsMainRegex: '(Test)?$' | ||
IndentCaseLabels: true | ||
IndentPPDirectives: AfterHash | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: true | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
ObjCBinPackProtocolList: Auto | ||
ObjCBlockIndentWidth: 2 | ||
ObjCSpaceAfterProperty: false | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakAssignment: 2 | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
PointerAlignment: Right | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: true | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 8 | ||
SpacesInAngles: false | ||
SpacesInContainerLiterals: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Cpp11 | ||
TabWidth: 4 | ||
UseTab: ForIndentation | ||
... |
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,12 @@ | ||
.clang-format | ||
.gitignore | ||
.snakeignore | ||
.yml | ||
.gitmodules | ||
.jpg | ||
.png | ||
.ttf | ||
doxyfile | ||
build.gradle.in | ||
settings.gradle.in | ||
VERSION |
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,56 @@ | ||
<!-- | ||
- Copyright (c) 2019, Arm Limited and Contributors | ||
- | ||
- SPDX-License-Identifier: Apache-2.0 | ||
- | ||
- Licensed under the Apache License, Version 2.0 the "License"; | ||
- you may not use this file except in compliance with the License. | ||
- You may obtain a copy of the License at | ||
- | ||
- http://www.apache.org/licenses/LICENSE-2.0 | ||
- | ||
- Unless required by applicable law or agreed to in writing, software | ||
- distributed under the License is distributed on an "AS IS" BASIS, | ||
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
- See the License for the specific language governing permissions and | ||
- limitations under the License. | ||
- | ||
--> | ||
|
||
--- | ||
name: Issue template | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the issue** | ||
A clear and concise description of what the problem is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Run '...' | ||
2. Click on '....' | ||
3. View line '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop** | ||
- OS: [e.g. Windows 10] | ||
- GPU: [e.g. NVidia GeForce GTX 1080] | ||
|
||
**Smartphone** | ||
- Device: [e.g. Samsung S10] | ||
- OS: [e.g. Android 8.0] | ||
- GPU: [e.g. Mali G72] | ||
- Driver version [Report GL_VENDOR and GL_VERSION from chrome://gpu/ on the device] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,9 @@ | ||
assets/scenes | ||
build | ||
.vs | ||
.vscode | ||
imgui.ini | ||
./doxygen | ||
tests/system_test/artifacts | ||
tests/system_test/tmp | ||
output/* |
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,170 @@ | ||
stages: | ||
- Check | ||
- Build | ||
- Test | ||
- Package | ||
|
||
cache: | ||
key: ${CI_PIPELINE_ID} | ||
paths: | ||
- build/windows | ||
- build/linux | ||
- build/android | ||
- output | ||
|
||
Doxygen: | ||
stage: Check | ||
image: khronosgroup/vulkan-samples | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- mkdir -p doxygen | ||
- doxygen docs/doxygen/doxyfile | ||
- if [ $(stat -c%s doxygen/warnings.txt) -gt 0 ]; then cat doxygen/warnings.txt; exit 1; fi | ||
|
||
CopyrightHeaders: | ||
stage: Check | ||
image: khronosgroup/vulkan-samples | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- python3 /usr/local/bin/check_copyright_headers.py $TARGET_BRANCH | ||
|
||
SnakeCase: | ||
stage: Check | ||
image: khronosgroup/vulkan-samples | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- python3 /usr/local/bin/snake_case.py $TARGET_BRANCH > snake-report.txt | ||
- if [ $(grep -c '@@' snake-report.txt) -gt 0 ]; then cat snake-report.txt; exit 1; fi | ||
allow_failure: true | ||
|
||
ClangFormat: | ||
stage: Check | ||
image: khronosgroup/vulkan-samples | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- python3 /usr/local/bin/clang_format.py -v --diff $TARGET_BRANCH > clang-format-report.txt | ||
- 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 | ||
|
||
ClangTidy: | ||
stage: Check | ||
image: khronosgroup/vulkan-samples | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -H. -Bbuild/clang | ||
- 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/* | ||
|
||
Linux: | ||
stage: Build | ||
image: khronosgroup/vulkan-samples | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
artifacts: | ||
paths: | ||
- build/linux | ||
expire_in: 1h | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- cmake -G "Unix Makefiles" -H. -Bbuild/linux -DCMAKE_BUILD_TYPE=Release -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON | ||
- cmake --build build/linux --target vulkan_samples --config Release -- -j$(($(nproc)/2+1)) | ||
|
||
Windows: | ||
stage: Build | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
artifacts: | ||
paths: | ||
- build/windows | ||
expire_in: 1d | ||
tags: | ||
- gpu | ||
script: | ||
- cmake -G"Visual Studio 15 2017 Win64" -H. -Bbuild/windows -DVKB_BUILD_TESTS:BOOL=ON -DVKB_BUILD_SAMPLES:BOOL=ON | ||
- cmake --build build/windows --target vulkan_samples --config Release | ||
|
||
Android: | ||
stage: Build | ||
image: khronosgroup/vulkan-samples | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- cmake -G "Unix Makefiles" -H. -Bbuild/android -DCMAKE_TOOLCHAIN_FILE=bldsys/toolchain/android_gradle.cmake -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON | ||
- cmake --build build/android --config Release --target vulkan_samples_package -- -j$(($(nproc)/2+1)) | ||
|
||
GenerateSample: | ||
stage: Test | ||
image: khronosgroup/vulkan-samples | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
dependencies: | ||
- Linux | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- cd tests/generate_sample | ||
- python3 generate_sample_test.py | ||
|
||
SystemTest: | ||
stage: Test | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
artifacts: | ||
paths: | ||
- tests/system_test/artifacts | ||
expire_in: 1d | ||
when: on_failure | ||
dependencies: | ||
- Windows | ||
tags: | ||
- gpu | ||
script: | ||
- cd tests/system_test | ||
- python system_test.py -Bbuild/windows -CRelease -D -P | ||
|
||
LinuxExternalProject: | ||
stage: Package | ||
image: khronosgroup/vulkan-samples | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- cmake -Htests/external_project -Bbuild -DVKB_BUILD_SAMPLES=OFF | ||
|
||
WindowsExternalProject: | ||
stage: Package | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
tags: | ||
- gpu | ||
script: | ||
- cmake -Htests/external_project -Bbuild -DVKB_BUILD_SAMPLES=OFF | ||
|
||
AndroidExternalProject: | ||
stage: Package | ||
image: khronosgroup/vulkan-samples | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
tags: | ||
- linux | ||
- docker | ||
script: | ||
- cmake -DCMAKE_TOOLCHAIN_FILE=../../bldsys/toolchain/android_gradle.cmake -Htests/external_project -Bbuild -DVKB_BUILD_SAMPLES=OFF |
Oops, something went wrong.