fwidthCoarse
Function
abs(dpdxCoarse(x)) + abs(dpdyCoarse(x)).
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function fwidthCoarse(a0: f32): f32declare function fwidthCoarse<V extends vec2 | vec3 | vec4>(a0: V): Vdeclare function fwidthCoarse<T extends Numeric>(a0: T): TA signature may name a type the ambient file declares for its own use. These are those declarations.
Numerictype Numeric = number | vec2 | vec3 | vec4 | vec2i | vec3i | vec4i | vec2u | vec3u | vec4u
Parameters
A parameter named by position (a0, a1) carries a name the ambient file generates. A call passes its arguments in order and names none of them.
-
a0f32VT
Return value
f32VT
Description
Fragment stage only; fwidth on GLSL; the CPU oracle returns zero.
Targets
- WGSL
-
fwidthCoarse(a) - GLSL ES 3.00
-
fwidth(a)