Skip to content

Commit 3d29b66

Browse files
committed
another layer of rendering indirection to support SDFs
1 parent 5c18b71 commit 3d29b66

32 files changed

+1345
-3087
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ resolver = "2"
1515
[workspace.dependencies]
1616
async-channel = "1.8"
1717
bytemuck = { version = "1.13.0", features = ["derive"] }
18-
crabslab = { version = "0.1.3", default-features = false }
18+
crabslab = { version = "0.2.0", default-features = false }
1919
futures-lite = "1.13"
2020
gltf = { git = 'https://github.com/gltf-rs/gltf.git', features = ["KHR_lights_punctual", "KHR_materials_unlit", "KHR_materials_emissive_strength", "extras"] }
2121
image = "0.24"

DEVLOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# devlog
22

3+
## Mon Jan 8, 2024
4+
5+
I added another ty var to `crabslab::Offset` to help with pointer math.
6+
7+
I've also added yet another layer of indirection around rendering.
8+
Now the top level unit of rendering is `Rendering`, which is an enum of
9+
`Id`s that point to different renderable things. There's an uber-vertex-shader
10+
that tracks this and proxies to the correct sub-shader. This is in anticipation
11+
of adding SDF rendering.
12+
313
## Fri Jan 5, 2024
414

515
The slab implementation in this repo has been spun off into its own thing.

crates/renderling-gpui/Cargo.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ default = ["winit"]
1010
winit = ["renderling/winit", "dep:winit"]
1111

1212
[dependencies]
13+
ab_glyph = { version = "0.2" }
14+
crabslab = "0.1.3"
15+
glam = { workspace = true, default-features = false, features = ["bytemuck", "libm"] }
16+
glyph_brush = { version = "0.7" }
1317
image = { version = "^0.24" }
1418
log = "^0.4"
15-
renderling = { path = "../renderling", default-features = false, features = ["text"] }
19+
renderling = { path = "../renderling" }
1620
snafu = "^0.7"
17-
winit = { version = "^0.27", optional = true }
18-
19-
glam = { workspace = true, default-features = false, features = ["bytemuck", "libm"] }
2021
wgpu = { workspace = true }
22+
winit = { version = "^0.27", optional = true }
2123

2224
[dev-dependencies]
2325
env_logger = "^0.10"

0 commit comments

Comments
 (0)