mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 10:35:03 +00:00
* host_shaders: support for includes * video_core: add a simpler vulkan asserts * video_core: refactored post processing pipeline to another file * renderer_vulkan: add define param to compile shader utility * video_core: fsr implementation * devtools: show resolution & fsr state
16 lines
342 B
C++
16 lines
342 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
template <size_t N, typename C = char>
|
|
struct StringLiteral {
|
|
static constexpr size_t len = N;
|
|
|
|
constexpr StringLiteral(const C (&str)[N]) {
|
|
std::copy_n(str, N, value);
|
|
}
|
|
|
|
C value[N]{};
|
|
};
|