Skip to content

Commit 450d24b

Browse files
committed
Initial Commit
1 parent 09d206d commit 450d24b

File tree

9,366 files changed

+4044480
-2
lines changed

Some content is hidden

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

9,366 files changed

+4044480
-2
lines changed

.clang-format

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# C++ formatting
2+
3+
Language: Cpp
4+
BasedOnStyle: Chromium
5+
IndentWidth: 4
6+
ColumnLimit: 140
7+
AccessModifierOffset: -4
8+
SortIncludes: false
9+
SortUsingDeclarations: false
10+
SpaceAfterTemplateKeyword: false
11+
DerivePointerAlignment: false
12+
PointerAlignment: Left
13+
FixNamespaceComments: true
14+
15+
AllowAllConstructorInitializersOnNextLine: true
16+
BreakConstructorInitializers: BeforeComma
17+
AlwaysBreakTemplateDeclarations: true
18+
AllowShortFunctionsOnASingleLine: Inline
19+
AllowShortEnumsOnASingleLine: true
20+
BreakBeforeBraces: Custom
21+
BraceWrapping:
22+
AfterCaseLabel: true
23+
AfterClass: true
24+
AfterControlStatement: Always
25+
AfterEnum: true
26+
AfterFunction: true
27+
AfterNamespace: true
28+
AfterStruct: true
29+
AfterUnion: true
30+
AfterExternBlock: true
31+
BeforeCatch: true
32+
BeforeElse: true
33+
BeforeLambdaBody: true
34+
BeforeWhile: false
35+
SplitEmptyFunction: false
36+
SplitEmptyRecord: false
37+
SplitEmptyNamespace: false
38+
IndentCaseLabels: false
39+
40+
ReflowComments: true
41+
CommentPragmas: '^\\.+'
42+
SpacesBeforeTrailingComments: 1
43+
PenaltyBreakComment: 0
44+
AlignAfterOpenBracket: BlockIndent
45+
IndentPPDirectives: None
46+
PenaltyReturnTypeOnItsOwnLine: 100000
47+
PenaltyBreakTemplateDeclaration: 100000
48+
49+
---
50+
51+
# Slang formatting
52+
53+
Language: CSharp
54+
BasedOnStyle: Chromium
55+
IndentWidth: 4
56+
ColumnLimit: 140
57+
AccessModifierOffset: -4
58+
SortIncludes: false
59+
SortUsingDeclarations: false
60+
SpaceAfterTemplateKeyword: false
61+
DerivePointerAlignment: false
62+
PointerAlignment: Left
63+
FixNamespaceComments: true
64+
65+
AllowAllConstructorInitializersOnNextLine: true
66+
BreakConstructorInitializers: BeforeComma
67+
AlwaysBreakTemplateDeclarations: true
68+
AllowShortFunctionsOnASingleLine: Inline
69+
AllowShortEnumsOnASingleLine: true
70+
BreakBeforeBraces: Custom
71+
BraceWrapping:
72+
AfterCaseLabel: true
73+
AfterClass: true
74+
AfterControlStatement: Always
75+
AfterEnum: true
76+
AfterFunction: true
77+
AfterNamespace: true
78+
AfterStruct: true
79+
AfterUnion: true
80+
AfterExternBlock: true
81+
BeforeCatch: true
82+
BeforeElse: true
83+
BeforeLambdaBody: true
84+
BeforeWhile: false
85+
SplitEmptyFunction: false
86+
SplitEmptyRecord: false
87+
SplitEmptyNamespace: false
88+
IndentCaseLabels: false
89+
90+
ReflowComments: true
91+
CommentPragmas: '^\\.+'
92+
SpacesBeforeTrailingComments: 1
93+
PenaltyBreakComment: 0
94+
AlignAfterOpenBracket: BlockIndent
95+
IndentPPDirectives: None
96+
PenaltyReturnTypeOnItsOwnLine: 100000
97+
PenaltyBreakTemplateDeclaration: 100000

.clang-format-ignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Source/Falcor/Rendering
2+
Source/Falcor/Scene
3+
Source/Mogwai
4+
Source/plugins/importers/USDImporter
5+
Source/RenderPasses
6+
7+
# Explicitly whitelisted files
8+
!Source/Falcor/Rendering/Materials/BSDFs
9+
!Source/RenderPasses/DLSSPass/
10+

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Allow looking at files higher up in the directory tree
2+
root = false
3+
4+
# Set default editor config for all files:
5+
# - use utf-8 as default
6+
# - 4 spaces, no trailing whitespaces
7+
# - final newline for slightly cleaner diffs when changing the last line
8+
[*]
9+
charset = utf-8
10+
indent_size = 4
11+
indent_style = space
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
# Override trailing whitespace setting for Markdown since there it's actually useful
16+
[*.{md}]
17+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
# Format slang files as HLSL.
4+
*.slang gitlab-language=hlsl
5+
*.slangh gitlab-language=hlsl

.github/workflows/compile.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: compile
2+
3+
on:
4+
pull_request:
5+
branches: ["master"]
6+
7+
env:
8+
CMAKE_EXE: tools\.packman\cmake\bin\cmake.exe
9+
CMAKE_BUILD_PRESET: windows-ninja-msvc-ci
10+
CMAKE_BUILD_CONFIG: Release
11+
12+
jobs:
13+
windows:
14+
name: Windows/MSVC
15+
runs-on: windows-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
submodules: recursive
21+
- name: Setup
22+
run: setup.bat
23+
shell: cmd
24+
- name: Setup MSVC
25+
uses: ilammy/msvc-dev-cmd@v1
26+
with:
27+
arch: x64
28+
sdk: 10.0.19041.0
29+
toolset: 14.30
30+
- name: Build
31+
run: |
32+
%CMAKE_EXE% --preset %CMAKE_BUILD_PRESET%
33+
%CMAKE_EXE% --build build/%CMAKE_BUILD_PRESET% --config %CMAKE_BUILD_CONFIG%
34+
shell: cmd

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Build folder.
2+
/build/
3+
4+
# Test output folder.
5+
/tests/data/
6+
7+
# Media folders.
8+
/media
9+
/media_internal
10+
11+
# Packman folders.
12+
/external/packman/
13+
/tools/.packman/
14+
15+
# IDE folders.
16+
/.vs/
17+
/.vscode/
18+
19+
# User files.
20+
/CMakeUserPresets.json
21+
22+
# File types.
23+
*.user
24+
*.suo
25+
*.pyc
26+
*.VC.db
27+
*.VC.opendb
28+
*.pyc
29+
*slang-dump-*
30+
*.mp4
31+
*.tlog
32+
*.bak

.gitmodules

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[submodule "external/pybind11"]
2+
path = external/pybind11
3+
url = https://github.com/skallweitNV/pybind11.git
4+
[submodule "external/glfw"]
5+
path = external/glfw
6+
url = https://github.com/glfw/glfw.git
7+
[submodule "external/args"]
8+
path = external/args
9+
url = https://github.com/Taywee/args.git
10+
[submodule "external/fmt"]
11+
path = external/fmt
12+
url = https://github.com/fmtlib/fmt.git
13+
[submodule "external/imgui"]
14+
path = external/imgui
15+
url = https://github.com/ocornut/imgui.git
16+
[submodule "external/vulkan-headers"]
17+
path = external/vulkan-headers
18+
url = https://github.com/KhronosGroup/Vulkan-Headers

.vscode-default/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig",
4+
"ms-vscode.cpptools",
5+
"ms-vscode.cmake-tools",
6+
"josetr.cmake-language-support-vscode",
7+
"shader-slang.slang-language-extension"
8+
]
9+
}

.vscode-default/launch.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
//
6+
// Note: These launch configurations rely on the ms-vscode.cmake-tools extension
7+
// to provide ${command:cmake.launchTargetPath} and ${command:cmake.launchTargetDirectory}.
8+
//
9+
"version": "0.2.0",
10+
"configurations": [
11+
{
12+
// Launch configuration for currently selected target.
13+
"name": "Selected CMake Target",
14+
"type": "cppvsdbg",
15+
"request": "launch",
16+
"program": "${command:cmake.launchTargetPath}",
17+
"args": [],
18+
"stopAtEntry": false,
19+
"cwd": "${command:cmake.launchTargetDirectory}",
20+
"environment": [
21+
{
22+
"name": "FALCOR_DEVMODE",
23+
"value": "1"
24+
}
25+
],
26+
"visualizerFile": "${workspaceFolder}/Source/Falcor/Falcor.natvis"
27+
},
28+
{
29+
// Launch configuration for Mogwai.
30+
"name": "Mogwai",
31+
"type": "cppvsdbg",
32+
"request": "launch",
33+
"windows": {
34+
"program": "${command:cmake.launchTargetDirectory}/Mogwai.exe"
35+
},
36+
"args": [],
37+
"stopAtEntry": false,
38+
"cwd": "${command:cmake.launchTargetDirectory}",
39+
"environment": [
40+
{
41+
"name": "FALCOR_DEVMODE",
42+
"value": "1"
43+
}
44+
],
45+
"visualizerFile": "${workspaceFolder}/Source/Falcor/Falcor.natvis"
46+
},
47+
{
48+
// Launch configuration for FalcorTest.
49+
"name": "FalcorTest",
50+
"type": "cppvsdbg",
51+
"request": "launch",
52+
"windows": {
53+
"program": "${command:cmake.launchTargetDirectory}/FalcorTest.exe"
54+
},
55+
"args": [],
56+
"stopAtEntry": false,
57+
"cwd": "${command:cmake.launchTargetDirectory}",
58+
"environment": [
59+
{
60+
"name": "FALCOR_DEVMODE",
61+
"value": "1"
62+
}
63+
],
64+
"visualizerFile": "${workspaceFolder}/Source/Falcor/Falcor.natvis"
65+
},
66+
{
67+
// Launch configuration for Python example.
68+
"name": "Python Example",
69+
"type": "cppvsdbg",
70+
"request": "launch",
71+
"windows": {
72+
"program": "${config:python.defaultInterpreterPath}"
73+
},
74+
"args": [ "${workspaceFolder}/scripts/internal/python/simple.py" ],
75+
"stopAtEntry": false,
76+
"cwd": "${command:cmake.launchTargetDirectory}",
77+
"environment": [
78+
{
79+
"name": "FALCOR_DEVMODE",
80+
"value": "1"
81+
}
82+
],
83+
"internalConsoleOptions": "openOnSessionStart",
84+
"visualizerFile": "${workspaceFolder}/Source/Falcor/Falcor.natvis"
85+
}
86+
]
87+
}

.vscode-default/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"files.associations": {
3+
"*.pyscene": "python"
4+
},
5+
"cmake.configureOnEdit": false,
6+
"C_Cpp.clang_format_path": "${workspaceFolder}/tools/.packman/clang-format/clang-format",
7+
"slang.format.clangFormatLocation": "${workspaceFolder}/tools/.packman/clang-format/clang-format"
8+
}

0 commit comments

Comments
 (0)