'Declaration Public Overloads Shared Function Create(Of T As {New, Struct})( _ ByVal device As Device, _ ByRef data As T, _ ByVal description As BufferDescription _ ) As Buffer
public static Buffer Create<T>( Device device, ref T data, BufferDescription description ) where T: new(), struct
Parameters
- device
- The device with which to associate the buffer.
- data
- Initial data used to initialize the buffer.
- description
- The description.
Type Parameters
- T
- Type of the data to upload
Return Value
An initialized buffer