dawn-cmake/test/tint/builtins/gen/dpdx/0763f7.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
197 B
GLSL

#version 310 es
precision mediump float;
void dpdx_0763f7() {
vec3 res = dFdx(vec3(0.0f, 0.0f, 0.0f));
}
void fragment_main() {
dpdx_0763f7();
}
void main() {
fragment_main();
return;
}