summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-06 09:03:13 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-13 22:33:05 +0100
commitae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e (patch)
treef6de40b3d236977bf8ac0a73bbaa61133fdcaac2 /src/video_core/shader
parentvk_shader_decompiler: Use registry for specialization (diff)
downloadyuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar
yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.gz
yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.bz2
yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.lz
yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.xz
yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.zst
yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/transform_feedback.cpp1
-rw-r--r--src/video_core/shader/transform_feedback.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/shader/transform_feedback.cpp b/src/video_core/shader/transform_feedback.cpp
index db86c940f..22a933761 100644
--- a/src/video_core/shader/transform_feedback.cpp
+++ b/src/video_core/shader/transform_feedback.cpp
@@ -87,6 +87,7 @@ std::unordered_map<u8, VaryingTFB> BuildTransformFeedback(const GraphicsInfo& in
VaryingTFB varying;
varying.buffer = layout.stream;
+ varying.stride = layout.stride;
varying.offset = offset * sizeof(u32);
varying.components = 1;
diff --git a/src/video_core/shader/transform_feedback.h b/src/video_core/shader/transform_feedback.h
index 8a8235019..77d05f64c 100644
--- a/src/video_core/shader/transform_feedback.h
+++ b/src/video_core/shader/transform_feedback.h
@@ -13,6 +13,7 @@ namespace VideoCommon::Shader {
struct VaryingTFB {
std::size_t buffer;
+ std::size_t stride;
std::size_t offset;
std::size_t components;
};