ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.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 Integer, _
       ByVal subresource As Integer, _
       ByVal region As ResourceRegion, _
       Optional ByVal isCompressedResource As Boolean _
    ) 
    public void UpdateSubresourceSafe( 
       DataBox source,
       Resource resource,
       int srcBytesPerElement,
       int subresource,
       ResourceRegion region,
       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