From 3823bae9170583a431a94d1f9893346b2a1854da Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Tue, 10 Dec 2024 12:02:01 -0800 Subject: [PATCH] Add doc comment for gles texture/program types about shared context --- src/backend/renderer/gles/shaders/implicit/mod.rs | 6 ++++++ src/backend/renderer/gles/texture.rs | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/backend/renderer/gles/shaders/implicit/mod.rs b/src/backend/renderer/gles/shaders/implicit/mod.rs index 427c9457f377..2667306b82fb 100644 --- a/src/backend/renderer/gles/shaders/implicit/mod.rs +++ b/src/backend/renderer/gles/shaders/implicit/mod.rs @@ -29,6 +29,9 @@ pub(in super::super) struct GlesTexProgramVariant { } /// Gles texture shader +/// +/// The program can be used with the same [`GlesRenderer`] it was created with, or one using a +/// shared [`EGLContext`]. #[derive(Debug, Clone)] pub struct GlesTexProgram(pub(in super::super) Arc); @@ -82,6 +85,9 @@ pub(in super::super) struct GlesSolidProgram { } /// Gles pixel shader +/// +/// The program can be used with the same [`GlesRenderer`] it was created with, or one using a +/// shared [`EGLContext`]. #[derive(Debug, Clone)] pub struct GlesPixelProgram(pub(in super::super) Arc); diff --git a/src/backend/renderer/gles/texture.rs b/src/backend/renderer/gles/texture.rs index 8154bdc9a7e7..0fbaa802138b 100644 --- a/src/backend/renderer/gles/texture.rs +++ b/src/backend/renderer/gles/texture.rs @@ -2,6 +2,9 @@ use super::*; use std::sync::Arc; /// A handle to a GLES texture +/// +/// The texture can be used with the same [`GlesRenderer`] it was created with, or one using a +/// shared [`EGLContext`]. #[derive(Debug, Clone)] pub struct GlesTexture(pub(super) Arc);