mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-04 12:16:10 +00:00
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>
16 lines
205 B
GLSL
16 lines
205 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
|
|
void dpdyFine_1fb7ab() {
|
|
vec3 res = dFdy(vec3(0.0f, 0.0f, 0.0f));
|
|
}
|
|
|
|
void fragment_main() {
|
|
dpdyFine_1fb7ab();
|
|
}
|
|
|
|
void main() {
|
|
fragment_main();
|
|
return;
|
|
}
|