pub struct LinePatternBatchEntry {
pub vertex_buffer: Buffer,
pub index_buffer: Buffer,
pub index_count: u32,
pub uniform_bind_group: BindGroup,
pub texture_bind_group: BindGroup,
pub _pattern_texture: Texture,
pub _pattern_texture_view: TextureView,
pub line_params: [f32; 4],
}Expand description
GPU buffers for a single patterned line layer.
Fields§
§vertex_buffer: BufferVertex buffer ([LinePatternVertex]).
index_buffer: BufferIndex buffer (u32 indices).
index_count: u32Total number of indices to draw.
uniform_bind_group: BindGroupBind group 0: view-proj + line-style uniforms.
texture_bind_group: BindGroupBind group 1: pattern texture (binding 0) + sampler (binding 1).
_pattern_texture: TextureRetained pattern texture (must outlive the bind group).
_pattern_texture_view: TextureViewRetained pattern texture view.
line_params: [f32; 4]Line style parameters [dash_length, gap_length, cap_round, 0].
Auto Trait Implementations§
impl Freeze for LinePatternBatchEntry
impl !RefUnwindSafe for LinePatternBatchEntry
impl Send for LinePatternBatchEntry
impl Sync for LinePatternBatchEntry
impl Unpin for LinePatternBatchEntry
impl UnsafeUnpin for LinePatternBatchEntry
impl !UnwindSafe for LinePatternBatchEntry
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