mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
22 lines
469 B
C++
22 lines
469 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <span>
|
|
#include <unordered_map>
|
|
|
|
#include "common/types.h"
|
|
#include "shader_recompiler/ir/attribute.h"
|
|
|
|
namespace Shader {
|
|
|
|
struct CopyShaderData {
|
|
std::unordered_map<u32, std::pair<Shader::IR::Attribute, u32>> attr_map;
|
|
u32 num_attrs{0};
|
|
};
|
|
|
|
CopyShaderData ParseCopyShader(std::span<const u32> code);
|
|
|
|
} // namespace Shader
|