ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Direct3D11 Namespace / DeviceContext Class / UpdateSubresource Method / UpdateSubresource<T>(T,Resource,Int32,Int32,Int32,Nullable<ResourceRegion>) Method
Type of the data to upload
A reference to the data to upload.
The destination resource.
The destination subresource.
The row pitch.
The depth pitch.
The region

In This Topic
    UpdateSubresource<T>(T,Resource,Int32,Int32,Int32,Nullable<ResourceRegion>) Method
    In This Topic
    Copies data from the CPU to to a non-mappable subresource region.
    Syntax
    'Declaration
     
    Public Overloads Sub UpdateSubresource(Of T As {New, Struct})( _
       ByRef data As T, _
       ByVal resource As Resource, _
       Optional ByVal subresource As System.Integer, _
       Optional ByVal rowPitch As System.Integer, _
       Optional ByVal depthPitch As System.Integer, _
       Optional ByVal region As System.Nullable(Of ResourceRegion) _
    ) 
    public void UpdateSubresource<T>( 
       ref T data,
       Resource resource,
       System.int subresource,
       System.int rowPitch,
       System.int depthPitch,
       System.Nullable<ResourceRegion> region
    )
    where T: new(), struct

    Parameters

    data
    A reference to the data to upload.
    resource
    The destination resource.
    subresource
    The destination subresource.
    rowPitch
    The row pitch.
    depthPitch
    The depth pitch.
    region
    The region

    Type Parameters

    T
    Type of the data to upload
    See Also