Skip to content

Commit

Permalink
Remove bad fn and add some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aecsocket committed Nov 3, 2024
1 parent dcd6856 commit 4538e81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions crates/bevy_render/src/camera/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,11 @@ impl From<ManualTextureViewHandle> for RenderTarget {
/// Normalized version of the render target.
///
/// Once we have this we shouldn't need to resolve it down anymore.
///
/// # [`PartialEq`], [`Hash`], [`Ord`] implementations
///
/// This type is used to check for ambiguities between cameras and their render
/// targets. For this purpose, the `scale_factor` field of variants is ignored.
#[derive(Debug, Clone, Reflect, From)]
pub enum NormalizedRenderTarget {
/// Window to which the camera's view is rendered.
Expand Down
8 changes: 0 additions & 8 deletions crates/bevy_render/src/view/window/screenshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,6 @@ impl Screenshot {
pub fn texture_view(texture_view: ManualTextureViewHandle) -> Self {
Self(RenderTarget::from(texture_view))
}

/// Capture a screenshot of the given [`RenderTarget`].
///
/// If you know exactly what your render target is, prefer using the other
/// functions on this type.
pub fn target(target: RenderTarget) -> Self {
Self(target)
}
}

struct ScreenshotPreparedState {
Expand Down

0 comments on commit 4538e81

Please sign in to comment.