[]
Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.
public DataBox MapSubresource(Texture1D resource, int mipSlice, int arraySlice, MapMode mode, MapFlags flags, out DataStream stream)
Type | Name | Description |
---|---|---|
Texture1D | resource | The resource. |
int | mipSlice | The mip slice. |
int | arraySlice | The array slice. |
MapMode | mode | The mode. |
MapFlags | flags | The flags. |
DataStream | stream | The output stream containing the pointer. |
Type | Description |
---|---|
DataBox | The locked DataBox |
Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.
public DataBox MapSubresource(Texture2D resource, int mipSlice, int arraySlice, MapMode mode, MapFlags flags, out DataStream stream)
Type | Name | Description |
---|---|---|
Texture2D | resource | The resource. |
int | mipSlice | The mip slice. |
int | arraySlice | The array slice. |
MapMode | mode | The mode. |
MapFlags | flags | The flags. |
DataStream | stream | The output stream containing the pointer. |
Type | Description |
---|---|
DataBox | The locked DataBox |
Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.
public DataBox MapSubresource(Texture3D resource, int mipSlice, int arraySlice, MapMode mode, MapFlags flags, out DataStream stream)
Type | Name | Description |
---|---|---|
Texture3D | resource | The resource. |
int | mipSlice | The mip slice. |
int | arraySlice | The array slice. |
MapMode | mode | The mode. |
MapFlags | flags | The flags. |
DataStream | stream | The output stream containing the pointer. |
Type | Description |
---|---|
DataBox | The locked DataBox |
Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.
public DataBox MapSubresource(Buffer resource, MapMode mode, MapFlags flags, out DataStream stream)
Type | Name | Description |
---|---|---|
Buffer | resource | The resource. |
MapMode | mode | The mode. |
MapFlags | flags | The flags. |
DataStream | stream | The output stream containing the pointer. |
Type | Description |
---|---|
DataBox | The locked DataBox |
Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.
public DataBox MapSubresource(Resource resource, int mipSlice, int arraySlice, MapMode mode, MapFlags flags, out int mipSize)
Type | Name | Description |
---|---|---|
Resource | resource | The resource. |
int | mipSlice | The mip slice. |
int | arraySlice | The array slice. |
MapMode | mode | The mode. |
MapFlags | flags | The flags. |
int | mipSize | Size of the selected miplevel. |
Type | Description |
---|---|
DataBox | The locked DataBox |
Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.
public DataBox MapSubresource(Resource resource, int subresource, MapMode mode, MapFlags flags, out DataStream stream)
Type | Name | Description |
---|---|---|
Resource | resource | The resource. |
int | subresource | The subresource. |
MapMode | mode | The mode. |
MapFlags | flags | The flags. |
DataStream | stream | The output stream containing the pointer. |
Type | Description |
---|---|
DataBox | The locked DataBox |
Gets a reference to the data contained in a subresource, and denies the GPU access to that subresource.
public DataBox MapSubresource(Resource resourceRef, int subresource, MapMode mapType, MapFlags mapFlags)
Type | Name | Description |
---|---|---|
Resource | resourceRef | A reference to a Resource interface. |
int | subresource | Index number of the subresource. |
MapMode | mapType | Specifies the CPU's read and write permissions for a resource. For possible values, see MapMode. |
MapFlags | mapFlags | Flag that specifies what the CPU should do when the GPU is busy. This flag is optional. |
Type | Description |
---|---|
DataBox | The mapped subresource (see DataBox). If DoNotWait is used and the resource is still being used by the GPU, this method return an empty DataBox whose property IsEmpty returns |
HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource)
public HResult MapSubresource(Resource resourceRef, int subresource, MapMode mapType, MapFlags mapFlags, out DataBox mappedResourceRef)
Type | Name | Description |
---|---|---|
Resource | resourceRef | |
int | subresource | |
MapMode | mapType | |
MapFlags | mapFlags | |
DataBox | mappedResourceRef |
Type | Description |
---|---|
HResult |