fix: Async Compute
This commit is contained in:
parent
cfb76c7d78
commit
cc1fd12b64
|
|
@ -386,7 +386,7 @@ struct Frame
|
||||||
// TODO: ThreadSafe
|
// TODO: ThreadSafe
|
||||||
_internal::GraphicsContextPool m_PrimaryPool;
|
_internal::GraphicsContextPool m_PrimaryPool;
|
||||||
_internal::TransferContextPool m_AsyncTransferPool;
|
_internal::TransferContextPool m_AsyncTransferPool;
|
||||||
_internal::ContextPool m_AsyncComputePool;
|
_internal::ComputeContextPool m_AsyncComputePool;
|
||||||
|
|
||||||
vk::Fence m_FrameAvailableFence;
|
vk::Fence m_FrameAvailableFence;
|
||||||
vk::Semaphore m_ImageAcquireSem;
|
vk::Semaphore m_ImageAcquireSem;
|
||||||
|
|
@ -402,6 +402,7 @@ struct Frame
|
||||||
void Reset(u32 imageIdx, vk::Image swapchainImage, vk::ImageView swapchainImageView, Size2D swapchainSize);
|
void Reset(u32 imageIdx, vk::Image swapchainImage, vk::ImageView swapchainImageView, Size2D swapchainSize);
|
||||||
GraphicsContext CreateGraphicsContext();
|
GraphicsContext CreateGraphicsContext();
|
||||||
TransferContext CreateAsyncTransferContext();
|
TransferContext CreateAsyncTransferContext();
|
||||||
|
ComputeContext CreateAsyncComputeContext();
|
||||||
void WaitUntilReady();
|
void WaitUntilReady();
|
||||||
|
|
||||||
Frame() = default;
|
Frame() = default;
|
||||||
|
|
|
||||||
|
|
@ -1286,6 +1286,12 @@ systems::Frame::CreateAsyncTransferContext()
|
||||||
return m_AsyncTransferPool.CreateTransferContext();
|
return m_AsyncTransferPool.CreateTransferContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
systems::ComputeContext
|
||||||
|
systems::Frame::CreateAsyncComputeContext()
|
||||||
|
{
|
||||||
|
return m_AsyncComputePool.CreateComputeContext();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
systems::Frame::WaitUntilReady()
|
systems::Frame::WaitUntilReady()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue