pub struct WG {
pub vips: Vec<VIP>,
pub bind_group: Vec<TextureBindGroup>,
pub bg: usize,
pub mvp: Mat4,
pub uniform_buf: Buffer,
pub pipeline: RenderPipeline,
pub pipeline_wire: Option<RenderPipeline>,
pub wire: bool,
}Expand description
World of GL
Fields§
§vips: Vec<VIP>VIPs
bind_group: Vec<TextureBindGroup>vector of TextureBindGroup
bg: usizecurrent bind group
mvp: Mat4mvp (always hold copy)
uniform_buf: Bufferwgpu::Buffer for mvp
pipeline: RenderPipelinepipeline
pipeline_wire: Option<RenderPipeline>pipeline_wire
wire: booldraw wire without(true) or with(false) texture
Implementations§
source§impl WG
impl WG
World of GL
sourcepub fn update_matrix(
&mut self,
config: &SurfaceConfiguration,
_device: &Device,
queue: &Queue,
yrp: &YRP
)
pub fn update_matrix( &mut self, config: &SurfaceConfiguration, _device: &Device, queue: &Queue, yrp: &YRP )
update matrix
sourcepub fn draw(&mut self, view: &TextureView, device: &Device, queue: &Queue)
pub fn draw(&mut self, view: &TextureView, device: &Device, queue: &Queue)
draw
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WG
impl Send for WG
impl Sync for WG
impl Unpin for WG
impl !UnwindSafe for WG
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