GraphicsDevice.CreateSharedData<T> Delegate
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
A delegate called to create shareable data. See remarks.
public delegate T CreateSharedData<out T>(GraphicsDevice device)
where T : class, IDisposable;
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device |
Returns
Type | Description |
---|---|
T | A new instance of the data to share. |
Type Parameters
Name | Description |
---|---|
T | Type of the data to create. |
Remarks
Because this method is being called from a lock region, this method should not be time consuming.