docs: add docs for what p0 and p1 are

This commit is contained in:
pml68 2025-04-09 23:11:24 +02:00
parent bf6c7d0094
commit e338e61e0b

View file

@ -254,6 +254,9 @@ impl Targets {
struct Ratio { struct Ratio {
u: f32, u: f32,
v: f32, v: f32,
// Padding fields to make Ratio 16 byte aligned
//
// See https://docs.rs/wgpu/latest/wgpu/struct.DownlevelFlags.html#associatedconstant.BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED
p0: f32, p0: f32,
p1: f32, p1: f32,
} }