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
World of GL
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 !Freeze for WG
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more