Skip to content

Commit

Permalink
updated to wgpu and naga v23.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Oct 30, 2024
1 parent 4217e6d commit 26f1325
Show file tree
Hide file tree
Showing 8 changed files with 250 additions and 288 deletions.
492 changes: 227 additions & 265 deletions Cargo.lock

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ members = ["input", "camera", "graphics"]

[workspace.dependencies]
async-trait = "0.1.83"
bytemuck = { version = "1.18.0", features = ["derive"] }
thiserror = "1.0.64"
bytemuck = { version = "1.19.0", features = ["derive"] }
thiserror = "1.0.65"
winit = { version = "0.30.5", features = ["serde"] }
image = "0.25.2"
image = "0.25.4"
guillotiere = "0.6.2"
serde = { version = "1.0.210", features = ["derive"] }
serde = { version = "1.0.214", features = ["derive"] }
log = "0.4.22"
cosmic-text = { version = "0.12.1", features = ["shape-run-cache"] } #git = "https://github.com/pop-os/cosmic-text"
ordered-float = { version = "4.3.0", features = ["serde"] }
lru = "0.12.4"
glam = { version = "0.29.0", features = ["bytemuck", "mint"] }
ordered-float = { version = "4.4.0", features = ["serde"] }
lru = "0.12.5"
glam = { version = "0.29.1", features = ["bytemuck", "mint"] }
lyon = "1.0.1"
smol_str = "0.3.1"
indexmap = "2.5.0"
smol_str = "0.3.2"
indexmap = "2.6.0"
slotmap = "1.0.7"
ahash = {version = "0.8.11", features = ["serde"]}
slab = "0.4.9"
Expand All @@ -35,11 +35,11 @@ version = "0.3.0"
[workspace.dependencies.naga]
#git = "https://github.com/gfx-rs/naga"
#rev = "76003dc0035d53a474d366dcdf49d2e4d12e921f"
version = "22.1.0"
version = "23.0.0"
features = ["wgsl-in"]

[workspace.dependencies.wgpu]
#git = "https://github.com/gfx-rs/wgpu"
#rev = "061e04b"
#path = "../wgpu-trunk/wgpu"
version = "22.1.0"
version = "23.0.0"
4 changes: 2 additions & 2 deletions graphics/src/font/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl PipeLineLayout for TextRenderPipeline {
)),
vertex: wgpu::VertexState {
module: &shader,
entry_point: "vertex",
entry_point: Some("vertex"),
buffers: &[
wgpu::VertexBufferLayout {
array_stride: StaticVertexBuffer::stride(),
Expand Down Expand Up @@ -82,7 +82,7 @@ impl PipeLineLayout for TextRenderPipeline {
multisample: wgpu::MultisampleState::default(),
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fragment",
entry_point: Some("fragment"),
targets: &[Some(wgpu::ColorTargetState {
format: surface_format,
blend: Some(
Expand Down
4 changes: 2 additions & 2 deletions graphics/src/images/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl PipeLineLayout for ImageRenderPipeline {
)),
vertex: wgpu::VertexState {
module: &shader,
entry_point: "vertex",
entry_point: Some("vertex"),
buffers: &[
wgpu::VertexBufferLayout {
array_stride: StaticVertexBuffer::stride(),
Expand Down Expand Up @@ -78,7 +78,7 @@ impl PipeLineLayout for ImageRenderPipeline {
multisample: wgpu::MultisampleState::default(),
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fragment",
entry_point: Some("fragment"),
targets: &[Some(wgpu::ColorTargetState {
format: surface_format,
blend: Some(wgpu::BlendState::ALPHA_BLENDING),
Expand Down
4 changes: 2 additions & 2 deletions graphics/src/lights/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl PipeLineLayout for LightRenderPipeline {
)),
vertex: wgpu::VertexState {
module: &shader,
entry_point: "vertex",
entry_point: Some("vertex"),
buffers: &[
wgpu::VertexBufferLayout {
array_stride: StaticVertexBuffer::stride(),
Expand Down Expand Up @@ -84,7 +84,7 @@ impl PipeLineLayout for LightRenderPipeline {
multisample: wgpu::MultisampleState::default(),
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fragment",
entry_point: Some("fragment"),
targets: &[Some(wgpu::ColorTargetState {
format: surface_format,
blend: Some(wgpu::BlendState::ALPHA_BLENDING),
Expand Down
4 changes: 2 additions & 2 deletions graphics/src/maps/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl PipeLineLayout for MapRenderPipeline {
)),
vertex: wgpu::VertexState {
module: &shader,
entry_point: "vertex",
entry_point: Some("vertex"),
buffers: &[
wgpu::VertexBufferLayout {
array_stride: StaticVertexBuffer::stride(),
Expand Down Expand Up @@ -78,7 +78,7 @@ impl PipeLineLayout for MapRenderPipeline {
multisample: wgpu::MultisampleState::default(),
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fragment",
entry_point: Some("fragment"),
targets: &[Some(wgpu::ColorTargetState {
format: surface_format,
blend: Some(wgpu::BlendState::ALPHA_BLENDING),
Expand Down
4 changes: 2 additions & 2 deletions graphics/src/mesh2d/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl PipeLineLayout for Mesh2DRenderPipeline {
)),
vertex: wgpu::VertexState {
module: &shader,
entry_point: "vertex",
entry_point: Some("vertex"),
buffers: &[wgpu::VertexBufferLayout {
array_stride: Mesh2DVertex::stride() as u64,
step_mode: wgpu::VertexStepMode::Vertex,
Expand All @@ -68,7 +68,7 @@ impl PipeLineLayout for Mesh2DRenderPipeline {
multisample: wgpu::MultisampleState::default(),
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fragment",
entry_point: Some("fragment"),
targets: &[Some(wgpu::ColorTargetState {
format: surface_format,
blend: Some(wgpu::BlendState::ALPHA_BLENDING),
Expand Down
4 changes: 2 additions & 2 deletions graphics/src/ui/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl PipeLineLayout for RectRenderPipeline {
)),
vertex: wgpu::VertexState {
module: &shader,
entry_point: "vertex",
entry_point: Some("vertex"),
buffers: &[
wgpu::VertexBufferLayout {
array_stride: StaticVertexBuffer::stride(),
Expand Down Expand Up @@ -78,7 +78,7 @@ impl PipeLineLayout for RectRenderPipeline {
multisample: wgpu::MultisampleState::default(),
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fragment",
entry_point: Some("fragment"),
targets: &[Some(wgpu::ColorTargetState {
format: surface_format,
blend: Some(wgpu::BlendState::ALPHA_BLENDING),
Expand Down

0 comments on commit 26f1325

Please sign in to comment.