LCOV - code coverage report
Current view: top level - source/renderer/backend/dummy - DeviceCommandContext.cpp (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 8 96 8.3 %
Date: 2026-12-03 01:19:39 Functions: 3 49 6.1 %

          Line data    Source code
       1             : /* Copyright (C) 2026 Wildfire Games.
       2             :  * This file is part of 0 A.D.
       3             :  *
       4             :  * 0 A.D. is free software: you can redistribute it and/or modify
       5             :  * it under the terms of the GNU General Public License as published by
       6             :  * the Free Software Foundation, either version 2 of the License, or
       7             :  * (at your option) any later version.
       8             :  *
       9             :  * 0 A.D. is distributed in the hope that it will be useful,
      10             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      11             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      12             :  * GNU General Public License for more details.
      13             :  *
      14             :  * You should have received a copy of the GNU General Public License
      15             :  * along with 0 A.D.  If not, see <http://www.gnu.org/licenses/>.
      16             :  */
      17             : 
      18             : #include "precompiled.h"
      19             : 
      20             : #include "DeviceCommandContext.h"
      21             : 
      22             : #include "renderer/backend/dummy/Device.h"
      23             : 
      24             : namespace Renderer
      25             : {
      26             : 
      27             : namespace Backend
      28             : {
      29             : 
      30             : namespace Dummy
      31             : {
      32             : 
      33             : // static
      34          10 : std::unique_ptr<CDeviceCommandContext> CDeviceCommandContext::Create(CDevice* device)
      35             : {
      36          10 :     std::unique_ptr<CDeviceCommandContext> deviceCommandContext(new CDeviceCommandContext());
      37          10 :     deviceCommandContext->m_Device = device;
      38          10 :     return deviceCommandContext;
      39             : }
      40             : 
      41          10 : CDeviceCommandContext::CDeviceCommandContext() = default;
      42             : 
      43          10 : CDeviceCommandContext::~CDeviceCommandContext() = default;
      44             : 
      45           0 : IDevice* CDeviceCommandContext::GetDevice()
      46             : {
      47           0 :     return m_Device;
      48             : }
      49             : 
      50           0 : void CDeviceCommandContext::SetGraphicsPipelineState(
      51             :     IGraphicsPipelineState*)
      52             : {
      53           0 : }
      54             : 
      55           0 : void CDeviceCommandContext::SetComputePipelineState(
      56             :     IComputePipelineState*)
      57             : {
      58           0 : }
      59             : 
      60           0 : void CDeviceCommandContext::UploadTexture(
      61             :     ITexture*, const Format, const void*, const size_t,
      62             :     const uint32_t, const uint32_t)
      63             : {
      64           0 : }
      65             : 
      66           0 : void CDeviceCommandContext::UploadTextureRegion(
      67             :     ITexture*, const Format, const void*, const size_t,
      68             :     const uint32_t, const uint32_t, const uint32_t, const uint32_t,
      69             :     const uint32_t, const uint32_t)
      70             : {
      71           0 : }
      72             : 
      73           0 : void CDeviceCommandContext::UploadBuffer(IBuffer*, const void*, const uint32_t)
      74             : {
      75           0 : }
      76             : 
      77           0 : void CDeviceCommandContext::UploadBuffer(IBuffer*, const UploadBufferFunction&)
      78             : {
      79           0 : }
      80             : 
      81          10 : void CDeviceCommandContext::UploadBufferRegion(
      82             :     IBuffer*, const void*, const uint32_t, const uint32_t)
      83             : {
      84          10 : }
      85             : 
      86           0 : void CDeviceCommandContext::UploadBufferRegion(
      87             :     IBuffer*, const uint32_t, const uint32_t, const UploadBufferFunction&)
      88             : {
      89           0 : }
      90             : 
      91           0 : void CDeviceCommandContext::InsertTimestampQuery(const uint32_t, const bool)
      92             : {
      93           0 : }
      94             : 
      95           0 : void CDeviceCommandContext::BeginScopedLabel(const char*)
      96             : {
      97           0 : }
      98             : 
      99           0 : void CDeviceCommandContext::EndScopedLabel()
     100             : {
     101           0 : }
     102             : 
     103           0 : void CDeviceCommandContext::Flush()
     104             : {
     105           0 : }
     106             : 
     107           0 : void CDeviceCommandContext::BlitFramebuffer(
     108             :     IFramebuffer*, IFramebuffer*, const Rect&, const Rect&, const Sampler::Filter)
     109             : {
     110           0 : }
     111             : 
     112           0 : void CDeviceCommandContext::ResolveFramebuffer(IFramebuffer*, IFramebuffer*)
     113             : {
     114           0 : }
     115             : 
     116           0 : void CDeviceCommandContext::ClearFramebuffer(const bool, const bool, const bool)
     117             : {
     118           0 : }
     119             : 
     120           0 : void CDeviceCommandContext::BeginFramebufferPass(IFramebuffer*)
     121             : {
     122           0 : }
     123             : 
     124           0 : void CDeviceCommandContext::EndFramebufferPass()
     125             : {
     126           0 : }
     127             : 
     128           0 : void CDeviceCommandContext::ReadbackFramebufferSync(
     129             :     ISwapChain&, const uint32_t, const uint32_t, const uint32_t, const uint32_t, void*)
     130             : {
     131           0 : }
     132             : 
     133           0 : void CDeviceCommandContext::SetScissors(const uint32_t, const Rect*)
     134             : {
     135           0 : }
     136             : 
     137           0 : void CDeviceCommandContext::SetViewports(const uint32_t, const Rect*)
     138             : {
     139           0 : }
     140             : 
     141           0 : void CDeviceCommandContext::SetVertexInputLayout(IVertexInputLayout*)
     142             : {
     143           0 : }
     144             : 
     145           0 : void CDeviceCommandContext::SetVertexBuffer(const uint32_t, IBuffer*, const uint32_t)
     146             : {
     147           0 : }
     148             : 
     149           0 : void CDeviceCommandContext::SetVertexBufferData(
     150             :     const uint32_t, const void*, const uint32_t)
     151             : {
     152           0 : }
     153             : 
     154           0 : void CDeviceCommandContext::SetIndexBuffer(IBuffer*)
     155             : {
     156           0 : }
     157             : 
     158           0 : void CDeviceCommandContext::SetIndexBufferData(const void*, const uint32_t)
     159             : {
     160           0 : }
     161             : 
     162           0 : void CDeviceCommandContext::BeginPass()
     163             : {
     164           0 : }
     165             : 
     166           0 : void CDeviceCommandContext::EndPass()
     167             : {
     168           0 : }
     169             : 
     170           0 : void CDeviceCommandContext::Draw(const uint32_t, const uint32_t)
     171             : {
     172           0 : }
     173             : 
     174           0 : void CDeviceCommandContext::DrawIndexed(const uint32_t, const uint32_t, const int32_t)
     175             : {
     176           0 : }
     177             : 
     178           0 : void CDeviceCommandContext::DrawInstanced(
     179             :     const uint32_t, const uint32_t, const uint32_t, const uint32_t)
     180             : {
     181           0 : }
     182             : 
     183           0 : void CDeviceCommandContext::DrawIndexedInstanced(
     184             :     const uint32_t, const uint32_t, const uint32_t, const uint32_t, const int32_t)
     185             : {
     186           0 : }
     187             : 
     188           0 : void CDeviceCommandContext::DrawIndexedInRange(
     189             :     const uint32_t, const uint32_t, const uint32_t, const uint32_t)
     190             : {
     191           0 : }
     192             : 
     193           0 : void CDeviceCommandContext::BeginComputePass()
     194             : {
     195           0 : }
     196             : 
     197           0 : void CDeviceCommandContext::EndComputePass()
     198             : {
     199           0 : }
     200             : 
     201           0 : void CDeviceCommandContext::Dispatch(const uint32_t, const uint32_t, const uint32_t)
     202             : {
     203           0 : }
     204             : 
     205           0 : void CDeviceCommandContext::InsertMemoryBarrier(
     206             :     const uint32_t, const uint32_t, const uint32_t, const uint32_t)
     207             : {
     208           0 : }
     209             : 
     210           0 : void CDeviceCommandContext::SetTexture(const int32_t, ITexture*)
     211             : {
     212           0 : }
     213             : 
     214           0 : void CDeviceCommandContext::SetStorageTexture(const int32_t, ITexture*)
     215             : {
     216           0 : }
     217             : 
     218           0 : void CDeviceCommandContext::SetStorageBuffer(const int32_t, IBuffer*)
     219             : {
     220           0 : }
     221             : 
     222           0 : void CDeviceCommandContext::SetUniform(const int32_t, const float)
     223             : {
     224           0 : }
     225             : 
     226           0 : void CDeviceCommandContext::SetUniform(const int32_t, const float, const float)
     227             : {
     228           0 : }
     229             : 
     230           0 : void CDeviceCommandContext::SetUniform(
     231             :     const int32_t, const float, const float, const float)
     232             : {
     233           0 : }
     234             : 
     235           0 : void CDeviceCommandContext::SetUniform(
     236             :     const int32_t, const float, const float, const float, const float)
     237             : {
     238           0 : }
     239             : 
     240           0 : void CDeviceCommandContext::SetUniform(const int32_t, std::span<const float>)
     241             : {
     242           0 : }
     243             : 
     244             : } // namespace Dummy
     245             : 
     246             : } // namespace Backend
     247             : 
     248             : } // namespace Renderer

Generated by: LCOV version 1.16