From e338e61e0bbb4e4f90d9de0a2265c56bed9b032b Mon Sep 17 00:00:00 2001 From: pml68 Date: Wed, 9 Apr 2025 23:11:24 +0200 Subject: [PATCH] docs: add docs for what `p0` and `p1` are --- wgpu/src/triangle/msaa.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wgpu/src/triangle/msaa.rs b/wgpu/src/triangle/msaa.rs index 0bddfc09..fa752d58 100644 --- a/wgpu/src/triangle/msaa.rs +++ b/wgpu/src/triangle/msaa.rs @@ -254,6 +254,9 @@ impl Targets { struct Ratio { u: 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, p1: f32, }