Skip to content

Commit

Permalink
Fix comments for Texture struct
Browse files Browse the repository at this point in the history
  • Loading branch information
valadaptive committed Sep 19, 2024
1 parent f0c0149 commit b63a75f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/egui-wgpu/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,14 @@ struct SlicedBuffer {
}

pub struct Texture {
/// The texture may be None if the `TextureId` is just a handle to a user-provided sampler.
/// The texture may be None if the `TextureId` is just a handle to a user-provided bind-group.
pub texture: Option<wgpu::Texture>,

/// Bindgroup for the texture + sampler.
pub bind_group: wgpu::BindGroup,

/// Options describing the sampler used in the bind group. This may be None if the `TextureId` is just a handle to a user-provided sampler.
/// Options describing the sampler used in the bind group. This may be None if the `TextureId`
/// is just a handle to a user-provided bind-group.
pub options: Option<epaint::textures::TextureOptions>,
}

Expand Down

0 comments on commit b63a75f

Please sign in to comment.