summaryrefslogtreecommitdiff
path: root/src/qcam/assets/shader/identity.vert
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-12 21:59:28 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-11-07 19:25:24 +0200
commitdfadca635682772cf93552642f0585ecfe2c851c (patch)
tree747a0f70e90b36a40db5574cf6b745c456484750 /src/qcam/assets/shader/identity.vert
parent99f72137e5f7f44298346415167dd603f44b9ca2 (diff)
qcam: viewfinder_gl: Rename YUV.vert to identity.vert
In preparation for RGB formats support, rename the identity vertex shader from YUV.vert to identity.vert. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Andrey Konovalov <andrey.konovalov@linaro.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/qcam/assets/shader/identity.vert')
-rw-r--r--src/qcam/assets/shader/identity.vert16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/qcam/assets/shader/identity.vert b/src/qcam/assets/shader/identity.vert
new file mode 100644
index 00000000..6d6f7551
--- /dev/null
+++ b/src/qcam/assets/shader/identity.vert
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2020, Linaro
+ *
+ * identity.vert - Identity vertex shader for pixel format conversion
+ */
+
+attribute vec4 vertexIn;
+attribute vec2 textureIn;
+varying vec2 textureOut;
+
+void main(void)
+{
+ gl_Position = vertexIn;
+ textureOut = textureIn;
+}