2024-03-06 06:26:38 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-05-21 22:19:35 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
2021-06-16 08:22:56 +02:00
|
|
|
#include "shader_recompiler/runtime_info.h"
|
2021-05-21 22:19:35 +02:00
|
|
|
#include "video_core/engines/maxwell_3d.h"
|
|
|
|
|
|
|
|
namespace VideoCommon {
|
|
|
|
|
|
|
|
struct TransformFeedbackState {
|
|
|
|
struct Layout {
|
|
|
|
u32 stream;
|
|
|
|
u32 varying_count;
|
|
|
|
u32 stride;
|
|
|
|
};
|
|
|
|
std::array<Layout, Tegra::Engines::Maxwell3D::Regs::NumTransformFeedbackBuffers> layouts;
|
2022-08-12 11:58:09 +02:00
|
|
|
std::array<std::array<Tegra::Engines::Maxwell3D::Regs::StreamOutLayout, 32>,
|
|
|
|
Tegra::Engines::Maxwell3D::Regs::NumTransformFeedbackBuffers>
|
2021-05-21 22:19:35 +02:00
|
|
|
varyings;
|
|
|
|
};
|
|
|
|
|
2023-05-23 15:45:54 +02:00
|
|
|
std::pair<std::array<Shader::TransformFeedbackVarying, 256>, u32> MakeTransformFeedbackVaryings(
|
2021-05-21 22:19:35 +02:00
|
|
|
const TransformFeedbackState& state);
|
|
|
|
|
|
|
|
} // namespace VideoCommon
|