File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
rust/crates/compositor/src Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 5252 "nanoid" : " ^5.1.5" ,
5353 "next" : " 16.1.3" ,
5454 "next-themes" : " ^0.4.4" ,
55- "opencut-wasm" : " ^0.2.5 " ,
55+ "opencut-wasm" : " ^0.2.6 " ,
5656 "pg" : " ^8.16.2" ,
5757 "postgres" : " ^3.4.5" ,
5858 "radix-ui" : " ^1.4.3" ,
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ struct LayerUniformBuffer {
5757 opacity : f32 ,
5858 flip_x : f32 ,
5959 flip_y : f32 ,
60+ _padding : [ f32 ; 2 ] , // WebGL requires uniform buffer sizes to be multiples of 16 bytes (40 → 48)
6061}
6162
6263#[ repr( C ) ]
@@ -549,6 +550,7 @@ impl Compositor {
549550 opacity : layer. opacity ,
550551 flip_x : if layer. transform . flip_x { 1.0 } else { 0.0 } ,
551552 flip_y : if layer. transform . flip_y { 1.0 } else { 0.0 } ,
553+ _padding : [ 0.0 ; 2 ] ,
552554 } ) ,
553555 usage : wgpu:: BufferUsages :: UNIFORM | wgpu:: BufferUsages :: COPY_DST ,
554556 } ) ;
You can’t perform that action at this time.
0 commit comments