Skip to content

Commit ceea97f

Browse files
committed
Betsy: Consolidate documentation in module folder and cleanup SCsub
Also remove unused `UavCrossPlatform_piece_all.glsl`.
1 parent 1586c56 commit ceea97f

File tree

9 files changed

+13
-52
lines changed

9 files changed

+13
-52
lines changed

COPYRIGHT.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ Copyright: 2011, Ole Kniemeyer, MAXON, www.maxon.net
6161
2007-2014, Juan Linietsky, Ariel Manzur
6262
License: Expat and Zlib
6363

64+
Files: modules/betsy/alpha_stitch.glsl
65+
modules/betsy/bc1.glsl
66+
modules/betsy/bc4.glsl
67+
modules/betsy/bc6h.glsl
68+
modules/betsy/CrossPlatformSettings_piece_all.glsl
69+
Comment: Betsy
70+
Copyright: 2020-2022, Matias N. Goldberg
71+
License: Expat
72+
6473
Files: modules/godot_physics_2d/godot_joints_2d.cpp
6574
Comment: Chipmunk2D Joint Constraints
6675
Copyright: 2007, Scott Lembcke
@@ -179,11 +188,6 @@ Comment: Basis Universal
179188
Copyright: 2019-2024, Binomial LLC.
180189
License: Apache-2.0
181190

182-
Files: thirdparty/betsy/*
183-
Comment: Betsy
184-
Copyright: 2020-2022, Matias N. Goldberg
185-
License: Expat
186-
187191
Files: thirdparty/brotli/*
188192
Comment: Brotli
189193
Copyright: 2009, 2010, 2013-2016 by the Brotli Authors.
File renamed without changes.

modules/betsy/SCsub

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,14 @@ Import("env")
55
Import("env_modules")
66

77
env_betsy = env_modules.Clone()
8+
9+
# Betsy shaders, originally from https://github.com/darksylinc/betsy
810
env_betsy.GLSL_HEADER("bc6h.glsl")
911
env_betsy.GLSL_HEADER("bc1.glsl")
1012
env_betsy.GLSL_HEADER("bc4.glsl")
1113
env_betsy.GLSL_HEADER("alpha_stitch.glsl")
12-
env_betsy.Depends(Glob("*.glsl.gen.h"), ["#glsl_builders.py"])
13-
14-
# Thirdparty source files
15-
thirdparty_obj = []
16-
thirdparty_dir = "#thirdparty/betsy/"
17-
env_betsy.Prepend(CPPPATH=[thirdparty_dir])
1814

19-
env_thirdparty = env_betsy.Clone()
20-
env_thirdparty.disable_warnings()
21-
env.modules_sources += thirdparty_obj
15+
env_betsy.Depends(Glob("*.glsl.gen.h"), ["#glsl_builders.py"])
2216

2317
# Godot source files
24-
module_obj = []
25-
env_betsy.add_source_files(module_obj, "*.cpp")
26-
env.modules_sources += module_obj
27-
28-
# Needed to force rebuilding the module files when the thirdparty library is updated.
29-
env.Depends(module_obj, thirdparty_obj)
18+
env_betsy.add_source_files(env.modules_sources, "*.cpp")

modules/betsy/UavCrossPlatform_piece_all.glsl

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

modules/betsy/alpha_stitch.glsl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#version 450
77

88
#include "CrossPlatformSettings_piece_all.glsl"
9-
#include "UavCrossPlatform_piece_all.glsl"
109

1110
layout(local_size_x = 8, //
1211
local_size_y = 8, //

modules/betsy/bc1.glsl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ dithered = "#define BC1_DITHER";
77
#version 450
88

99
#include "CrossPlatformSettings_piece_all.glsl"
10-
#include "UavCrossPlatform_piece_all.glsl"
1110

1211
#define FLT_MAX 340282346638528859811704183484516925440.0f
1312

modules/betsy/bc4.glsl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ signed = "#define SNORM";
77
#version 450
88

99
#include "CrossPlatformSettings_piece_all.glsl"
10-
#include "UavCrossPlatform_piece_all.glsl"
1110

1211
#VERSION_DEFINES
1312

modules/betsy/bc6h.glsl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ unsigned = "#define QUALITY"; // The "Quality" preset causes artifacting on sign
77
#version 450
88

99
#include "CrossPlatformSettings_piece_all.glsl"
10-
#include "UavCrossPlatform_piece_all.glsl"
1110

1211
#VERSION_DEFINES
1312

thirdparty/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,6 @@ Files extracted from upstream source:
7171
Applied upstream PR https://github.com/BinomialLLC/basis_universal/pull/344 to
7272
fix build with our own copy of zstd (patch in `patches`).
7373

74-
## betsy
75-
76-
- Upstream: https://github.com/darksylinc/betsy
77-
- Version: git (cc723dcae9a6783ae572f64d12a90d60ef8d631a, 2022)
78-
- License: MIT
79-
80-
Files extracted from upstream source:
81-
82-
- `bc6h.glsl`, `bc1.glsl`, `bc4.glsl`, `CrossPlatformSettings_piece_all.glsl` and `UavCrossPlatform_piece_all.glsl`.
83-
- `LICENSE.md`
84-
85-
8674
## brotli
8775

8876
- Upstream: https://github.com/google/brotli

0 commit comments

Comments
 (0)