diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-30 18:48:39 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-30 18:48:39 +0000 |
| commit | a7a76b1173a2bd2b768e910b72e5ff3a5b61b93f (patch) | |
| tree | 081c160c49c544c873c83e7ce009c5413fb6ff5a /Graphics/GraphicsEngineD3D12 | |
| parent | Updated release history (diff) | |
| download | DiligentCore-a7a76b1173a2bd2b768e910b72e5ff3a5b61b93f.tar.gz DiligentCore-a7a76b1173a2bd2b768e910b72e5ff3a5b61b93f.zip | |
Updated readme
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/readme.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngineD3D12/readme.md b/Graphics/GraphicsEngineD3D12/readme.md index b788e19a..3827a4f0 100644 --- a/Graphics/GraphicsEngineD3D12/readme.md +++ b/Graphics/GraphicsEngineD3D12/readme.md @@ -1,11 +1,11 @@ # GraphicsEngineD3D12 -Implementation of Diligent Engine API using Direct3D12 +Implementation of Direct3D12 back-end # Initialization -The following code snippet shows how to initialize diligent engine in D3D12 mode. +The following code snippet shows how to initialize Diligent Engine in D3D12 mode. ```cpp #include "RenderDeviceFactoryD3D12.h" @@ -69,9 +69,9 @@ Below are some of the methods that provide access to internal D3D12 objects: ## Creating Diligent Engine Objects from D3D12 Resources -* `void IRenderDeviceD3D12::CreateTextureFromD3DResource(ID3D12Resource *pd3d12Texture, ITexture **ppTexture)` - +* `void IRenderDeviceD3D12::CreateTextureFromD3DResource(ID3D12Resource *pd3d12Texture, RESOURCE_STATE InitialState, ITexture **ppTexture)` - creates a diligent engine texture object from native D3D12 resource. -* `void IRenderDeviceD3D12::CreateBufferFromD3DResource(ID3D12Resource *pd3d12Buffer, const BufferDesc& BuffDesc, IBuffer **ppBuffer)` - +* `void IRenderDeviceD3D12::CreateBufferFromD3DResource(ID3D12Resource *pd3d12Buffer, const BufferDesc& BuffDesc, RESOURCE_STATE InitialState, IBuffer **ppBuffer)` - creates a diligent engine buffer object from native D3D12 resource. The method takes a pointer to the native d3d12 resiyrce pd3d12Buffer, buffer description BuffDesc and writes a pointer to the IBuffer interface at the memory location pointed to by ppBuffer. The system can recover buffer size, but the rest of the fields of |
