From 9b3413529fbe65a7a178382df85a2b124400b98e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6sters?= Date: Mon, 8 Aug 2022 19:59:59 +0000 Subject: [PATCH] Fix shader syntax (#5613) --- crates/bevy_pbr/src/material.rs | 2 +- crates/bevy_sprite/src/mesh2d/material.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/bevy_pbr/src/material.rs b/crates/bevy_pbr/src/material.rs index 0dcbe50de7a737..bb5d07db453743 100644 --- a/crates/bevy_pbr/src/material.rs +++ b/crates/bevy_pbr/src/material.rs @@ -98,7 +98,7 @@ use std::marker::PhantomData; /// ```wgsl /// struct CustomMaterial { /// color: vec4, -/// }; +/// } /// /// @group(1) @binding(0) /// var material: CustomMaterial; diff --git a/crates/bevy_sprite/src/mesh2d/material.rs b/crates/bevy_sprite/src/mesh2d/material.rs index 772de65bb7c299..f1cd52329bb6fc 100644 --- a/crates/bevy_sprite/src/mesh2d/material.rs +++ b/crates/bevy_sprite/src/mesh2d/material.rs @@ -100,14 +100,14 @@ use crate::{ /// /// ```wgsl /// struct CustomMaterial { -/// color: vec4; -/// }; +/// color: vec4, +/// } /// -/// [[group(1), binding(0)]] +/// @group(1) @binding(0) /// var material: CustomMaterial; -/// [[group(1), binding(1)]] +/// @group(1) @binding(1) /// var color_texture: texture_2d; -/// [[group(1), binding(2)]] +/// @group(1) @binding(2) /// var color_sampler: sampler; /// ``` pub trait Material2d: AsBindGroup + Send + Sync + Clone + TypeUuid + Sized + 'static {