ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Direct3D11 Namespace / Buffer Class / Create Method / Create<T>(Device,T,BufferDescription) Method
Type of the data to upload
The device with which to associate the buffer.
Initial data used to initialize the buffer.
The description.

In This Topic
    Create<T>(Device,T,BufferDescription) Method
    In This Topic
    Creates a new instance of the Buffer class.
    Syntax
    '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
    See Also