diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-11-06 11:08:22 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-11-24 20:35:44 +0100 |
commit | 5fbd6954efbfe3dd95fcd496cd25664c092947fc (patch) | |
tree | ca9c4a7e1855b4406531eada1e84b6cb26802122 /src/video_core/engines/sw_blitter/converter.h | |
parent | Fermi2D: Rework blit engine and add a software blitter. (diff) | |
download | yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.gz yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.bz2 yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.lz yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.xz yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.zst yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/sw_blitter/converter.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/engines/sw_blitter/converter.h b/src/video_core/engines/sw_blitter/converter.h index 03337e906..f9bdc516e 100644 --- a/src/video_core/engines/sw_blitter/converter.h +++ b/src/video_core/engines/sw_blitter/converter.h @@ -1,21 +1,22 @@ // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + #include <memory> #include <span> #include "common/common_types.h" -#pragma once - #include "video_core/gpu.h" namespace Tegra::Engines::Blitter { class Converter { public: - virtual void ConvertTo(std::span<u8> input, std::span<f32> output) = 0; - virtual void ConvertFrom(std::span<f32> input, std::span<u8> output) = 0; + virtual void ConvertTo(std::span<const u8> input, std::span<f32> output) = 0; + virtual void ConvertFrom(std::span<const f32> input, std::span<u8> output) = 0; + virtual ~Converter() = default; }; class ConverterFactory { |