Function spirv_std::arch::ddx_coarse_vector
source · pub fn ddx_coarse_vector<F: Float, VECTOR: Vector<F, LENGTH>, const LENGTH: usize>(
component: VECTOR
) -> VECTORExpand 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.