We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec307bc commit 16440beCopy full SHA for 16440be
crates/bevy_render/src/camera/camera.rs
@@ -1060,6 +1060,7 @@ pub fn camera_system(
1060
#[reflect(opaque)]
1061
#[reflect(Component, Default, Clone)]
1062
pub struct CameraMainTextureUsages(pub TextureUsages);
1063
+
1064
impl Default for CameraMainTextureUsages {
1065
fn default() -> Self {
1066
Self(
@@ -1070,6 +1071,13 @@ impl Default for CameraMainTextureUsages {
1070
1071
}
1072
1073
1074
+impl CameraMainTextureUsages {
1075
+ pub fn with(mut self, usages: TextureUsages) -> Self {
1076
+ self.0 |= usages;
1077
+ self
1078
+ }
1079
+}
1080
1081
#[derive(Component, Debug)]
1082
pub struct ExtractedCamera {
1083
pub target: Option<NormalizedRenderTarget>,
0 commit comments