Skip to content

Commit

Permalink
RenderPass: make color/depth texture fields public as should be safe
Browse files Browse the repository at this point in the history
  • Loading branch information
profan committed May 2, 2024
1 parent 0fa5f7d commit 8f3ce2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,9 @@ pub async fn load_texture(path: &str) -> Result<Texture2D, Error> {

#[derive(Debug, Clone)]
pub struct RenderPass {
color_texture: Texture2D,
depth_texture: Option<Texture2D>,
render_pass: Arc<miniquad::RenderPass>,
pub color_texture: Texture2D,
pub depth_texture: Option<Texture2D>,
pub(crate) render_pass: Arc<miniquad::RenderPass>,
}

impl RenderPass {
Expand Down

0 comments on commit 8f3ce2c

Please sign in to comment.