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 As DataBox, _
ByVal As Resource, _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As ResourceRegion, _
Optional ByVal As System.Boolean _
)
public void UpdateSubresourceSafe(
DataBox ,
Resource ,
System.int ,
System.int ,
ResourceRegion ,
System.bool
)
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