ComponentOne Bitmap for WPF
Create<T>(Device,T,BufferDescription) Method

C1.WPF.DX.4 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.
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

Reference

Buffer Class
Buffer Members
Overload List