IRenderDeviceD3D11 struct
Exposes Direct3D11-specific functionality of a render device.
Contents
- Reference
Base classes
- struct IRenderDevice
- Render device interface.
Public functions
- auto GetD3D11Device() -> ID3D11Device*METHOD() virtual
- Returns a pointer to the ID3D11Device interface of the internal Direct3D11 object.
-
auto CreateBufferFromD3DResource(ID3D11Buffer* pd3d11Buffer,
const BufferDesc& BuffDesc,
RESOURCE_
STATE InitialState, IBuffer** ppBuffer) -> void METHOD() virtual - Creates a buffer object from native d3d11 buffer.
-
auto CreateTexture1DFromD3DResource(ID3D11Texture1D* pd3d11Texture,
RESOURCE_
STATE InitialState, ITexture** ppTexture) -> void METHOD() virtual - Creates a texture object from native d3d11 1D texture.
-
auto CreateTexture2DFromD3DResource(ID3D11Texture2D* pd3d11Texture,
RESOURCE_
STATE InitialState, ITexture** ppTexture) -> void METHOD() virtual - Creates a texture object from native d3d11 2D texture.
-
auto CreateTexture3DFromD3DResource(ID3D11Texture3D* pd3d11Texture,
RESOURCE_
STATE InitialState, ITexture** ppTexture) -> void METHOD() virtual - Creates a texture object from native d3d11 3D texture.
Function documentation
ID3D11Device*METHOD() Diligent:: IRenderDeviceD3D11:: GetD3D11Device() virtual
Returns a pointer to the ID3D11Device interface of the internal Direct3D11 object.
The method does NOT call AddRef() on the returned interface, so Release() must not be called.
void METHOD() Diligent:: IRenderDeviceD3D11:: CreateBufferFromD3DResource(ID3D11Buffer* pd3d11Buffer,
const BufferDesc& BuffDesc,
RESOURCE_ STATE InitialState,
IBuffer** ppBuffer) virtual
Creates a buffer object from native d3d11 buffer.
| Parameters | |
|---|---|
| pd3d11Buffer in | - Pointer to the native buffer |
| BuffDesc in | - Buffer description. Most of the fields will be populated automatically if left in default values. The only field that must be populated is BufferDesc::Format, when initializing a formatted buffer. |
| InitialState in | - Initial buffer state. See Diligent:: |
| ppBuffer out | - Address of the memory location where the pointer to the buffer interface will be stored. The function calls AddRef(), so that the new object will contain one reference. |
void METHOD() Diligent:: IRenderDeviceD3D11:: CreateTexture1DFromD3DResource(ID3D11Texture1D* pd3d11Texture,
RESOURCE_ STATE InitialState,
ITexture** ppTexture) virtual
Creates a texture object from native d3d11 1D texture.
| Parameters | |
|---|---|
| pd3d11Texture in | - pointer to the native 1D texture |
| InitialState in | - Initial texture state. See Diligent:: |
| ppTexture out | - Address of the memory location where the pointer to the texture interface will be stored. The function calls AddRef(), so that the new object will contain one reference. |
void METHOD() Diligent:: IRenderDeviceD3D11:: CreateTexture2DFromD3DResource(ID3D11Texture2D* pd3d11Texture,
RESOURCE_ STATE InitialState,
ITexture** ppTexture) virtual
Creates a texture object from native d3d11 2D texture.
| Parameters | |
|---|---|
| pd3d11Texture in | - pointer to the native 2D texture |
| InitialState in | - Initial texture state. See Diligent:: |
| ppTexture out | - Address of the memory location where the pointer to the texture interface will be stored. The function calls AddRef(), so that the new object will contain one reference. |
void METHOD() Diligent:: IRenderDeviceD3D11:: CreateTexture3DFromD3DResource(ID3D11Texture3D* pd3d11Texture,
RESOURCE_ STATE InitialState,
ITexture** ppTexture) virtual
Creates a texture object from native d3d11 3D texture.
| Parameters | |
|---|---|
| pd3d11Texture in | - pointer to the native 3D texture |
| InitialState in | - Initial texture state. See Diligent:: |
| ppTexture out | - Address of the memory location where the pointer to the texture interface will be stored. The function calls AddRef(), so that the new object will contain one reference. |