[libcamera-devel] [PATCH v2 2/2] qcam: assets: shader: bayer_8.vert: Add precision
Kunal Agarwal
kunalagarwal1072002 at gmail.com
Tue Jun 28 21:13:55 CEST 2022
Currently there is no defined precision for data types
which results in compilation errors for shader.
Adding precision mediump for sufficient and required
range and accuracy. Also suitable for textures.
Precision highp also works but is not supported by some
older hardware devices and consumes more memory.
Signed-off-by: Kunal Agarwal <kunalagarwal1072002 at gmail.com>
---
src/qcam/assets/shader/bayer_8.vert | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/qcam/assets/shader/bayer_8.vert b/src/qcam/assets/shader/bayer_8.vert
index 3695a5e9..a250bb81 100644
--- a/src/qcam/assets/shader/bayer_8.vert
+++ b/src/qcam/assets/shader/bayer_8.vert
@@ -15,6 +15,9 @@ Copyright (C) 2021, Linaro
*/
//Vertex Shader
+#ifdef GL_ES
+precision mediump float;
+#endif
attribute vec4 vertexIn;
attribute vec2 textureIn;
--
2.25.1
More information about the libcamera-devel
mailing list