fix: "BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED not supported" error

This commit is contained in:
pml68 2025-04-09 22:53:40 +02:00
parent 6508ad67c1
commit bf6c7d0094
2 changed files with 6 additions and 2 deletions

View file

@ -254,6 +254,8 @@ impl Targets {
struct Ratio {
u: f32,
v: f32,
p0: f32,
p1: f32,
}
pub struct State {
@ -306,6 +308,8 @@ impl State {
let ratio = Ratio {
u: region_size.width as f32 / targets.size.width as f32,
v: region_size.height as f32 / targets.size.height as f32,
p0: 0.0,
p1: 0.0,
};
if Some(ratio) != self.last_ratio {