You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the data was packed tightly it would poorly aligned and either the client or driver would need to shuffle data to add padding so that each color is aligned to 4-bytes. glTF has rules that enforce good alignment like this and we should consider adding something similar. One way glTF accomplishes this is through a stride property
Property table
"color": {
"bufferView": 0,
"stride": 4
}
The rules get trickier when we have strings, arrays with greater than 4 elements, or arrays of variable size.
The text was updated successfully, but these errors were encountered:
Property values should be well aligned for GPU architectures.
The one case we brainstormed a few weeks back is a color property like an RGB8
Class property
Property table
If the data was packed tightly it would poorly aligned and either the client or driver would need to shuffle data to add padding so that each color is aligned to 4-bytes. glTF has rules that enforce good alignment like this and we should consider adding something similar. One way glTF accomplishes this is through a stride property
Property table
The rules get trickier when we have strings, arrays with greater than 4 elements, or arrays of variable size.
The text was updated successfully, but these errors were encountered: