mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 04:17:56 -05:00
shader: Implement transform feedbacks and define file format
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <vector>
|
||||
#include <optional>
|
||||
|
||||
#include "common/common_types.h"
|
||||
@ -26,6 +27,13 @@ enum class InputTopology {
|
||||
TrianglesAdjacency,
|
||||
};
|
||||
|
||||
struct TransformFeedbackVarying {
|
||||
u32 buffer{};
|
||||
u32 stride{};
|
||||
u32 offset{};
|
||||
u32 components{};
|
||||
};
|
||||
|
||||
struct Profile {
|
||||
u32 supported_spirv{0x00010000};
|
||||
|
||||
@ -58,6 +66,8 @@ struct Profile {
|
||||
InputTopology input_topology{};
|
||||
|
||||
std::optional<float> fixed_state_point_size;
|
||||
|
||||
std::vector<TransformFeedbackVarying> xfb_varyings;
|
||||
};
|
||||
|
||||
} // namespace Shader
|
||||
|
Reference in New Issue
Block a user