transform_feedback: Read buffer stride from index instead of layout
This commit is contained in:
parent
46bd362d0d
commit
e57ee3b7fd
|
@ -72,8 +72,9 @@ std::vector<Shader::TransformFeedbackVarying> MakeTransformFeedbackVaryings(
|
||||||
const u32 base_offset = offset;
|
const u32 base_offset = offset;
|
||||||
const u8 location = locations[offset];
|
const u8 location = locations[offset];
|
||||||
|
|
||||||
|
UNIMPLEMENTED_IF_MSG(layout.stream != 0, "Stream is not zero: {}", layout.stream);
|
||||||
Shader::TransformFeedbackVarying varying{
|
Shader::TransformFeedbackVarying varying{
|
||||||
.buffer = layout.stream,
|
.buffer = static_cast<u32>(buffer),
|
||||||
.stride = layout.stride,
|
.stride = layout.stride,
|
||||||
.offset = offset * 4,
|
.offset = offset * 4,
|
||||||
.components = 1,
|
.components = 1,
|
||||||
|
|
Loading…
Reference in New Issue