diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-12 00:57:59 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-12 00:57:59 +0000 |
| commit | 425fc82bcc66e931ea3aca8ffb0a9eabc0433fc0 (patch) | |
| tree | cd6ee4f55dad341e8350b5b107b6cd75464277da /Graphics/GraphicsEngineD3D11 | |
| parent | Updated readme files for D3D11, D3D12 and GL backend (diff) | |
| download | DiligentCore-425fc82bcc66e931ea3aca8ffb0a9eabc0433fc0.tar.gz DiligentCore-425fc82bcc66e931ea3aca8ffb0a9eabc0433fc0.zip | |
Few more readme updates
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
| -rw-r--r-- | Graphics/GraphicsEngineD3D11/readme.md | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Graphics/GraphicsEngineD3D11/readme.md b/Graphics/GraphicsEngineD3D11/readme.md index 25f6e495..be000285 100644 --- a/Graphics/GraphicsEngineD3D11/readme.md +++ b/Graphics/GraphicsEngineD3D11/readme.md @@ -5,7 +5,7 @@ Implementation of Direct3D11 back-end # Initialization -The following code snippet shows how to initialize Diligent Engine in D3D11 mode. +The following code snippet shows how to initialize Diligent Engine in Direct3D11 mode. ```cpp #include "EngineFactoryD3D11.h" @@ -42,33 +42,33 @@ Diligent Engine exposes methods to access internal D3D11 objects, is able to cre and textures from existing Direct3D11 buffers and textures, and can be initialized by attaching to existing D3D11 device and immediate context. -## Accessing Native D3D11 objects +## Accessing Native Direct3D11 objects Below are some of the methods that provide access to internal D3D11 objects: | Function | Description | |-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------| -| `ID3D11Buffer *IBufferD3D11::GetD3D11Buffer()` | returns a pointer to the ID3D11Buffer interface of the internal Direct3D11 buffer object | -| `ID3D11Resource* ITextureD3D11::GetD3D11Texture()` | returns a pointer to the ID3D11Resource interface of the internal Direct3D11 texture object | -| `ID3D11View* IBufferViewD3D11()::GetD3D11View()` | returns a pointer to the ID3D11View interface of the internal d3d11 object representing the buffer view | -| `ID3D11View* ITextureViewD3D11::GetD3D11View()` | returns a pointer to the ID3D11View interface of the internal d3d11 object representing the texture view | -| `ID3D11Device* IRenderDeviceD3D11::GetD3D11Device()` | returns a pointer to the native D3D11 device object | -| `ID3D11DeviceContext* IDeviceContextD3D11::GetD3D11DeviceContext()` | returns a pointer to the native ID3D11DeviceContext object | +| `ID3D11Buffer* IBufferD3D11::GetD3D11Buffer()` | returns a pointer to the `ID3D11Buffer` interface of the internal Direct3D11 buffer object | +| `ID3D11Resource* ITextureD3D11::GetD3D11Texture()` | returns a pointer to the `ID3D11Resource` interface of the internal Direct3D11 texture object | +| `ID3D11View* IBufferViewD3D11()::GetD3D11View()` | returns a pointer to the `ID3D11View` interface of the internal Direct3D11 object representing the buffer view | +| `ID3D11View* ITextureViewD3D11::GetD3D11View()` | returns a pointer to the `ID3D11View` interface of the internal Direct3D11 object representing the texture view | +| `ID3D11Device* IRenderDeviceD3D11::GetD3D11Device()` | returns a pointer to the native Direct3D11 device object | +| `ID3D11DeviceContext* IDeviceContextD3D11::GetD3D11DeviceContext()` | returns a pointer to the native `ID3D11DeviceContext` object | -## Creating Diligent Engine Objects from D3D11 Resources +## Creating Diligent Engine Objects from Direct3D11 Resources * `void IRenderDeviceD3D11::CreateBufferFromD3DResource(ID3D11Buffer* pd3d11Buffer, const BufferDesc& BuffDesc, RESOURCE_STATE InitialState, IBuffer** ppBuffer)` - - creates a diligent engine buffer object from the native d3d11 buffer + creates a Diligent Engine buffer object from the native Direct3D11 buffer * `void IRenderDeviceD3D11::CreateTextureFromD3DResource(ID3D11Texture1D* pd3d11Texture, RESOURCE_STATE InitialState, ITexture** ppTexture)` - - create a diligent engine texture object from the native D3D11 1D texture + create a Diligent Engine texture object from the native Direct3D11 1D texture * `void IRenderDeviceD3D11::CreateTextureFromD3DResource(ID3D11Texture2D* pd3d11Texture, RESOURCE_STATE InitialState, ITexture** ppTexture)` - - create a diligent engine texture object from the native D3D11 2D texture + create a Diligent Engine texture object from the native Direct3D11 2D texture * `void IRenderDeviceD3D11::CreateTextureFromD3DResource(ID3D11Texture3D* pd3d11Texture, RESOURCE_STATE InitialState, ITexture** ppTexture)` - - create a diligent engine texture object from the native D3D11 3D texture + create a Diligent Engine texture object from the native Direct3D11 3D texture -## Initializing the Engine by Attaching to Existing D3D11 Device and Immediate Context +## Initializing the Engine by Attaching to Existing Direct3D11 Device and Immediate Context -The code snippet below shows how diligent engine can be attached to D3D11 device returned by Unity +The code snippet below shows how diligent engine can be attached to Direct3D11 device returned by Unity ```cpp IUnityGraphicsD3D11* d3d = interfaces->Get<IUnityGraphicsD3D11>(); @@ -80,7 +80,7 @@ EngineD3D11CreateInfo EngineCI; pFactoryD3d11->AttachToD3D11Device(d3d11NativeDevice, d3d11ImmediateContext, EngineCI, &m_Device, &m_Context, 0); ``` -For more information about interoperability with D3D11, please visit [Diligent Engine web site](http://diligentgraphics.com/diligent-engine/native-api-interoperability/direct3d11-interoperability/) +For more information about interoperability with Direct3D11, please visit [Diligent Engine web site](http://diligentgraphics.com/diligent-engine/native-api-interoperability/direct3d11-interoperability/) # References |
