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

In This Topic
    UpdateSubresourceSafe(DataBox,Resource,Int32,Int32,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, _
       Optional ByVal subresource As System.Integer, _
       Optional ByVal isCompressedResource As System.Boolean _
    ) 
    public void UpdateSubresourceSafe( 
       DataBox source,
       Resource resource,
       System.int srcBytesPerElement,
       System.int subresource,
       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.
    isCompressedResource
    if set to true the resource is a block/compressed resource
    See Also