[]
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
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
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)
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)
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)
Type | Name | Description |
---|---|---|
Resource | dstResourceRef | |
int | dstSubresource | |
ResourceRegion? | dstBoxRef | |
IntPtr | srcDataRef | |
int | srcRowPitch | |
int | srcDepthPitch |