From 5ded4ba701cbb833251d9bcafa3eceaa96a1ee06 Mon Sep 17 00:00:00 2001 From: 823984418 <823984418@qq.com> Date: Thu, 26 Jan 2023 04:05:05 +0800 Subject: [PATCH] In IntelliJ Rust plugin, Declarative macro expansion of bitflags! fails when a backslash is present in rustdoc. (#3386) --- wgpu-types/src/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 5d0d722c9..8511ee257 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -361,15 +361,15 @@ bitflags::bitflags! { /// Allows the user to create uniform arrays of textures in shaders: /// /// ex. - /// `var textures: binding_array, 10>` (WGSL)\ - /// `uniform texture2D textures[10]` (GLSL) + /// - `var textures: binding_array, 10>` (WGSL) + /// - `uniform texture2D textures[10]` (GLSL) /// /// If [`Features::STORAGE_RESOURCE_BINDING_ARRAY`] is supported as well as this, the user /// may also create uniform arrays of storage textures. /// /// ex. - /// `var textures: array, 10>` (WGSL)\ - /// `uniform image2D textures[10]` (GLSL) + /// - `var textures: array, 10>` (WGSL) + /// - `uniform image2D textures[10]` (GLSL) /// /// This capability allows them to exist and to be indexed by dynamically uniform /// values. @@ -384,8 +384,8 @@ bitflags::bitflags! { /// Allows the user to create arrays of buffers in shaders: /// /// ex. - /// `var buffer_array: array` (WGSL)\ - /// `uniform myBuffer { ... } buffer_array[10]` (GLSL) + /// - `var buffer_array: array` (WGSL) + /// - `uniform myBuffer { ... } buffer_array[10]` (GLSL) /// /// This capability allows them to exist and to be indexed by dynamically uniform /// values. @@ -394,8 +394,8 @@ bitflags::bitflags! { /// may also create arrays of storage buffers. /// /// ex. - /// `var buffer_array: array` (WGSL)\ - /// `buffer myBuffer { ... } buffer_array[10]` (GLSL) + /// - `var buffer_array: array` (WGSL) + /// - `buffer myBuffer { ... } buffer_array[10]` (GLSL) /// /// Supported platforms: /// - DX12