Fixed rebase issues; updated API to version 240083
assiduous
2 years ago
29 | 29 |
/// \file
|
30 | 30 |
/// Diligent API information
|
31 | 31 |
|
32 | |
#define DILIGENT_API_VERSION 240082
|
|
32 |
#define DILIGENT_API_VERSION 240083
|
33 | 33 |
|
34 | 34 |
#include "../../../Primitives/interface/BasicTypes.h"
|
35 | 35 |
|
0 | 0 |
## Current Progress
|
1 | 1 |
|
|
2 |
* Added pipeline resource signatures, enabled inline ray tracing, added indirect draw mesh command (API Version 240083)
|
2 | 3 |
* Replaced `IDeviceContext::ExecuteCommandList()` with `IDeviceContext::ExecuteCommandLists()` method that takes
|
3 | 4 |
an array of command lists instead of one (API Version 240082)
|
4 | 5 |
* Added `IDeviceObject::SetUserData()` and `IDeviceObject::GetUserData()` methods (API Version 240081)
|
1682 | 1682 |
auto* pSwapChain = pEnv->GetSwapChain();
|
1683 | 1683 |
auto* pImmediateCtx = pEnv->GetDeviceContext();
|
1684 | 1684 |
|
|
1685 |
const float ClearColor[] = {sm_Rnd(), sm_Rnd(), sm_Rnd(), sm_Rnd()};
|
|
1686 |
RenderDrawCommandReference(pSwapChain, ClearColor);
|
|
1687 |
|
1685 | 1688 |
Uint32 Indices[] = {0, 1, 2, 3, 4, 5};
|
1686 | 1689 |
auto pVB = CreateVertexBuffer(Vert, sizeof(Vert));
|
1687 | 1690 |
auto pIB = CreateIndexBuffer(Indices, _countof(Indices));
|
|
1693 | 1696 |
};
|
1694 | 1697 |
pImmediateCtx->TransitionResourceStates(_countof(Barriers), Barriers);
|
1695 | 1698 |
|
1696 | |
ITextureView* pRTVs[] = {pSwapChain->GetCurrentBackBufferRTV()};
|
1697 | |
const float ClearColor[] = {0.f, 0.f, 0.f, 0.0f};
|
|
1699 |
ITextureView* pRTVs[] = {pSwapChain->GetCurrentBackBufferRTV()};
|
1698 | 1700 |
pImmediateCtx->SetRenderTargets(1, pRTVs, nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
|
1699 | 1701 |
pImmediateCtx->ClearRenderTarget(pRTVs[0], ClearColor, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
|
1700 | 1702 |
|