mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
shader/transform_feedback: Expose buffer stride
This commit is contained in:
parent
7acebd7eb6
commit
ae6189d7c2
3 changed files with 4 additions and 1 deletions
|
@ -777,7 +777,8 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
const VaryingTFB& tfb = it->second;
|
const VaryingTFB& tfb = it->second;
|
||||||
return fmt::format("xfb_buffer = {}, xfb_offset = {}", tfb.buffer, tfb.offset);
|
return fmt::format("xfb_buffer = {}, xfb_offset = {}, xfb_stride = {}", tfb.buffer,
|
||||||
|
tfb.offset, tfb.stride);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeclareOutputAttribute(Attribute::Index index) {
|
void DeclareOutputAttribute(Attribute::Index index) {
|
||||||
|
|
|
@ -87,6 +87,7 @@ std::unordered_map<u8, VaryingTFB> BuildTransformFeedback(const GraphicsInfo& in
|
||||||
|
|
||||||
VaryingTFB varying;
|
VaryingTFB varying;
|
||||||
varying.buffer = layout.stream;
|
varying.buffer = layout.stream;
|
||||||
|
varying.stride = layout.stride;
|
||||||
varying.offset = offset * sizeof(u32);
|
varying.offset = offset * sizeof(u32);
|
||||||
varying.components = 1;
|
varying.components = 1;
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ namespace VideoCommon::Shader {
|
||||||
|
|
||||||
struct VaryingTFB {
|
struct VaryingTFB {
|
||||||
std::size_t buffer;
|
std::size_t buffer;
|
||||||
|
std::size_t stride;
|
||||||
std::size_t offset;
|
std::size_t offset;
|
||||||
std::size_t components;
|
std::size_t components;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue