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
While not common, it has come up in practice that direct array parameters may want to allow writing sparse data arrays internal to the 3D rendering engine. This specifically came up in the Cycles implementation where VEC3 data is 16-byte aligned -- thus a staging buffer is required for the current formulation of direct parameter arrays.
The remedy is quite simple -- have a stride out-parameter that implementations use to calculate the offset into the memory for each element. This would look like:
While not common, it has come up in practice that direct array parameters may want to allow writing sparse data arrays internal to the 3D rendering engine. This specifically came up in the Cycles implementation where
VEC3
data is 16-byte aligned -- thus a staging buffer is required for the current formulation of direct parameter arrays.The remedy is quite simple -- have a stride out-parameter that implementations use to calculate the offset into the memory for each element. This would look like:
The text was updated successfully, but these errors were encountered: