We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c09807c commit d9c3022Copy full SHA for d9c3022
crates/spirv-std/src/arch/derivative.rs
@@ -19,6 +19,9 @@ macro_rules! deriv_fn {
19
}
20
21
/// Types that can be derived by partial derivatives
22
+///
23
+/// # Safety
24
+/// Result Type must be a scalar or vector of floating-point type using the IEEE 754 encoding. The component width must be 32 bits.
25
pub unsafe trait Derivative: Sealed + Default {
26
/// Result is the partial derivative of `Self` with respect to the window x coordinate. Uses local differencing
27
/// based on the value of `Self`. Same result as either [`Self::dfdx_fine`] or [`Self::dfdx_coarse`] on `Self`. Selection of which
0 commit comments