⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

ComputeBuffer.Stride

int Stride{ get }

Description

Size of a single element in bytes, derived from your T struct. Handy for sanity-checking that your C# struct matches the HLSL side!




Found an issue with these docs, or have some additional questions? Create an Issue on Github!