Skip to content

Commit

Permalink
Add doc comment for gles texture/program types about shared context
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 authored and Drakulix committed Dec 11, 2024
1 parent 44b11ce commit 3823bae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/backend/renderer/gles/shaders/implicit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<GlesTexProgramInner>);

Expand Down Expand Up @@ -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<GlesPixelProgramInner>);

Expand Down
3 changes: 3 additions & 0 deletions src/backend/renderer/gles/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<GlesTextureInternal>);

Expand Down

0 comments on commit 3823bae

Please sign in to comment.