[]
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)
Public Function MapSubresource(resource As Texture1D, mipSlice As Integer, arraySlice As Integer, mode As MapMode, flags As MapFlags, ByRef stream As DataStream) As DataBox
| 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)
Public Function MapSubresource(resource As Texture2D, mipSlice As Integer, arraySlice As Integer, mode As MapMode, flags As MapFlags, ByRef stream As DataStream) As DataBox
| 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)
Public Function MapSubresource(resource As Texture3D, mipSlice As Integer, arraySlice As Integer, mode As MapMode, flags As MapFlags, ByRef stream As DataStream) As DataBox
| 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)
Public Function MapSubresource(resource As Buffer, mode As MapMode, flags As MapFlags, ByRef stream As DataStream) As DataBox
| 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)
Public Function MapSubresource(resource As Resource, mipSlice As Integer, arraySlice As Integer, mode As MapMode, flags As MapFlags, ByRef mipSize As Integer) As DataBox
| 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)
Public Function MapSubresource(resource As Resource, subresource As Integer, mode As MapMode, flags As MapFlags, ByRef stream As DataStream) As DataBox
| 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)
Public Function MapSubresource(resourceRef As Resource, subresource As Integer, mapType As MapMode, mapFlags As MapFlags) As DataBox
| 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)
Public Function MapSubresource(resourceRef As Resource, subresource As Integer, mapType As MapMode, mapFlags As MapFlags, ByRef mappedResourceRef As DataBox) As HResult
| Type | Name | Description |
|---|---|---|
| Resource | resourceRef | |
| int | subresource | |
| MapMode | mapType | |
| MapFlags | mapFlags | |
| DataBox | mappedResourceRef |
| Type | Description |
|---|---|
| HResult |