mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-12 09:33:37 +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>
18 lines
207 B
GLSL
18 lines
207 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
|
|
void main_1() {
|
|
vec2 x_1 = vec2(50.0f, 60.0f);
|
|
vec2 x_2 = dFdx(x_1);
|
|
return;
|
|
}
|
|
|
|
void tint_symbol() {
|
|
main_1();
|
|
}
|
|
|
|
void main() {
|
|
tint_symbol();
|
|
return;
|
|
}
|