#[repr(C)]pub struct TextUniforms {
pub win_width: f32,
pub win_height: f32,
pub _pad: [f32; 2],
}Expand description
Uniforms pushed to the text vertex shader once per text draw call. Carries the framebuffer size so the shader can convert pixel coords to NDC.
Fields§
§win_width: f32Framebuffer width in pixels.
win_height: f32Framebuffer height in pixels.
_pad: [f32; 2]Padding so the field layout matches the shader-side struct.
Trait Implementations§
Source§impl Clone for TextUniforms
impl Clone for TextUniforms
Source§fn clone(&self) -> TextUniforms
fn clone(&self) -> TextUniforms
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextUniforms
impl NoUninit for TextUniforms
Auto Trait Implementations§
impl Freeze for TextUniforms
impl RefUnwindSafe for TextUniforms
impl Send for TextUniforms
impl Sync for TextUniforms
impl Unpin for TextUniforms
impl UnsafeUnpin for TextUniforms
impl UnwindSafe for TextUniforms
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