In IntelliJ Rust plugin, Declarative macro expansion of bitflags! fails when a backslash is present in rustdoc. (#3386)

This commit is contained in:
823984418 2023-01-26 04:05:05 +08:00 committed by GitHub
parent 0d433214c7
commit 5ded4ba701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,15 +361,15 @@ bitflags::bitflags! {
/// Allows the user to create uniform arrays of textures in shaders:
///
/// ex.
/// `var textures: binding_array<texture_2d<f32>, 10>` (WGSL)\
/// `uniform texture2D textures[10]` (GLSL)
/// - `var textures: binding_array<texture_2d<f32>, 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<texture_storage_2d<f32, write>, 10>` (WGSL)\
/// `uniform image2D textures[10]` (GLSL)
/// - `var textures: array<texture_storage_2d<f32, write>, 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<uniform> buffer_array: array<MyBuffer, 10>` (WGSL)\
/// `uniform myBuffer { ... } buffer_array[10]` (GLSL)
/// - `var<uniform> buffer_array: array<MyBuffer, 10>` (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<storage> buffer_array: array<MyBuffer, 10>` (WGSL)\
/// `buffer myBuffer { ... } buffer_array[10]` (GLSL)
/// - `var<storage> buffer_array: array<MyBuffer, 10>` (WGSL)
/// - `buffer myBuffer { ... } buffer_array[10]` (GLSL)
///
/// Supported platforms:
/// - DX12