FCT
载入中...
搜索中...
未找到
Context.hpp
浏览该文件的文档.
1#ifndef FCT_CONTEXT_IH
2#define FCT_CONTEXT_IH
3#include "../UI/Window.h"
4namespace FCT {
5
6
8 {
9 while (m_ctxRunning) {
11 m_flowControl->executeSubmitTickers();
13 }
14 }
15 inline void Context::flush()
16 {
17 m_logicTask.consume_all([](LogicTaskData*& data) {
18 data->task();
19 FCT_DELETE(data);
20 });
22 m_flowControl->executeSyncTickers();
23 _nextFrame();
24 }
25
31
36
37 template <typename T>
39 {
40 return m_resourceDevice->createResource<T>();
41 }
42}
43#endif
#define FCT_DELETE(args)
uint32_t m_maxFrameInFlight
void submitThread()
void maxFrameInFlight(uint32_t maxFrameInFlight)
RHI::DescriptorPool * m_descriptorPool
RHI::DescriptorPool * getDescriptorPool()
uint32_t maxFrameInFlight() const
CommandBufferGraph * m_cmdGraph
constexpr void _waitCurrentFlush()
Device * m_resourceDevice
FlowControl * m_flowControl
constexpr void _waitForNextFrame()
boost::lockfree::queue< LogicTaskData *, boost::lockfree::capacity< 1024 > > m_logicTask
std::function< void()> task