[]
Copies data from the CPU to to a non-mappable subresource region.
public void UpdateSubresourceSafe<T>(ref T data, Resource resource, int srcBytesPerElement, int subresource = 0, int rowPitch = 0, int depthPitch = 0, bool isCompressedResource = false) where T : struct
Type | Name | Description |
---|---|---|
T | data | A reference to the data to upload. |
Resource | resource | The destination resource. |
int | srcBytesPerElement | The size in bytes per pixel/block element. |
int | subresource | The destination subresource. |
int | rowPitch | The row pitch. |
int | depthPitch | The depth pitch. |
bool | isCompressedResource | if set to |
Name | Description |
---|---|
T | Type of the data to upload |
Copies data from the CPU to to a non-mappable subresource region.
public void UpdateSubresourceSafe<T>(T[] data, Resource resource, int srcBytesPerElement, int subresource = 0, int rowPitch = 0, int depthPitch = 0, bool isCompressedResource = false) where T : struct
Type | Name | Description |
---|---|---|
T[] | data | A reference to the data to upload. |
Resource | resource | The destination resource. |
int | srcBytesPerElement | The size in bytes per pixel/block element. |
int | subresource | The destination subresource. |
int | rowPitch | The row pitch. |
int | depthPitch | The depth pitch. |
bool | isCompressedResource | if set to |
Name | Description |
---|---|
T | Type of the data to upload |
Copies data from the CPU to to a non-mappable subresource region.
public void UpdateSubresourceSafe(DataBox source, Resource resource, int srcBytesPerElement, int subresource = 0, bool isCompressedResource = false)
Type | Name | Description |
---|---|---|
DataBox | source | The source data. |
Resource | resource | The destination resource. |
int | srcBytesPerElement | The size in bytes per pixel/block element. |
int | subresource | The destination subresource. |
bool | isCompressedResource | if set to |
Copies data from the CPU to to a non-mappable subresource region.
public void UpdateSubresourceSafe(DataBox source, Resource resource, int srcBytesPerElement, int subresource, ResourceRegion region, bool isCompressedResource = false)
Type | Name | Description |
---|---|---|
DataBox | source | The source data. |
Resource | resource | The destination resource. |
int | srcBytesPerElement | The size in bytes per pixel/block element. |
int | subresource | The destination subresource. |
ResourceRegion | region | The destination region within the resource. |
bool | isCompressedResource | if set to |