We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b4f922 commit b3bad0eCopy full SHA for b3bad0e
wgpu-types/src/lib.rs
@@ -4984,6 +4984,12 @@ impl VertexFormat {
4984
Self::Float16x2 | Self::Snorm16x2 => 4,
4985
Self::Float32x3 => 12,
4986
Self::Float32x2 => 8,
4987
+ // This is the minimum value from DirectX
4988
+ // > A16 component is ignored, other data can be packed there, such as setting vertex stride to 6 bytes
4989
+ //
4990
+ // https://microsoft.github.io/DirectX-Specs/d3d/Raytracing.html#d3d12_raytracing_geometry_triangles_desc
4991
4992
+ // Vulkan does not express a minimum stride.
4993
Self::Float16x4 | Self::Snorm16x4 => 6,
4994
_ => unreachable!(),
4995
}
0 commit comments