summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/registry.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-02 05:54:00 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-09 22:40:53 +0100
commiteb5861e0a22851cd2b2ca38136bfc7870790836e (patch)
tree2af932e6d3d4b7992b342576788fbab62cf94a36 /src/video_core/shader/registry.h
parentshader/registry: Address feedback (diff)
downloadyuzu-eb5861e0a22851cd2b2ca38136bfc7870790836e.tar
yuzu-eb5861e0a22851cd2b2ca38136bfc7870790836e.tar.gz
yuzu-eb5861e0a22851cd2b2ca38136bfc7870790836e.tar.bz2
yuzu-eb5861e0a22851cd2b2ca38136bfc7870790836e.tar.lz
yuzu-eb5861e0a22851cd2b2ca38136bfc7870790836e.tar.xz
yuzu-eb5861e0a22851cd2b2ca38136bfc7870790836e.tar.zst
yuzu-eb5861e0a22851cd2b2ca38136bfc7870790836e.zip
Diffstat (limited to 'src/video_core/shader/registry.h')
-rw-r--r--src/video_core/shader/registry.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/video_core/shader/registry.h b/src/video_core/shader/registry.h
index 07998c4db..0c80d35fd 100644
--- a/src/video_core/shader/registry.h
+++ b/src/video_core/shader/registry.h
@@ -25,9 +25,15 @@ using BindlessSamplerMap =
std::unordered_map<std::pair<u32, u32>, Tegra::Engines::SamplerDescriptor, Common::PairHash>;
struct GraphicsInfo {
- Tegra::Engines::Maxwell3D::Regs::PrimitiveTopology primitive_topology{};
- Tegra::Engines::Maxwell3D::Regs::TessellationPrimitive tessellation_primitive{};
- Tegra::Engines::Maxwell3D::Regs::TessellationSpacing tessellation_spacing{};
+ using Maxwell = Tegra::Engines::Maxwell3D::Regs;
+
+ std::array<Maxwell::TransformFeedbackLayout, Maxwell::NumTransformFeedbackBuffers>
+ tfb_layouts{};
+ std::array<std::array<u8, 128>, Maxwell::NumTransformFeedbackBuffers> tfb_varying_locs{};
+ Maxwell::PrimitiveTopology primitive_topology{};
+ Maxwell::TessellationPrimitive tessellation_primitive{};
+ Maxwell::TessellationSpacing tessellation_spacing{};
+ bool tfb_enabled = false;
bool tessellation_clockwise = false;
};
static_assert(std::is_trivially_copyable_v<GraphicsInfo> &&