Function spirv_std::arch::ddx_coarse

source ·
pub fn ddx_coarse<F: Float>(component: F) -> F
Expand description

Returns the partial derivative of component with respect to the window’s X coordinate. Uses local differencing based on the value of component for the current fragment’s neighbors, and possibly, but not necessarily, includes the value of component for the current fragment. That is, over a given area, the implementation can compute X derivatives in fewer unique locations than would be allowed by ddx_fine.