Patch Detail
Show a patch.
GET /api/patches/25102/?format=api
{ "id": 25102, "url": "https://patchwork.libcamera.org/api/patches/25102/?format=api", "web_url": "https://patchwork.libcamera.org/patch/25102/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20251120232019.3590-2-bryan.odonoghue@linaro.org>", "date": "2025-11-20T23:19:58", "name": "[01/22] libcamera: shaders: Move GL shader programs to src/libcamera/assets/shader", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "8a783ff1d97288c8c038464e429dda203173594d", "submitter": { "id": 175, "url": "https://patchwork.libcamera.org/api/people/175/?format=api", "name": "Bryan O'Donoghue", "email": "bryan.odonoghue@linaro.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/25102/mbox/", "series": [ { "id": 5599, "url": "https://patchwork.libcamera.org/api/series/5599/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5599", "date": "2025-11-20T23:19:57", "name": "GPUISP precursor series", "version": 1, "mbox": "https://patchwork.libcamera.org/series/5599/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/25102/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/25102/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id DF375C3330\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 20 Nov 2025 23:20:31 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 45030609D8;\n\tFri, 21 Nov 2025 00:20:31 +0100 (CET)", "from mail-wr1-x433.google.com (mail-wr1-x433.google.com\n\t[IPv6:2a00:1450:4864:20::433])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C0C0A609D8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 21 Nov 2025 00:20:27 +0100 (CET)", "by mail-wr1-x433.google.com with SMTP id\n\tffacd0b85a97d-42b31c610fcso1224813f8f.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 20 Nov 2025 15:20:27 -0800 (PST)", "from inspiron14p-linux.ht.home (188-141-3-146.dynamic.upc.ie.\n\t[188.141.3.146]) by smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-477bf3af0ecsm11618415e9.9.2025.11.20.15.20.25\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 20 Nov 2025 15:20:26 -0800 (PST)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"syCuUDHo\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1763680827; x=1764285627;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=/gSAihp723eT5WD8BN6u+nuIIn+QakUM8//jMcFRlD0=;\n\tb=syCuUDHoUyRmlZRKJDEngETFTMP3bfJJ+dt5mAHwZxOh1rj7hK0jUwKk34LBRSsiDD\n\tALy5DybXgJKSQX+AfeCsACd+pj1wM486+ddYJMKjBe0JaeiCZUT0nJ819ALV3Aw5nZru\n\tMgL9awmFChIo8UprgozLkwvUmwHTco1ihMRW21ZRKN9z1QaoatHALbKOuUnAFu+RSyMp\n\tFbNzKpDN1eg72A2B9roUl29BP3t9TZeoVOcETFGl857ICnnNfMTj9e5OqqcfjCARBYnk\n\t8b3gLYwavlxYTuRLXUjhIW8APMS0Dderv/uWPWs5OV5EZbnDaLPq5hXIQJKgqu8B3+QH\n\tuQcg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1763680827; x=1764285627;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n\t:to:cc:subject:date:message-id:reply-to;\n\tbh=/gSAihp723eT5WD8BN6u+nuIIn+QakUM8//jMcFRlD0=;\n\tb=r/KL/A0c8Tz71VlD4WmStUNaWC16c365tWx3eVgftS+8UCvucv33NeKfWRGY+FUZR5\n\tWuTiczMM1UzANxRTpr3J1/TIBtw4gGvT92vM4Pt38BvqomdgLybsbWYYbxw2Wzlmclgp\n\t+jyyx6lzKOeix445O8I2+DwmpTn9cxR05iE4ODE8PcZpUd/Z6hz71iWdSnhzK2h01FUQ\n\txleCLNMtPxHzvu/gm+8a4lkp0pCrJfsjt2WK0tOcu2pmD4GYjsejHovqoP66ewNzQZ8I\n\tne7/Gm9TrTwN7Ke3xDgoKGdgRtf46RCd3qlYEbh0bTGFXPwH1dmzQWw1jd2Na09nsSVD\n\t8LAQ==", "X-Gm-Message-State": "AOJu0YxV6fr/2V6V49xLi7sjdFRt7apDrPwcEMsrwBz+s+AEA5xoyGcd\n\t9kJwkdL60p81gxiRXhq/B/VbYVdFm+AGZz8Eo6e9Emimwo3uOfjHhFC3O6I/qpvKvGmhwb+XuGQ\n\tja+GFYI8=", "X-Gm-Gg": "ASbGncss1lwNxDiRa0S9axyOTa3VEOS74oY+kkLAjzbpoB+rPD6xdkWzb667MiLmfDZ\n\tgsjDVlCknbYdhcOee3bqtokBN1KDOtwCUv9dHNTJLztiL46McLOjXQ0gN6qk15PTVpDwkjgi/UY\n\tIqcCCdoOpRlCM1CnB+SXmJkupi5Fud+r4ebtBGAzx98oOK0BhaP1g0c8uPAoPMoFnU1CECOlpxq\n\tFTeVoW6T8X2V0h3pQGWZWCFR142J6jAcdKuNHgas3UrCPBLgbEutdwa4Rsmis351Nv+MhtNBMdm\n\tEJ/E0btMgAmskM7bqBlmwEu26VCHYjCe2X3rr+/0GkKw/nFUg+KqiWWdUu1lqzOZfGxtsiPm2Kq\n\tqrNc0fgMihGtu99NsoR/3tCDDzURykAtJzmSBpSKbYuNwsQuJ6Wnsq6gokXU6HVaSBhMsOXlqfM\n\tSQHvf3jU66nJrfVcY61jrQMd/p9BXlXmJMSQbSUVHEtA0fQK5hCsBNyLfzklq3Uh6lh/o=", "X-Google-Smtp-Source": "AGHT+IH3ZVeF7T5NRTnMLJwulVifL2sOXyzdRYtZy99dxuzrTX/N1t4C9m0GNOntLJrMijUHxnFX/Q==", "X-Received": "by 2002:a05:6000:4026:b0:42b:3220:941e with SMTP id\n\tffacd0b85a97d-42cc1cbce4bmr80745f8f.19.1763680827061; \n\tThu, 20 Nov 2025 15:20:27 -0800 (PST)", "From": "Bryan O'Donoghue <bryan.odonoghue@linaro.org>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "pavel@ucw.cz, Bryan O'Donoghue <bryan.odonoghue@linaro.org>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>,\n\tMilan Zamazal <mzamazal@redhat.com>", "Subject": "[PATCH 01/22] libcamera: shaders: Move GL shader programs to\n\tsrc/libcamera/assets/shader", "Date": "Thu, 20 Nov 2025 23:19:58 +0000", "Message-ID": "<20251120232019.3590-2-bryan.odonoghue@linaro.org>", "X-Mailer": "git-send-email 2.51.2", "In-Reply-To": "<20251120232019.3590-1-bryan.odonoghue@linaro.org>", "References": "<20251120232019.3590-1-bryan.odonoghue@linaro.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Moving the vertex and fragment shaders to src/libcamera/assets/shader to\nallow for reuse of these inside of the SoftISP.\n\nA comment has been added to src/apps/qcom/meson.build to force a\nrebuild.\n\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\nReviewed-by: Milan Zamazal <mzamazal@redhat.com>\nSigned-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>\n---\n .../libcamera/internal/shaders}/RGB.frag | 0\n .../internal/shaders}/YUV_2_planes.frag | 0\n .../internal/shaders}/YUV_3_planes.frag | 0\n .../internal/shaders}/YUV_packed.frag | 0\n .../internal/shaders}/bayer_1x_packed.frag | 0\n .../libcamera/internal/shaders}/bayer_8.frag | 0\n .../libcamera/internal/shaders}/bayer_8.vert | 0\n .../libcamera/internal/shaders}/identity.vert | 0\n src/apps/qcam/assets/shader/shaders.qrc | 16 ++---\n src/apps/qcam/meson.build | 3 +\n src/apps/qcam/viewfinder_gl.cpp | 70 +++++++++----------\n 11 files changed, 46 insertions(+), 43 deletions(-)\n rename {src/apps/qcam/assets/shader => include/libcamera/internal/shaders}/RGB.frag (100%)\n rename {src/apps/qcam/assets/shader => include/libcamera/internal/shaders}/YUV_2_planes.frag (100%)\n rename {src/apps/qcam/assets/shader => include/libcamera/internal/shaders}/YUV_3_planes.frag (100%)\n rename {src/apps/qcam/assets/shader => include/libcamera/internal/shaders}/YUV_packed.frag (100%)\n rename {src/apps/qcam/assets/shader => include/libcamera/internal/shaders}/bayer_1x_packed.frag (100%)\n rename {src/apps/qcam/assets/shader => include/libcamera/internal/shaders}/bayer_8.frag (100%)\n rename {src/apps/qcam/assets/shader => include/libcamera/internal/shaders}/bayer_8.vert (100%)\n rename {src/apps/qcam/assets/shader => include/libcamera/internal/shaders}/identity.vert (100%)", "diff": "diff --git a/src/apps/qcam/assets/shader/RGB.frag b/include/libcamera/internal/shaders/RGB.frag\nsimilarity index 100%\nrename from src/apps/qcam/assets/shader/RGB.frag\nrename to include/libcamera/internal/shaders/RGB.frag\ndiff --git a/src/apps/qcam/assets/shader/YUV_2_planes.frag b/include/libcamera/internal/shaders/YUV_2_planes.frag\nsimilarity index 100%\nrename from src/apps/qcam/assets/shader/YUV_2_planes.frag\nrename to include/libcamera/internal/shaders/YUV_2_planes.frag\ndiff --git a/src/apps/qcam/assets/shader/YUV_3_planes.frag b/include/libcamera/internal/shaders/YUV_3_planes.frag\nsimilarity index 100%\nrename from src/apps/qcam/assets/shader/YUV_3_planes.frag\nrename to include/libcamera/internal/shaders/YUV_3_planes.frag\ndiff --git a/src/apps/qcam/assets/shader/YUV_packed.frag b/include/libcamera/internal/shaders/YUV_packed.frag\nsimilarity index 100%\nrename from src/apps/qcam/assets/shader/YUV_packed.frag\nrename to include/libcamera/internal/shaders/YUV_packed.frag\ndiff --git a/src/apps/qcam/assets/shader/bayer_1x_packed.frag b/include/libcamera/internal/shaders/bayer_1x_packed.frag\nsimilarity index 100%\nrename from src/apps/qcam/assets/shader/bayer_1x_packed.frag\nrename to include/libcamera/internal/shaders/bayer_1x_packed.frag\ndiff --git a/src/apps/qcam/assets/shader/bayer_8.frag b/include/libcamera/internal/shaders/bayer_8.frag\nsimilarity index 100%\nrename from src/apps/qcam/assets/shader/bayer_8.frag\nrename to include/libcamera/internal/shaders/bayer_8.frag\ndiff --git a/src/apps/qcam/assets/shader/bayer_8.vert b/include/libcamera/internal/shaders/bayer_8.vert\nsimilarity index 100%\nrename from src/apps/qcam/assets/shader/bayer_8.vert\nrename to include/libcamera/internal/shaders/bayer_8.vert\ndiff --git a/src/apps/qcam/assets/shader/identity.vert b/include/libcamera/internal/shaders/identity.vert\nsimilarity index 100%\nrename from src/apps/qcam/assets/shader/identity.vert\nrename to include/libcamera/internal/shaders/identity.vert\ndiff --git a/src/apps/qcam/assets/shader/shaders.qrc b/src/apps/qcam/assets/shader/shaders.qrc\nindex 96c709f92..04f9d7061 100644\n--- a/src/apps/qcam/assets/shader/shaders.qrc\n+++ b/src/apps/qcam/assets/shader/shaders.qrc\n@@ -1,13 +1,13 @@\n <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->\n <!DOCTYPE RCC><RCC version=\"1.0\">\n <qresource>\n-\t<file>RGB.frag</file>\n-\t<file>YUV_2_planes.frag</file>\n-\t<file>YUV_3_planes.frag</file>\n-\t<file>YUV_packed.frag</file>\n-\t<file>bayer_1x_packed.frag</file>\n-\t<file>bayer_8.frag</file>\n-\t<file>bayer_8.vert</file>\n-\t<file>identity.vert</file>\n+\t<file>../../../../../include/libcamera/internal/shaders/RGB.frag</file>\n+\t<file>../../../../../include/libcamera/internal/shaders/YUV_2_planes.frag</file>\n+\t<file>../../../../../include/libcamera/internal/shaders/YUV_3_planes.frag</file>\n+\t<file>../../../../../include/libcamera/internal/shaders/YUV_packed.frag</file>\n+\t<file>../../../../../include/libcamera/internal/shaders/bayer_1x_packed.frag</file>\n+\t<file>../../../../../include/libcamera/internal/shaders/bayer_8.frag</file>\n+\t<file>../../../../../include/libcamera/internal/shaders/bayer_8.vert</file>\n+\t<file>../../../../../include/libcamera/internal/shaders/identity.vert</file>\n </qresource>\n </RCC>\ndiff --git a/src/apps/qcam/meson.build b/src/apps/qcam/meson.build\nindex 9ca047b0f..33600095f 100644\n--- a/src/apps/qcam/meson.build\n+++ b/src/apps/qcam/meson.build\n@@ -64,3 +64,6 @@ qcam = executable('qcam', qcam_sources, resources,\n qt6_dep,\n ],\n cpp_args : qt6_cpp_args)\n+\n+# Note: qt6.preprocess does not automatically rebuild when the\n+# qcam_resources dependency chain is updated.\ndiff --git a/src/apps/qcam/viewfinder_gl.cpp b/src/apps/qcam/viewfinder_gl.cpp\nindex f31956ff0..70f600650 100644\n--- a/src/apps/qcam/viewfinder_gl.cpp\n+++ b/src/apps/qcam/viewfinder_gl.cpp\n@@ -141,7 +141,7 @@ bool ViewFinderGL::selectFormat(const libcamera::PixelFormat &format)\n \ttextureMinMagFilters_ = GL_LINEAR;\n \n \t/* Use identity.vert as the default vertex shader. */\n-\tvertexShaderFile_ = \":identity.vert\";\n+\tvertexShaderFile_ = \":include/libcamera/internal/shaders/identity.vert\";\n \n \tfragmentShaderDefines_.clear();\n \n@@ -150,170 +150,170 @@ bool ViewFinderGL::selectFormat(const libcamera::PixelFormat &format)\n \t\thorzSubSample_ = 2;\n \t\tvertSubSample_ = 2;\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_UV\");\n-\t\tfragmentShaderFile_ = \":YUV_2_planes.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_2_planes.frag\";\n \t\tbreak;\n \tcase libcamera::formats::NV21:\n \t\thorzSubSample_ = 2;\n \t\tvertSubSample_ = 2;\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_VU\");\n-\t\tfragmentShaderFile_ = \":YUV_2_planes.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_2_planes.frag\";\n \t\tbreak;\n \tcase libcamera::formats::NV16:\n \t\thorzSubSample_ = 2;\n \t\tvertSubSample_ = 1;\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_UV\");\n-\t\tfragmentShaderFile_ = \":YUV_2_planes.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_2_planes.frag\";\n \t\tbreak;\n \tcase libcamera::formats::NV61:\n \t\thorzSubSample_ = 2;\n \t\tvertSubSample_ = 1;\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_VU\");\n-\t\tfragmentShaderFile_ = \":YUV_2_planes.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_2_planes.frag\";\n \t\tbreak;\n \tcase libcamera::formats::NV24:\n \t\thorzSubSample_ = 1;\n \t\tvertSubSample_ = 1;\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_UV\");\n-\t\tfragmentShaderFile_ = \":YUV_2_planes.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_2_planes.frag\";\n \t\tbreak;\n \tcase libcamera::formats::NV42:\n \t\thorzSubSample_ = 1;\n \t\tvertSubSample_ = 1;\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_VU\");\n-\t\tfragmentShaderFile_ = \":YUV_2_planes.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_2_planes.frag\";\n \t\tbreak;\n \tcase libcamera::formats::YUV420:\n \t\thorzSubSample_ = 2;\n \t\tvertSubSample_ = 2;\n-\t\tfragmentShaderFile_ = \":YUV_3_planes.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_3_planes.frag\";\n \t\tbreak;\n \tcase libcamera::formats::YVU420:\n \t\thorzSubSample_ = 2;\n \t\tvertSubSample_ = 2;\n-\t\tfragmentShaderFile_ = \":YUV_3_planes.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_3_planes.frag\";\n \t\tbreak;\n \tcase libcamera::formats::UYVY:\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_UYVY\");\n-\t\tfragmentShaderFile_ = \":YUV_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_packed.frag\";\n \t\tbreak;\n \tcase libcamera::formats::VYUY:\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_VYUY\");\n-\t\tfragmentShaderFile_ = \":YUV_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_packed.frag\";\n \t\tbreak;\n \tcase libcamera::formats::YUYV:\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_YUYV\");\n-\t\tfragmentShaderFile_ = \":YUV_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_packed.frag\";\n \t\tbreak;\n \tcase libcamera::formats::YVYU:\n \t\tfragmentShaderDefines_.append(\"#define YUV_PATTERN_YVYU\");\n-\t\tfragmentShaderFile_ = \":YUV_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/YUV_packed.frag\";\n \t\tbreak;\n \tcase libcamera::formats::ABGR8888:\n \t\tfragmentShaderDefines_.append(\"#define RGB_PATTERN rgb\");\n-\t\tfragmentShaderFile_ = \":RGB.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/RGB.frag\";\n \t\tbreak;\n \tcase libcamera::formats::ARGB8888:\n \t\tfragmentShaderDefines_.append(\"#define RGB_PATTERN bgr\");\n-\t\tfragmentShaderFile_ = \":RGB.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/RGB.frag\";\n \t\tbreak;\n \tcase libcamera::formats::BGRA8888:\n \t\tfragmentShaderDefines_.append(\"#define RGB_PATTERN gba\");\n-\t\tfragmentShaderFile_ = \":RGB.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/RGB.frag\";\n \t\tbreak;\n \tcase libcamera::formats::RGBA8888:\n \t\tfragmentShaderDefines_.append(\"#define RGB_PATTERN abg\");\n-\t\tfragmentShaderFile_ = \":RGB.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/RGB.frag\";\n \t\tbreak;\n \tcase libcamera::formats::BGR888:\n \t\tfragmentShaderDefines_.append(\"#define RGB_PATTERN rgb\");\n-\t\tfragmentShaderFile_ = \":RGB.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/RGB.frag\";\n \t\tbreak;\n \tcase libcamera::formats::RGB888:\n \t\tfragmentShaderDefines_.append(\"#define RGB_PATTERN bgr\");\n-\t\tfragmentShaderFile_ = \":RGB.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/RGB.frag\";\n \t\tbreak;\n \tcase libcamera::formats::SBGGR8:\n \t\tfirstRed_.setX(1.0);\n \t\tfirstRed_.setY(1.0);\n-\t\tvertexShaderFile_ = \":bayer_8.vert\";\n-\t\tfragmentShaderFile_ = \":bayer_8.frag\";\n+\t\tvertexShaderFile_ = \":include/libcamera/internal/shaders/bayer_8.vert\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_8.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SGBRG8:\n \t\tfirstRed_.setX(0.0);\n \t\tfirstRed_.setY(1.0);\n-\t\tvertexShaderFile_ = \":bayer_8.vert\";\n-\t\tfragmentShaderFile_ = \":bayer_8.frag\";\n+\t\tvertexShaderFile_ = \":include/libcamera/internal/shaders/bayer_8.vert\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_8.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SGRBG8:\n \t\tfirstRed_.setX(1.0);\n \t\tfirstRed_.setY(0.0);\n-\t\tvertexShaderFile_ = \":bayer_8.vert\";\n-\t\tfragmentShaderFile_ = \":bayer_8.frag\";\n+\t\tvertexShaderFile_ = \":include/libcamera/internal/shaders/bayer_8.vert\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_8.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SRGGB8:\n \t\tfirstRed_.setX(0.0);\n \t\tfirstRed_.setY(0.0);\n-\t\tvertexShaderFile_ = \":bayer_8.vert\";\n-\t\tfragmentShaderFile_ = \":bayer_8.frag\";\n+\t\tvertexShaderFile_ = \":include/libcamera/internal/shaders/bayer_8.vert\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_8.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SBGGR10_CSI2P:\n \t\tfirstRed_.setX(1.0);\n \t\tfirstRed_.setY(1.0);\n \t\tfragmentShaderDefines_.append(\"#define RAW10P\");\n-\t\tfragmentShaderFile_ = \":bayer_1x_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_1x_packed.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SGBRG10_CSI2P:\n \t\tfirstRed_.setX(0.0);\n \t\tfirstRed_.setY(1.0);\n \t\tfragmentShaderDefines_.append(\"#define RAW10P\");\n-\t\tfragmentShaderFile_ = \":bayer_1x_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_1x_packed.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SGRBG10_CSI2P:\n \t\tfirstRed_.setX(1.0);\n \t\tfirstRed_.setY(0.0);\n \t\tfragmentShaderDefines_.append(\"#define RAW10P\");\n-\t\tfragmentShaderFile_ = \":bayer_1x_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_1x_packed.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SRGGB10_CSI2P:\n \t\tfirstRed_.setX(0.0);\n \t\tfirstRed_.setY(0.0);\n \t\tfragmentShaderDefines_.append(\"#define RAW10P\");\n-\t\tfragmentShaderFile_ = \":bayer_1x_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_1x_packed.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SBGGR12_CSI2P:\n \t\tfirstRed_.setX(1.0);\n \t\tfirstRed_.setY(1.0);\n \t\tfragmentShaderDefines_.append(\"#define RAW12P\");\n-\t\tfragmentShaderFile_ = \":bayer_1x_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_1x_packed.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SGBRG12_CSI2P:\n \t\tfirstRed_.setX(0.0);\n \t\tfirstRed_.setY(1.0);\n \t\tfragmentShaderDefines_.append(\"#define RAW12P\");\n-\t\tfragmentShaderFile_ = \":bayer_1x_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_1x_packed.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SGRBG12_CSI2P:\n \t\tfirstRed_.setX(1.0);\n \t\tfirstRed_.setY(0.0);\n \t\tfragmentShaderDefines_.append(\"#define RAW12P\");\n-\t\tfragmentShaderFile_ = \":bayer_1x_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_1x_packed.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tcase libcamera::formats::SRGGB12_CSI2P:\n \t\tfirstRed_.setX(0.0);\n \t\tfirstRed_.setY(0.0);\n \t\tfragmentShaderDefines_.append(\"#define RAW12P\");\n-\t\tfragmentShaderFile_ = \":bayer_1x_packed.frag\";\n+\t\tfragmentShaderFile_ = \":include/libcamera/internal/shaders/bayer_1x_packed.frag\";\n \t\ttextureMinMagFilters_ = GL_NEAREST;\n \t\tbreak;\n \tdefault:\n", "prefixes": [ "01/22" ] }