// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include "common/types.h" namespace Shader { /** * Compilation parameters used to identify and locate a guest shader program. */ struct ShaderParams { static constexpr u32 NumShaderUserData = 16; std::span user_data; std::span code; u64 hash; VAddr Base() const noexcept { return reinterpret_cast(code.data()); } }; } // namespace Shader