Skip to content

Commit b3bad0e

Browse files
committed
Add an internal comment about the underlying api .
1 parent 6b4f922 commit b3bad0e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wgpu-types/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4984,6 +4984,12 @@ impl VertexFormat {
49844984
Self::Float16x2 | Self::Snorm16x2 => 4,
49854985
Self::Float32x3 => 12,
49864986
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.
49874993
Self::Float16x4 | Self::Snorm16x4 => 6,
49884994
_ => unreachable!(),
49894995
}

0 commit comments

Comments
 (0)