ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.5.2 Assembly / C1.Util.DX.Direct3D11 Namespace / DeviceContext Class / UpdateSubresourceSafe Method / UpdateSubresourceSafe(DataBox,Resource,Int32,Int32,ResourceRegion,Boolean) Method
The source data.
The destination resource.
The size in bytes per pixel/block element.
The destination subresource.
The destination region within the resource.
if set to true the resource is a block/compressed resource

In This Topic
    UpdateSubresourceSafe(DataBox,Resource,Int32,Int32,ResourceRegion,Boolean) Method
    In This Topic
    Copies data from the CPU to to a non-mappable subresource region.
    Syntax
    'Declaration
     
    Public Overloads Sub UpdateSubresourceSafe( _
       ByVal source As DataBox, _
       ByVal resource As Resource, _
       ByVal srcBytesPerElement As System.Integer, _
       ByVal subresource As System.Integer, _
       ByVal region As ResourceRegion, _
       Optional ByVal isCompressedResource As System.Boolean _
    ) 
    public void UpdateSubresourceSafe( 
       DataBox source,
       Resource resource,
       System.int srcBytesPerElement,
       System.int subresource,
       ResourceRegion region,
       System.bool isCompressedResource
    )

    Parameters

    source
    The source data.
    resource
    The destination resource.
    srcBytesPerElement
    The size in bytes per pixel/block element.
    subresource
    The destination subresource.
    region
    The destination region within the resource.
    isCompressedResource
    if set to true the resource is a block/compressed resource
    See Also