Fixed some more imports/documentation.
This commit is contained in:
parent
72feba51be
commit
f9a6efcaa0
12 changed files with 28 additions and 26 deletions
|
|
@ -26,7 +26,7 @@ pub(super) struct GradientUniforms {
|
|||
transform: glam::Mat4,
|
||||
//xy = start, zw = end
|
||||
direction: Vec4,
|
||||
//x = start, y = end, zw = padding
|
||||
//x = start stop, y = end stop, zw = padding
|
||||
stop_range: IVec4,
|
||||
}
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ impl GradientPipeline {
|
|||
);
|
||||
|
||||
//Note: with a WASM target storage buffers are not supported. Will need to use UBOs & static
|
||||
// sized array (eg like the 64-sized array on OpenGL side right now) to make gradients work
|
||||
// sized array (eg like the 32-sized array on OpenGL side right now) to make gradients work
|
||||
let storage_buffer = DynamicBuffer::storage(
|
||||
device,
|
||||
"iced_wgpu::triangle [GRADIENT] storage",
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ use iced_graphics::Transformation;
|
|||
|
||||
pub struct SolidPipeline {
|
||||
pipeline: wgpu::RenderPipeline,
|
||||
pub(crate) buffer: DynamicBuffer<SolidUniforms>,
|
||||
pub(super) buffer: DynamicBuffer<SolidUniforms>,
|
||||
bind_group_layout: wgpu::BindGroupLayout,
|
||||
bind_group: wgpu::BindGroup,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, ShaderType)]
|
||||
pub struct SolidUniforms {
|
||||
pub(super) struct SolidUniforms {
|
||||
transform: glam::Mat4,
|
||||
color: Vec4,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue