pub struct WgpuUiRenderer {
pub modified: bool,
pub vertex_buffer: Buffer,
pub index_buffer: Buffer,
pub vertex_count: usize,
pub index_count: usize,
pub bind_group_layout: BindGroupLayout,
pub bind_group: BindGroup,
pub pipeline: RenderPipeline,
pub texture: Texture,
pub texture_view: TextureView,
pub texture_sampler: Sampler,
}Fields§
§modified: bool§vertex_buffer: Buffer§index_buffer: Buffer§vertex_count: usize§index_count: usize§bind_group_layout: BindGroupLayout§bind_group: BindGroup§pipeline: RenderPipeline§texture: Texture§texture_view: TextureView§texture_sampler: SamplerImplementations§
Source§impl WgpuUiRenderer
impl WgpuUiRenderer
pub fn new(device: &Device, surface_format: TextureFormat) -> Self
pub fn update( &mut self, instance: &UiInstance, queue: &Queue, device: &Device, resolution: Vec2, )
pub fn draw(&self, encoder: &mut CommandEncoder, surface_view: &TextureView)
Auto Trait Implementations§
impl Freeze for WgpuUiRenderer
impl !RefUnwindSafe for WgpuUiRenderer
impl Send for WgpuUiRenderer
impl Sync for WgpuUiRenderer
impl Unpin for WgpuUiRenderer
impl !UnwindSafe for WgpuUiRenderer
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