[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.DeviceContext.UpdateSubresource

UpdateSubresource Method

UpdateSubresource<T>(ref T, Resource, int, int, int, ResourceRegion?)

Copies data from the CPU to to a non-mappable subresource region.

Declaration
public void UpdateSubresource<T>(ref T data, Resource resource, int subresource = 0, int rowPitch = 0, int depthPitch = 0, ResourceRegion? region = null) where T : struct
Parameters
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

Type Parameters
Name Description
T

Type of the data to upload

UpdateSubresource<T>(T[], Resource, int, int, int, ResourceRegion?)

Copies data from the CPU to to a non-mappable subresource region.

Declaration
public void UpdateSubresource<T>(T[] data, Resource resource, int subresource = 0, int rowPitch = 0, int depthPitch = 0, ResourceRegion? region = null) where T : struct
Parameters
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.

Type Parameters
Name Description
T

Type of the data to upload

UpdateSubresource(DataBox, Resource, int)

Copies data from the CPU to to a non-mappable subresource region.

Declaration
public void UpdateSubresource(DataBox source, Resource resource, int subresource = 0)
Parameters
Type Name Description
DataBox source

The source data.

Resource resource

The destination resource.

int subresource

The destination subresource.

UpdateSubresource(DataBox, Resource, int, ResourceRegion)

Copies data from the CPU to to a non-mappable subresource region.

Declaration
public void UpdateSubresource(DataBox source, Resource resource, int subresource, ResourceRegion region)
Parameters
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.

UpdateSubresource(Resource, int, ResourceRegion?, IntPtr, int, int)

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)

Declaration
public void UpdateSubresource(Resource dstResourceRef, int dstSubresource, ResourceRegion? dstBoxRef, IntPtr srcDataRef, int srcRowPitch, int srcDepthPitch)
Parameters
Type Name Description
Resource dstResourceRef
int dstSubresource
ResourceRegion? dstBoxRef
IntPtr srcDataRef
int srcRowPitch
int srcDepthPitch