git.s-ol.nu ~forks/DiligentCore / 5aaeeaa
Fixed rebase issues; updated API to version 240083 assiduous a month ago
4 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2929 /// \file
3030 /// Diligent API information
3131
32 #define DILIGENT_API_VERSION 240082
32 #define DILIGENT_API_VERSION 240083
3333
3434 #include "../../../Primitives/interface/BasicTypes.h"
3535
2525 */
2626
2727 #pragma once
28
29 #include <atomic>
2830
2931 #include "BasicTypes.h"
3032 #include "ReferenceCounters.h"
00 ## Current Progress
11
2 * Added pipeline resource signatures, enabled inline ray tracing, added indirect draw mesh command (API Version 240083)
23 * Replaced `IDeviceContext::ExecuteCommandList()` with `IDeviceContext::ExecuteCommandLists()` method that takes
34 an array of command lists instead of one (API Version 240082)
45 * Added `IDeviceObject::SetUserData()` and `IDeviceObject::GetUserData()` methods (API Version 240081)
16821682 auto* pSwapChain = pEnv->GetSwapChain();
16831683 auto* pImmediateCtx = pEnv->GetDeviceContext();
16841684
1685 const float ClearColor[] = {sm_Rnd(), sm_Rnd(), sm_Rnd(), sm_Rnd()};
1686 RenderDrawCommandReference(pSwapChain, ClearColor);
1687
16851688 Uint32 Indices[] = {0, 1, 2, 3, 4, 5};
16861689 auto pVB = CreateVertexBuffer(Vert, sizeof(Vert));
16871690 auto pIB = CreateIndexBuffer(Indices, _countof(Indices));
16931696 };
16941697 pImmediateCtx->TransitionResourceStates(_countof(Barriers), Barriers);
16951698
1696 ITextureView* pRTVs[] = {pSwapChain->GetCurrentBackBufferRTV()};
1697 const float ClearColor[] = {0.f, 0.f, 0.f, 0.0f};
1699 ITextureView* pRTVs[] = {pSwapChain->GetCurrentBackBufferRTV()};
16981700 pImmediateCtx->SetRenderTargets(1, pRTVs, nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
16991701 pImmediateCtx->ClearRenderTarget(pRTVs[0], ClearColor, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
17001702