ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.5.2 Assembly / C1.Util.DX.Direct3D11 Namespace / Buffer Class / Create Method / Create(Device,DataStream,Int32,ResourceUsage,BindFlags,CpuAccessFlags,ResourceMiscFlags,Int32) Method
The device with which to associate the buffer.
Initial data used to initialize the buffer.
The size, in bytes, of the buffer.
The usage pattern for the buffer.
Flags specifying how the buffer will be bound to the pipeline.
Flags specifying how the buffer will be accessible from the CPU.
Miscellaneous resource options.
The size (in bytes) of the structure element for structured buffers.

In This Topic
    Create(Device,DataStream,Int32,ResourceUsage,BindFlags,CpuAccessFlags,ResourceMiscFlags,Int32) Method
    In This Topic
    Initializes a new instance of the Buffer class.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal device As Device, _
       ByVal data As DataStream, _
       ByVal sizeInBytes As System.Integer, _
       ByVal usage As ResourceUsage, _
       ByVal bindFlags As BindFlags, _
       ByVal accessFlags As CpuAccessFlags, _
       ByVal miscFlags As ResourceMiscFlags, _
       ByVal structureByteStride As System.Integer _
    ) As Buffer
    public static Buffer Create( 
       Device device,
       DataStream data,
       System.int sizeInBytes,
       ResourceUsage usage,
       BindFlags bindFlags,
       CpuAccessFlags accessFlags,
       ResourceMiscFlags miscFlags,
       System.int structureByteStride
    )

    Parameters

    device
    The device with which to associate the buffer.
    data
    Initial data used to initialize the buffer.
    sizeInBytes
    The size, in bytes, of the buffer.
    usage
    The usage pattern for the buffer.
    bindFlags
    Flags specifying how the buffer will be bound to the pipeline.
    accessFlags
    Flags specifying how the buffer will be accessible from the CPU.
    miscFlags
    Miscellaneous resource options.
    structureByteStride
    The size (in bytes) of the structure element for structured buffers.
    See Also