Skip to content

Commit c09807c

Browse files
committed
derivative: fix doc links
1 parent 1678d45 commit c09807c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: crates/spirv-std/src/arch/derivative.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ macro_rules! deriv_fn {
2121
/// Types that can be derived by partial derivatives
2222
pub unsafe trait Derivative: Sealed + Default {
2323
/// Result is the partial derivative of `Self` with respect to the window x coordinate. Uses local differencing
24-
/// based on the value of `Self`. Same result as either [`dfdx_fine`] or [`dfdx_coarse`] on `Self`. Selection of which
24+
/// based on the value of `Self`. Same result as either [`Self::dfdx_fine`] or [`Self::dfdx_coarse`] on `Self`. Selection of which
2525
/// one is based on external factors.
2626
///
2727
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
@@ -50,7 +50,7 @@ pub unsafe trait Derivative: Sealed + Default {
5050
/// Result is the partial derivative of `Self` with respect to the window x coordinate. Uses local differencing
5151
/// based on the value of `Self` for the current fragment’s neighbors, and possibly, but not necessarily, includes
5252
/// the value of `Self` for the current fragment. That is, over a given area, the implementation can compute x
53-
/// derivatives in fewer unique locations than would be allowed for [`dfdx_fine`].
53+
/// derivatives in fewer unique locations than would be allowed for [`Self::dfdx_fine`].
5454
///
5555
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
5656
/// derivative group have executed all dynamic instances that are program-ordered before X'.
@@ -63,7 +63,7 @@ pub unsafe trait Derivative: Sealed + Default {
6363
}
6464

6565
/// Result is the partial derivative of `Self` with respect to the window y coordinate. Uses local differencing
66-
/// based on the value of `Self`. Same result as either [`dfdy_fine`] or [`dfdy_coarse`] on `Self`. Selection of which
66+
/// based on the value of `Self`. Same result as either [`Self::dfdy_fine`] or [`Self::dfdy_coarse`] on `Self`. Selection of which
6767
/// one is based on external factors.
6868
///
6969
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
@@ -92,7 +92,7 @@ pub unsafe trait Derivative: Sealed + Default {
9292
/// Result is the partial derivative of `Self` with respect to the window y coordinate. Uses local differencing
9393
/// based on the value of `Self` for the current fragment’s neighbors, and possibly, but not necessarily, includes
9494
/// the value of `Self` for the current fragment. That is, over a given area, the implementation can compute y
95-
/// derivatives in fewer unique locations than would be allowed for [`dfdy_fine`].
95+
/// derivatives in fewer unique locations than would be allowed for [`Self::dfdy_fine`].
9696
///
9797
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
9898
/// derivative group have executed all dynamic instances that are program-ordered before X'.
@@ -104,7 +104,7 @@ pub unsafe trait Derivative: Sealed + Default {
104104
deriv_fn!(OpDPdyCoarse, self)
105105
}
106106

107-
/// Result is the same as computing the sum of the absolute values of [`dfdx`] and [`dfdy`] on P.
107+
/// Result is the same as computing the sum of the absolute values of [`Self::dfdx`] and [`Self::dfdy`] on P.
108108
///
109109
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
110110
/// derivative group have executed all dynamic instances that are program-ordered before X'.
@@ -116,7 +116,7 @@ pub unsafe trait Derivative: Sealed + Default {
116116
deriv_fn!(OpFwidth, self)
117117
}
118118

119-
/// Result is the same as computing the sum of the absolute values of [`dfdx_fine`] and [`dfdy_fine`] on P.
119+
/// Result is the same as computing the sum of the absolute values of [`Self::dfdx_fine`] and [`Self::dfdy_fine`] on P.
120120
///
121121
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
122122
/// derivative group have executed all dynamic instances that are program-ordered before X'.
@@ -128,7 +128,7 @@ pub unsafe trait Derivative: Sealed + Default {
128128
deriv_fn!(OpFwidthFine, self)
129129
}
130130

131-
/// Result is the same as computing the sum of the absolute values of [`dfdx_coarse`] and [`dfdy_coarse`] on P.
131+
/// Result is the same as computing the sum of the absolute values of [`Self::dfdx_coarse`] and [`Self::dfdy_coarse`] on P.
132132
///
133133
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
134134
/// derivative group have executed all dynamic instances that are program-ordered before X'.

0 commit comments

Comments
 (0)