Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sdk/tests/conformance/misc/shader-precision-format.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@
testRenderPrecision(gl, shaderType, 'int', precision, expected, msg);
}

// Only use highp in the fragment shader if caller has determined it's supported.
const uniformPrecision = (precision == 'highp' ? 'highp' : 'mediump');

{
const vs = `
attribute vec4 position;
Expand Down Expand Up @@ -261,7 +264,7 @@
const fs = `
precision ${precision} float;
uniform ${precision} int v;
uniform mediump float f;
uniform ${uniformPrecision} float f;

void main() {
mediump float diff = abs(float(v) - f);
Expand Down