| 1 | // Copyright 2022 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #include "VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.h" |
| 5 | |
| 6 | #include "Common/Logging/Log.h" |
| 7 | |
| 8 | void PrintAction::OnDrawStarted(GraphicsModActionData::DrawStarted*) |
| 9 | { |
| 10 | INFO_LOG_FMT(VIDEO, "OnDrawStarted Called"); |
| 11 | } |
| 12 | |
| 13 | void PrintAction::BeforeEFB(GraphicsModActionData::PreEFB* efb) |
| 14 | { |
| 15 | if (!efb) [[unlikely]] |
| 16 | return; |
| 17 | |
| 18 | if (!efb->scaled_width) [[unlikely]] |
| 19 | return; |
| 20 | |
| 21 | if (!efb->scaled_height) [[unlikely]] |
| 22 | return; |
| 23 | |
| 24 | INFO_LOG_FMT(VIDEO, "OnEFB Called. Original [{}, {}], Scaled [{}, {}]", efb->texture_width, |
| 25 | efb->texture_height, *efb->scaled_width, *efb->scaled_height); |
| 26 | } |
| 27 | |
| 28 | void PrintAction::OnProjection(GraphicsModActionData::Projection*) |
| 29 | { |
| 30 | INFO_LOG_FMT(VIDEO, "OnProjection Called"); |
| 31 | } |
| 32 | |
| 33 | void PrintAction::OnProjectionAndTexture(GraphicsModActionData::Projection*) |
| 34 | { |
| 35 | INFO_LOG_FMT(VIDEO, "OnProjectionAndTexture Called"); |
| 36 | } |
| 37 | |
| 38 | void PrintAction::OnTextureLoad(GraphicsModActionData::TextureLoad* texture_load) |
| 39 | { |
| 40 | if (!texture_load) [[unlikely]] |
| 41 | return; |
| 42 | |
| 43 | INFO_LOG_FMT(VIDEO, "OnTextureLoad Called. Texture: {}", texture_load->texture_name); |
| 44 | } |