dawn-cmake/test/tint/builtins/gen/dpdxFine/f401a2.wgsl.expected.glsl
Stephen White ba4d6ab01d GLSL: implement derivative instructions.
While Desktop GLSL supports the Coarse and Fine flavours, GLSL ES does
not. For now, emit dFdx/dFdy in all cases for ES, but excluding the
Coarse and Fine flavours via validation is also an option.

Bug: tint:1445
Change-Id: Iaac589f72043b5547e9141a6e870c1fd49631f6f
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/82142
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-02-28 18:08:13 +00:00

16 lines
188 B
GLSL

#version 310 es
precision mediump float;
void dpdxFine_f401a2() {
float res = dFdx(1.0f);
}
void fragment_main() {
dpdxFine_f401a2();
}
void main() {
fragment_main();
return;
}