Accessors with of 1-byte data are not aligned
See original GitHub issueEach vertex must be aligned, i.e., buffer view for such accessors must have stride of 4.
Mesh_PrimitiveAttribute\Mesh_PrimitiveAttribute_01.gltf
/meshes/0/primitives/0/attributes/TEXCOORD_0: Vertex attribute data must be aligned to 4-byte boundaries.
Mesh_PrimitiveVertexColor\Mesh_PrimitiveVertexColor_01.gltf
/meshes/0/primitives/0/attributes/COLOR_0: Vertex attribute data must be aligned to 4-byte boundaries.
Mesh_PrimitiveVertexColor\Mesh_PrimitiveVertexColor_02.gltf
/meshes/0/primitives/0/attributes/COLOR_0: Vertex attribute data must be aligned to 4-byte boundaries.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Data Alignment Across Architectures: The Good, The Bad ...
Alignment depends on byte order. Casting happens all the time in C behind the scenes, which is pretty bad for a language that...
Read more >How to allocate aligned memory only using the standard ...
No free() required. This is typically two instructions: subtract 1024 from the stack pointer, then AND the stack pointer with -alignment.
Read more >Data Alignment
Data alignment means that the address of a data can be evenly divisible by 1, 2, 4, or 8. In other words, data...
Read more >Structure Member Alignment, Padding and Data Packing
A variable's data alignment deals with the way the data is stored in ... We need 1-byte padding after the char member to...
Read more >3.5. Aligning a Struct with or without Padding
A proper struct alignment means that the alignment can be evenly divided by the struct size. Important: Ensure a 4-byte alignment for the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Some GPUs (mostly mobile) may refuse to load unaligned data, it may lead to a runtime failure or in-driver data realignment.
Should be resolved for the above models now. Thanks for flagging @lexaknyazev !