summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/transform_feedback.h
blob: 77d05f64c7bd928dcf2a2a23695ae68cb0cdda75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2020 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include <unordered_map>

#include "common/common_types.h"
#include "video_core/shader/registry.h"

namespace VideoCommon::Shader {

struct VaryingTFB {
    std::size_t buffer;
    std::size_t stride;
    std::size_t offset;
    std::size_t components;
};

std::unordered_map<u8, VaryingTFB> BuildTransformFeedback(const GraphicsInfo& info);

} // namespace VideoCommon::Shader