mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Add Device::Tick for periodic work
This commit is contained in:
committed by
Corentin Wallez
parent
b947993e1a
commit
dbb5729e64
@@ -99,7 +99,7 @@ namespace d3d12 {
|
||||
this->renderTargetDescriptor = renderTargetDescriptor;
|
||||
}
|
||||
|
||||
void Device::Tick() {
|
||||
void Device::TickImpl() {
|
||||
// Execute any pending commands
|
||||
ASSERT_SUCCESS(pendingCommandList->Close());
|
||||
ID3D12CommandList* commandLists[] = { pendingCommandList.Get() };
|
||||
|
||||
@@ -105,6 +105,8 @@ namespace d3d12 {
|
||||
TextureBase* CreateTexture(TextureBuilder* builder) override;
|
||||
TextureViewBase* CreateTextureView(TextureViewBuilder* builder) override;
|
||||
|
||||
void TickImpl() override;
|
||||
|
||||
ComPtr<ID3D12Device> GetD3D12Device();
|
||||
ComPtr<ID3D12CommandQueue> GetCommandQueue();
|
||||
ComPtr<ID3D12CommandAllocator> GetPendingCommandAllocator();
|
||||
@@ -114,7 +116,6 @@ namespace d3d12 {
|
||||
|
||||
void SetNextRenderTargetDescriptor(D3D12_CPU_DESCRIPTOR_HANDLE renderTargetDescriptor);
|
||||
|
||||
void Tick();
|
||||
uint64_t GetSerial() const;
|
||||
void IncrementSerial();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user