@@ -21,7 +21,7 @@ macro_rules! deriv_fn {
21
21
/// Types that can be derived by partial derivatives
22
22
pub unsafe trait Derivative : Sealed + Default {
23
23
/// 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 [`ddx_fine `] or [`ddx_coarse `] on `Self`. Selection of which
24
+ /// based on the value of `Self`. Same result as either [`dfdx_fine `] or [`dfdx_coarse `] on `Self`. Selection of which
25
25
/// one is based on external factors.
26
26
///
27
27
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
@@ -30,7 +30,7 @@ pub unsafe trait Derivative: Sealed + Default {
30
30
/// This instruction is only valid in the Fragment Execution Model.
31
31
#[ crate :: macros:: gpu_only]
32
32
#[ inline]
33
- fn ddx ( self ) -> Self {
33
+ fn dfdx ( self ) -> Self {
34
34
deriv_fn ! ( OpDPdx , self )
35
35
}
36
36
@@ -43,27 +43,27 @@ pub unsafe trait Derivative: Sealed + Default {
43
43
/// This instruction is only valid in the Fragment Execution Model.
44
44
#[ crate :: macros:: gpu_only]
45
45
#[ inline]
46
- fn ddx_fine ( self ) -> Self {
46
+ fn dfdx_fine ( self ) -> Self {
47
47
deriv_fn ! ( OpDPdxFine , self )
48
48
}
49
49
50
50
/// Result is the partial derivative of `Self` with respect to the window x coordinate. Uses local differencing
51
51
/// based on the value of `Self` for the current fragment’s neighbors, and possibly, but not necessarily, includes
52
52
/// 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 [`ddx_fine `].
53
+ /// derivatives in fewer unique locations than would be allowed for [`dfdx_fine `].
54
54
///
55
55
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
56
56
/// derivative group have executed all dynamic instances that are program-ordered before X'.
57
57
///
58
58
/// This instruction is only valid in the Fragment Execution Model.
59
59
#[ crate :: macros:: gpu_only]
60
60
#[ inline]
61
- fn ddx_coarse ( self ) -> Self {
61
+ fn dfdx_coarse ( self ) -> Self {
62
62
deriv_fn ! ( OpDPdxCoarse , self )
63
63
}
64
64
65
65
/// 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 [`ddy_fine `] or [`ddy_coarse `] on `Self`. Selection of which
66
+ /// based on the value of `Self`. Same result as either [`dfdy_fine `] or [`dfdy_coarse `] on `Self`. Selection of which
67
67
/// one is based on external factors.
68
68
///
69
69
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
@@ -72,7 +72,7 @@ pub unsafe trait Derivative: Sealed + Default {
72
72
/// This instruction is only valid in the Fragment Execution Model.
73
73
#[ crate :: macros:: gpu_only]
74
74
#[ inline]
75
- fn ddy ( self ) -> Self {
75
+ fn dfdy ( self ) -> Self {
76
76
deriv_fn ! ( OpDPdy , self )
77
77
}
78
78
@@ -85,26 +85,26 @@ pub unsafe trait Derivative: Sealed + Default {
85
85
/// This instruction is only valid in the Fragment Execution Model.
86
86
#[ crate :: macros:: gpu_only]
87
87
#[ inline]
88
- fn ddy_fine ( self ) -> Self {
88
+ fn dfdy_fine ( self ) -> Self {
89
89
deriv_fn ! ( OpDPdyFine , self )
90
90
}
91
91
92
92
/// Result is the partial derivative of `Self` with respect to the window y coordinate. Uses local differencing
93
93
/// based on the value of `Self` for the current fragment’s neighbors, and possibly, but not necessarily, includes
94
94
/// 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 [`ddy_fine `].
95
+ /// derivatives in fewer unique locations than would be allowed for [`dfdy_fine `].
96
96
///
97
97
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
98
98
/// derivative group have executed all dynamic instances that are program-ordered before X'.
99
99
///
100
100
/// This instruction is only valid in the Fragment Execution Model.
101
101
#[ crate :: macros:: gpu_only]
102
102
#[ inline]
103
- fn ddy_coarse ( self ) -> Self {
103
+ fn dfdy_coarse ( self ) -> Self {
104
104
deriv_fn ! ( OpDPdyCoarse , self )
105
105
}
106
106
107
- /// Result is the same as computing the sum of the absolute values of [`ddx `] and [`ddy `] on P.
107
+ /// Result is the same as computing the sum of the absolute values of [`dfdx `] and [`dfdy `] on P.
108
108
///
109
109
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
110
110
/// derivative group have executed all dynamic instances that are program-ordered before X'.
@@ -116,7 +116,7 @@ pub unsafe trait Derivative: Sealed + Default {
116
116
deriv_fn ! ( OpFwidth , self )
117
117
}
118
118
119
- /// Result is the same as computing the sum of the absolute values of [`ddx_fine `] and [`ddy_fine `] on P.
119
+ /// Result is the same as computing the sum of the absolute values of [`dfdx_fine `] and [`dfdy_fine `] on P.
120
120
///
121
121
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
122
122
/// derivative group have executed all dynamic instances that are program-ordered before X'.
@@ -128,7 +128,7 @@ pub unsafe trait Derivative: Sealed + Default {
128
128
deriv_fn ! ( OpFwidthFine , self )
129
129
}
130
130
131
- /// Result is the same as computing the sum of the absolute values of [`ddx_coarse `] and [`ddy_coarse `] on P.
131
+ /// Result is the same as computing the sum of the absolute values of [`dfdx_coarse `] and [`dfdy_coarse `] on P.
132
132
///
133
133
/// An invocation will not execute a dynamic instance of this instruction (X') until all invocations in its
134
134
/// derivative group have executed all dynamic instances that are program-ordered before X'.
0 commit comments