Skip to content

Commit 4a9e76c

Browse files
committed
Fix new clippy::doc_markdown warnings.
1 parent bfce653 commit 4a9e76c

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

crates/spirv-std/src/arch/demote_to_helper_invocation_ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use core::arch::asm;
55
/// `discard()` in HLSL. Any stores to memory after this instruction are
66
/// suppressed and the fragment does not write outputs to the framebuffer.
77
///
8-
/// Unlike [super::kill], this does not necessarily terminate the invocation. It
8+
/// Unlike [`super::kill`], this does not necessarily terminate the invocation. It
99
/// is not considered a flow control instruction (flow control does not become
1010
/// non-uniform) and does not terminate the block.
1111
///

crates/spirv-std/src/arch/mesh_shading.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use core::arch::asm;
1616
/// There must not be any control flow path to an output write that is not preceded
1717
/// by this instruction.
1818
///
19-
/// This instruction is only valid in the *MeshEXT* Execution Model.
19+
/// This instruction is only valid in the *`MeshEXT`* Execution Model.
2020
#[spirv_std_macros::gpu_only]
2121
#[doc(alias = "OpSetMeshOutputsEXT")]
2222
#[inline]
@@ -38,22 +38,22 @@ pub unsafe fn set_mesh_outputs_ext(vertex_count: u32, primitive_count: u32) {
3838
/// for the launch of child mesh tasks. See Vulkan API specification for more detail.
3939
///
4040
/// 'Payload' is an optional pointer to the payload structure to pass to the generated mesh shader invocations.
41-
/// 'Payload' must be the result of an *OpVariable* with a storage class of *TaskPayloadWorkgroupEXT*.
41+
/// 'Payload' must be the result of an *`OpVariable`* with a storage class of *`TaskPayloadWorkgroupEXT`*.
4242
///
4343
/// The arguments are taken from the first invocation in each workgroup.
4444
/// Any invocation must execute this instruction exactly once and under uniform
4545
/// control flow.
4646
/// This instruction also serves as an *OpControlBarrier* instruction, and also
4747
/// performs and adheres to the description and semantics of an *OpControlBarrier*
4848
/// instruction with the 'Execution' and 'Memory' operands set to *Workgroup* and
49-
/// the 'Semantics' operand set to a combination of *WorkgroupMemory* and
50-
/// *AcquireRelease*.
49+
/// the 'Semantics' operand set to a combination of *`WorkgroupMemory`* and
50+
/// *`AcquireRelease`*.
5151
/// Ceases all further processing: Only instructions executed before
52-
/// *OpEmitMeshTasksEXT* have observable side effects.
52+
/// *`OpEmitMeshTasksEXT`* have observable side effects.
5353
///
5454
/// This instruction must be the last instruction in a block.
5555
///
56-
/// This instruction is only valid in the *TaskEXT* Execution Model.
56+
/// This instruction is only valid in the *`TaskEXT`* Execution Model.
5757
#[spirv_std_macros::gpu_only]
5858
#[doc(alias = "OpEmitMeshTasksEXT")]
5959
#[inline]
@@ -77,22 +77,22 @@ pub unsafe fn emit_mesh_tasks_ext(group_count_x: u32, group_count_y: u32, group_
7777
/// for the launch of child mesh tasks. See Vulkan API specification for more detail.
7878
///
7979
/// 'Payload' is an optional pointer to the payload structure to pass to the generated mesh shader invocations.
80-
/// 'Payload' must be the result of an *OpVariable* with a storage class of *TaskPayloadWorkgroupEXT*.
80+
/// 'Payload' must be the result of an *`OpVariable`* with a storage class of *`TaskPayloadWorkgroupEXT`*.
8181
///
8282
/// The arguments are taken from the first invocation in each workgroup.
8383
/// Any invocation must execute this instruction exactly once and under uniform
8484
/// control flow.
8585
/// This instruction also serves as an *OpControlBarrier* instruction, and also
8686
/// performs and adheres to the description and semantics of an *OpControlBarrier*
8787
/// instruction with the 'Execution' and 'Memory' operands set to *Workgroup* and
88-
/// the 'Semantics' operand set to a combination of *WorkgroupMemory* and
89-
/// *AcquireRelease*.
88+
/// the 'Semantics' operand set to a combination of *`WorkgroupMemory`* and
89+
/// *`AcquireRelease`*.
9090
/// Ceases all further processing: Only instructions executed before
91-
/// *OpEmitMeshTasksEXT* have observable side effects.
91+
/// *`OpEmitMeshTasksEXT`* have observable side effects.
9292
///
9393
/// This instruction must be the last instruction in a block.
9494
///
95-
/// This instruction is only valid in the *TaskEXT* Execution Model.
95+
/// This instruction is only valid in the *`TaskEXT`* Execution Model.
9696
#[spirv_std_macros::gpu_only]
9797
#[doc(alias = "OpEmitMeshTasksEXT")]
9898
#[inline]

crates/spirv-std/src/arch/ray_tracing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use core::arch::asm;
1414
/// - `hit_kind` is the integer hit kind reported back to other shaders and
1515
/// accessible by the `hit kind` builtin.
1616
///
17-
/// This instruction is allowed only in IntersectionKHR execution model.
17+
/// This instruction is allowed only in `IntersectionKHR` execution model.
1818
///
1919
/// This instruction is a shader call instruction which may invoke shaders with
2020
/// the `any_hit` execution model.

crates/spirv-std/src/arch/subgroup.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ Result Type must be a scalar or vector of integer type.
844844
845845
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
846846
847-
The identity I for Operation is 0. If Operation is ClusteredReduce, `ClusterSize` must be present.
847+
The identity I for Operation is 0. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
848848
849849
The type of `value` must be the same as Result Type.
850850
@@ -875,7 +875,7 @@ Result Type must be a scalar or vector of floating-point type.
875875
876876
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
877877
878-
The identity I for Operation is 0. If Operation is ClusteredReduce, `ClusterSize` must be present.
878+
The identity I for Operation is 0. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
879879
880880
The type of `value` must be the same as Result Type. The method used to perform the group operation on the contributed Value(s) from active invocations is implementation defined.
881881
@@ -908,7 +908,7 @@ Result Type must be a scalar or vector of integer type.
908908
909909
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
910910
911-
The identity I for Operation is 1. If Operation is ClusteredReduce, `ClusterSize` must be present.
911+
The identity I for Operation is 1. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
912912
913913
The type of `value` must be the same as Result Type.
914914
@@ -939,7 +939,7 @@ Result Type must be a scalar or vector of floating-point type.
939939
940940
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
941941
942-
The identity I for Operation is 1. If Operation is ClusteredReduce, `ClusterSize` must be present.
942+
The identity I for Operation is 1. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
943943
944944
The type of `value` must be the same as Result Type. The method used to perform the group operation on the contributed Value(s) from active invocations is implementation defined.
945945
@@ -959,7 +959,7 @@ Result Type must be a scalar or vector of integer type.
959959
960960
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
961961
962-
The identity I for Operation is INT_MAX.
962+
The identity I for Operation is `INT_MAX`.
963963
964964
The type of `value` must be the same as Result Type.
965965
@@ -972,7 +972,7 @@ Result Type must be a scalar or vector of integer type.
972972
973973
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
974974
975-
The identity I for Operation is INT_MAX. If Operation is ClusteredReduce, `ClusterSize` must be present.
975+
The identity I for Operation is `INT_MAX`. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
976976
977977
The type of `value` must be the same as Result Type.
978978
@@ -990,7 +990,7 @@ Result Type must be a scalar or vector of integer type, whose Signedness operand
990990
991991
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
992992
993-
The identity I for Operation is UINT_MAX.
993+
The identity I for Operation is `UINT_MAX`.
994994
995995
The type of `value` must be the same as Result Type.
996996
@@ -1003,7 +1003,7 @@ Result Type must be a scalar or vector of integer type, whose Signedness operand
10031003
10041004
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
10051005
1006-
The identity I for Operation is UINT_MAX. If Operation is ClusteredReduce, `ClusterSize` must be present.
1006+
The identity I for Operation is `UINT_MAX`. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
10071007
10081008
The type of `value` must be the same as Result Type.
10091009
@@ -1034,7 +1034,7 @@ Result Type must be a scalar or vector of floating-point type.
10341034
10351035
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
10361036
1037-
The identity I for Operation is +INF. If Operation is ClusteredReduce, `ClusterSize` must be present.
1037+
The identity I for Operation is +INF. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
10381038
10391039
The type of `value` must be the same as Result Type. The method used to perform the group operation on the contributed Value(s) from active invocations is implementation defined. From the set of Value(s) provided by active invocations within a subgroup, if for any two Values one of them is a NaN, the other is chosen. If all Value(s) that are used by the current invocation are NaN, then the result is an undefined value.
10401040
@@ -1054,7 +1054,7 @@ Result Type must be a scalar or vector of integer type.
10541054
10551055
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
10561056
1057-
The identity I for Operation is INT_MIN.
1057+
The identity I for Operation is `INT_MIN`.
10581058
10591059
The type of `value` must be the same as Result Type.
10601060
@@ -1067,7 +1067,7 @@ Result Type must be a scalar or vector of integer type.
10671067
10681068
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
10691069
1070-
The identity I for Operation is INT_MIN. If Operation is ClusteredReduce, `ClusterSize` must be present.
1070+
The identity I for Operation is `INT_MIN`. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
10711071
10721072
The type of `value` must be the same as Result Type.
10731073
@@ -1098,7 +1098,7 @@ Result Type must be a scalar or vector of integer type, whose Signedness operand
10981098
10991099
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
11001100
1101-
The identity I for Operation is 0. If Operation is ClusteredReduce, `ClusterSize` must be present.
1101+
The identity I for Operation is 0. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
11021102
11031103
The type of `value` must be the same as Result Type.
11041104
@@ -1160,7 +1160,7 @@ Result Type must be a scalar or vector of integer type.
11601160
11611161
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
11621162
1163-
The identity I for Operation is ~0. If Operation is ClusteredReduce, `ClusterSize` must be present.
1163+
The identity I for Operation is ~0. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
11641164
11651165
The type of `value` must be the same as Result Type.
11661166
@@ -1193,7 +1193,7 @@ Result Type must be a scalar or vector of integer type.
11931193
11941194
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
11951195
1196-
The identity I for Operation is 0. If Operation is ClusteredReduce, `ClusterSize` must be present.
1196+
The identity I for Operation is 0. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
11971197
11981198
The type of `value` must be the same as Result Type.
11991199
@@ -1226,7 +1226,7 @@ Result Type must be a scalar or vector of integer type.
12261226
12271227
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
12281228
1229-
The identity I for Operation is 0. If Operation is ClusteredReduce, `ClusterSize` must be present.
1229+
The identity I for Operation is 0. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
12301230
12311231
The type of `value` must be the same as Result Type.
12321232
@@ -1259,7 +1259,7 @@ Result Type must be a scalar or vector of Boolean type.
12591259
12601260
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
12611261
1262-
The identity I for Operation is ~0. If Operation is ClusteredReduce, `ClusterSize` must be present.
1262+
The identity I for Operation is ~0. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
12631263
12641264
The type of `value` must be the same as Result Type.
12651265
@@ -1292,7 +1292,7 @@ Result Type must be a scalar or vector of Boolean type.
12921292
12931293
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
12941294
1295-
The identity I for Operation is 0. If Operation is ClusteredReduce, `ClusterSize` must be present.
1295+
The identity I for Operation is 0. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
12961296
12971297
The type of `value` must be the same as Result Type.
12981298
@@ -1325,7 +1325,7 @@ Result Type must be a scalar or vector of Boolean type.
13251325
13261326
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
13271327
1328-
The identity I for Operation is 0. If Operation is ClusteredReduce, `ClusterSize` must be present.
1328+
The identity I for Operation is 0. If Operation is `ClusteredReduce`, `ClusterSize` must be present.
13291329
13301330
The type of `value` must be the same as Result Type.
13311331

crates/spirv-std/src/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub type Cubemap = crate::Image!(cube, type=f32, sampled, __crate_root=crate);
9595
/// You likely want to write this type using the [`crate::Image!`] macro helper, as the generic
9696
/// arguments here can get extremely verbose.
9797
///
98-
/// See SPIR-V OpTypeImage specification for the meaning of integer parameters.
98+
/// See SPIR-V `OpTypeImage` specification for the meaning of integer parameters.
9999
#[spirv(generic_image_type)]
100100
#[derive(Copy, Clone)]
101101
// HACK(eddyb) avoids "transparent newtype of `_anti_zst_padding`" misinterpretation.

0 commit comments

Comments
 (0)