[]
Copies data from the CPU to to a non-mappable subresource region.
public void UpdateSubresource<T>(ref T data, Resource resource, int subresource = 0, int rowPitch = 0, int depthPitch = 0, ResourceRegion? region = null) where T : struct
Public Sub UpdateSubresource(Of T As Structure)(ByRef data As T, resource As Resource, Optional subresource As Integer = 0, Optional rowPitch As Integer = 0, Optional depthPitch As Integer = 0, Optional region As ResourceRegion? = Nothing)
| Type | Name | Description |
|---|---|---|
| T | data | A reference to the data to upload. |
| Resource | resource | The destination resource. |
| int | subresource | The destination subresource. |
| int | rowPitch | The row pitch. |
| int | depthPitch | The depth pitch. |
| ResourceRegion? | region | The region |
| Name | Description |
|---|---|
| T | Type of the data to upload |
Copies data from the CPU to to a non-mappable subresource region.
public void UpdateSubresource<T>(T[] data, Resource resource, int subresource = 0, int rowPitch = 0, int depthPitch = 0, ResourceRegion? region = null) where T : struct
Public Sub UpdateSubresource(Of T As Structure)(data As T(), resource As Resource, Optional subresource As Integer = 0, Optional rowPitch As Integer = 0, Optional depthPitch As Integer = 0, Optional region As ResourceRegion? = Nothing)
| Type | Name | Description |
|---|---|---|
| T[] | data | A reference to the data to upload. |
| Resource | resource | The destination resource. |
| int | subresource | The destination subresource. |
| int | rowPitch | The row pitch. |
| int | depthPitch | The depth pitch. |
| ResourceRegion? | region | A region that defines the portion of the destination subresource to copy the resource data into. Coordinates are in bytes for buffers and in texels for textures. |
| Name | Description |
|---|---|
| T | Type of the data to upload |
Copies data from the CPU to to a non-mappable subresource region.
public void UpdateSubresource(DataBox source, Resource resource, int subresource = 0)
Public Sub UpdateSubresource(source As DataBox, resource As Resource, Optional subresource As Integer = 0)
| Type | Name | Description |
|---|---|---|
| DataBox | source | The source data. |
| Resource | resource | The destination resource. |
| int | subresource | The destination subresource. |
Copies data from the CPU to to a non-mappable subresource region.
public void UpdateSubresource(DataBox source, Resource resource, int subresource, ResourceRegion region)
Public Sub UpdateSubresource(source As DataBox, resource As Resource, subresource As Integer, region As ResourceRegion)
| Type | Name | Description |
|---|---|---|
| DataBox | source | The source data. |
| Resource | resource | The destination resource. |
| int | subresource | The destination subresource. |
| ResourceRegion | region | The destination region within the resource. |
void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch)
public void UpdateSubresource(Resource dstResourceRef, int dstSubresource, ResourceRegion? dstBoxRef, IntPtr srcDataRef, int srcRowPitch, int srcDepthPitch)
Public Sub UpdateSubresource(dstResourceRef As Resource, dstSubresource As Integer, dstBoxRef As ResourceRegion?, srcDataRef As IntPtr, srcRowPitch As Integer, srcDepthPitch As Integer)
| Type | Name | Description |
|---|---|---|
| Resource | dstResourceRef | |
| int | dstSubresource | |
| ResourceRegion? | dstBoxRef | |
| IntPtr | srcDataRef | |
| int | srcRowPitch | |
| int | srcDepthPitch |