summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp
blob: ca50a9a4303959cd27bf978ffcafb4e198bf1d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2022 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#include "VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.h"

#include "Common/Logging/Log.h"

void PrintAction::OnDrawStarted(GraphicsModActionData::DrawStarted*)
{
  INFO_LOG_FMT(VIDEO, "OnDrawStarted Called");
}

void PrintAction::BeforeEFB(GraphicsModActionData::PreEFB* efb)
{
  if (!efb) [[unlikely]]
    return;

  if (!efb->scaled_width) [[unlikely]]
    return;

  if (!efb->scaled_height) [[unlikely]]
    return;

  INFO_LOG_FMT(VIDEO, "OnEFB Called. Original [{}, {}], Scaled [{}, {}]", efb->texture_width,
               efb->texture_height, *efb->scaled_width, *efb->scaled_height);
}

void PrintAction::OnProjection(GraphicsModActionData::Projection*)
{
  INFO_LOG_FMT(VIDEO, "OnProjection Called");
}

void PrintAction::OnProjectionAndTexture(GraphicsModActionData::Projection*)
{
  INFO_LOG_FMT(VIDEO, "OnProjectionAndTexture Called");
}

void PrintAction::OnTextureLoad(GraphicsModActionData::TextureLoad* texture_load)
{
  if (!texture_load) [[unlikely]]
    return;

  INFO_LOG_FMT(VIDEO, "OnTextureLoad Called.  Texture: {}", texture_load->texture_name);
}