Skip to content

Commit 06b797a

Browse files
authored
Graphics Resources (#99)
1 parent b1f5580 commit 06b797a

288 files changed

Lines changed: 14793 additions & 5308 deletions

File tree

Some content is hidden

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

.clang-format

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Language: Cpp
2+
UseTab: Never
3+
IndentWidth: 4
4+
ColumnLimit: 200
5+
PointerAlignment: Left
6+
BreakBeforeBraces: Allman
7+
Cpp11BracedListStyle: false
8+
InsertBraces: true
9+
10+
IndentCaseLabels: true
11+
AlignAfterOpenBracket: DontAlign
12+
AlignArrayOfStructures: None
13+
AlignEscapedNewlines: DontAlign
14+
AllowShortFunctionsOnASingleLine: None
15+
AllowShortIfStatementsOnASingleLine: Never
16+
AllowShortLoopsOnASingleLine: false
17+
PenaltyBreakAssignment: 15
18+
PenaltyBreakBeforeFirstCallParameter: 15
19+
PenaltyBreakOpenParenthesis: 15
20+
BinPackArguments: false
21+
BinPackParameters: false

.github/workflows/build-ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ jobs:
1717
with:
1818
platform: ${{ matrix.platform }}
1919
architecture: ${{ matrix.architecture }}
20-
21-
# TODO: Do a build bindings sub workflow
22-
#build_dotnet:
23-
# uses: ./.github/workflows/build-dotnet.yml
24-
#name: 'build-dotnet'
25-
#secrets: inherit
2620

2721
run_tests:
2822
strategy:

.github/workflows/build.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ${{
14-
(inputs.platform == 'osx' && 'macos-14') ||
14+
(inputs.platform == 'osx' && 'macos-latest') ||
1515
(inputs.platform == 'linux' && 'ubuntu-latest') ||
1616
(inputs.platform == 'win' && 'windows-latest')
1717
}}
@@ -27,14 +27,11 @@ jobs:
2727
with:
2828
arch: ${{ inputs.architecture }}
2929

30-
# TODO: For the moment Github actions doesn't have the latest version of ubuntu
31-
# we will re enable the linux build after
32-
# TODO: libwayland-dev wayland-protocols libdecor-devel
3330
- name: Setup Dependencies (Linux)
3431
if: inputs.platform == 'linux'
3532
run: |
3633
sudo apt-get update
37-
sudo apt-get install -y -V libgtk-4-dev
34+
sudo apt-get install libwayland-dev wayland-protocols libudev-dev libdecor-0-dev
3835
3936
- name: Setup Ninja
4037
uses: seanmiddleditch/gha-setup-ninja@master

.github/workflows/run-tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ jobs:
2222
with:
2323
name: tests.${{ inputs.platform }}-${{ inputs.architecture }}
2424
path: ./
25-
25+
2626
- name: Setup Dependencies (Linux)
2727
if: inputs.platform == 'linux'
28-
run: sudo apt-get update && sudo apt-get install -y libgtk-4-dev
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install libwayland-dev wayland-protocols libudev-dev libdecor-0-dev
2931
3032
- name: Extract Tests Archive (Windows)
3133
if: inputs.platform == 'win'
@@ -59,8 +61,7 @@ jobs:
5961
if: inputs.platform == 'osx'
6062
run: ./tests/ToolsTests.app/Contents/MacOS/ToolsTests
6163

62-
#- name: Run Graphics Tests
63-
#if: inputs.platform == 'win'
64-
#run: |
65-
#$ErrorView = 'NormalView'
66-
# ./Tests/GraphicsTests
64+
#- name: Run Graphics Tests (MacOS)
65+
#if: inputs.platform == 'osx'
66+
#run: ./tests/GraphicsTests.app/Contents/MacOS/GraphicsTests
67+

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
*.userosscache
88
*.sln.docstates
99
*.resolved
10+
*.obj
11+
*.mesh
12+
*.ini
13+
*.gltf
14+
*.bin
15+
*.tga
16+
*.png
17+
*.jpg
18+
*.dds
19+
*.mtl
1020

1121
xcuserdata/
1222
packages/
@@ -32,3 +42,4 @@ bld/
3242
external/shader-compilers/
3343
.DS_Store
3444
artifacts/
45+
*.db

.gitmodules

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,24 @@
1616
[submodule "external/metal-cpp"]
1717
path = external/metal-cpp
1818
url = https://github.com/bkaradzic/metal-cpp.git
19+
[submodule "external/meshoptimizer"]
20+
path = external/meshoptimizer
21+
url = https://github.com/zeux/meshoptimizer.git
22+
[submodule "external/cimgui"]
23+
path = external/cimgui
24+
url = https://github.com/cimgui/cimgui.git
25+
[submodule "external/fast_obj"]
26+
path = external/fast_obj
27+
url = https://github.com/thisistherk/fast_obj.git
28+
[submodule "external/cgltf"]
29+
path = external/cgltf
30+
url = https://github.com/jkuhlmann/cgltf.git
31+
[submodule "external/stb"]
32+
path = external/stb
33+
url = https://github.com/nothings/stb.git
34+
[submodule "external/bc7enc_rdo"]
35+
path = external/bc7enc_rdo
36+
url = https://github.com/richgel999/bc7enc_rdo.git
37+
[submodule "external/MikkTSpace"]
38+
path = external/MikkTSpace
39+
url = https://github.com/mmikk/MikkTSpace.git

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ if(WIN32)
99
elseif(LINUX)
1010
set(CMAKE_CXX_COMPILER "clang++")
1111
set(CMAKE_C_COMPILER "clang")
12-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
12+
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
1313
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lm")
14+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
1415
else()
1516
if(BUILD_FOR_IOS)
1617
set(CMAKE_SYSTEM_NAME iOS)
@@ -49,13 +50,13 @@ add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wno-unused-parameter>)
4950
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wno-missing-field-initializers>)
5051

5152
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
52-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcolor-diagnostics")
53+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fansi-escape-codes -fcolor-diagnostics -D_CRT_SECURE_NO_WARNINGS")
5354
set(CMAKE_CXX_STANDARD "23")
5455
set(CMAKE_CXX_STANDARD_REQUIRED ON)
5556

5657
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
57-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fcolor-diagnostics")
58-
set(CMAKE_C_STANDARD "99")
58+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fansi-escape-codes -fcolor-diagnostics -D_CRT_SECURE_NO_WARNINGS")
59+
set(CMAKE_C_STANDARD "23")
5960

6061
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
6162

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023-2024 Double Buffer SRL
3+
Copyright (c) 2023-2025 Double Buffer SRL
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

bindings/dotnet/Directory.Build.props

Lines changed: 0 additions & 31 deletions
This file was deleted.

bindings/dotnet/Directory.Packages.props

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)