@@ -36,6 +36,7 @@ pub unsafe trait Derivative: Sealed + Default {
3636 ///
3737 /// This instruction is only valid in the Fragment Execution Model.
3838 #[ crate :: macros:: gpu_only]
39+ #[ inline]
3940 fn ddx ( self ) -> Self {
4041 deriv_fn ! ( OpDPdx , self )
4142 }
@@ -48,6 +49,7 @@ pub unsafe trait Derivative: Sealed + Default {
4849 ///
4950 /// This instruction is only valid in the Fragment Execution Model.
5051 #[ crate :: macros:: gpu_only]
52+ #[ inline]
5153 fn ddx_fine ( self ) -> Self {
5254 cap_deriv_control ! ( ) ;
5355 deriv_fn ! ( OpDPdxFine , self )
@@ -63,6 +65,7 @@ pub unsafe trait Derivative: Sealed + Default {
6365 ///
6466 /// This instruction is only valid in the Fragment Execution Model.
6567 #[ crate :: macros:: gpu_only]
68+ #[ inline]
6669 fn ddx_coarse ( self ) -> Self {
6770 cap_deriv_control ! ( ) ;
6871 deriv_fn ! ( OpDPdxCoarse , self )
@@ -77,6 +80,7 @@ pub unsafe trait Derivative: Sealed + Default {
7780 ///
7881 /// This instruction is only valid in the Fragment Execution Model.
7982 #[ crate :: macros:: gpu_only]
83+ #[ inline]
8084 fn ddy ( self ) -> Self {
8185 deriv_fn ! ( OpDPdy , self )
8286 }
@@ -89,6 +93,7 @@ pub unsafe trait Derivative: Sealed + Default {
8993 ///
9094 /// This instruction is only valid in the Fragment Execution Model.
9195 #[ crate :: macros:: gpu_only]
96+ #[ inline]
9297 fn ddy_fine ( self ) -> Self {
9398 cap_deriv_control ! ( ) ;
9499 deriv_fn ! ( OpDPdyFine , self )
@@ -104,6 +109,7 @@ pub unsafe trait Derivative: Sealed + Default {
104109 ///
105110 /// This instruction is only valid in the Fragment Execution Model.
106111 #[ crate :: macros:: gpu_only]
112+ #[ inline]
107113 fn ddy_coarse ( self ) -> Self {
108114 cap_deriv_control ! ( ) ;
109115 deriv_fn ! ( OpDPdyCoarse , self )
@@ -116,6 +122,7 @@ pub unsafe trait Derivative: Sealed + Default {
116122 ///
117123 /// This instruction is only valid in the Fragment Execution Model.
118124 #[ crate :: macros:: gpu_only]
125+ #[ inline]
119126 fn fwidth ( self ) -> Self {
120127 deriv_fn ! ( OpFwidth , self )
121128 }
@@ -127,6 +134,7 @@ pub unsafe trait Derivative: Sealed + Default {
127134 ///
128135 /// This instruction is only valid in the Fragment Execution Model.
129136 #[ crate :: macros:: gpu_only]
137+ #[ inline]
130138 fn fwidth_fine ( self ) -> Self {
131139 cap_deriv_control ! ( ) ;
132140 deriv_fn ! ( OpFwidthFine , self )
@@ -139,6 +147,7 @@ pub unsafe trait Derivative: Sealed + Default {
139147 ///
140148 /// This instruction is only valid in the Fragment Execution Model.
141149 #[ crate :: macros:: gpu_only]
150+ #[ inline]
142151 fn fwidth_coarse ( self ) -> Self {
143152 cap_deriv_control ! ( ) ;
144153 deriv_fn ! ( OpFwidthCoarse , self )
0 commit comments