pub struct UiTexture {
pub id: TextureId,
pub image: ImageId,
}Expand description
One texture a frame’s draw list names, as the render graph knows it — what
UiRenderer::add_passes_with_textures
takes.
image is any image in the same graph that a fragment shader can sample
as filterable float: a secondary view’s target, the target a primary camera
drew into, an imported texture. The UI pass declares that it reads it, so
the graph puts the barrier between it and the passes that drew it, and the
caller declares nothing. Those passes are added first: the graph runs passes
in the order they were declared.
Fields§
§id: TextureIdThe name the draw list used.
image: ImageIdThe image it stands for this frame.
Trait Implementations§
impl Copy for UiTexture
impl Eq for UiTexture
impl StructuralPartialEq for UiTexture
Auto Trait Implementations§
impl Forget for UiTexture
impl Freeze for UiTexture
impl RefUnwindSafe for UiTexture
impl Send for UiTexture
impl Sync for UiTexture
impl Unpin for UiTexture
impl UnsafeUnpin for UiTexture
impl UnwindSafe for UiTexture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more