| Parameter | Description |
|---|---|
| layout | The buffer to access. The default value is BlendShapeBufferLayout.PerShape. |
GraphicsBuffer The blend shape vertex data as a GraphicsBuffer, or null if the sprite has no blend shapes.
Retrieves a GraphicsBuffer that provides direct read and write access to GPU blend shape vertex data.
The buffer that this method returns is called the blend shape buffer. It contains blend shape vertices, which the GPU uses to deform the sprite mesh into blend shapes.
There are two blend shape buffers that you can access. They use different layout patterns, and contain slightly different data. For more information, refer to BlendShapeBufferLayout.PerShape and BlendShapeBufferLayout.PerVertex. Compute shader support is required to access this buffer.
The version of this method that takes no parameter is equivalent to calling it with BlendShapeBufferLayout.PerShape as the argument.
After using this buffer, you should dispose of it.