On Tue, 20 Jul 2021 at 16:25, Conor McCarthy <cmccarthy(a)codeweavers.com> wrote:
@@ -4066,13 +4067,15 @@ static void vkd3d_dxbc_compiler_decorate_xfb_output(struct vkd3d_dxbc_compiler * const struct vkd3d_shader_transform_feedback_info *xfb_info = compiler->xfb_info; const struct vkd3d_shader_transform_feedback_element *xfb_element; struct vkd3d_spirv_builder *builder = &compiler->spirv_builder; - unsigned int offset, stride, i; + unsigned int buffer_offsets[D3D12_SO_BUFFER_SLOT_COUNT]; + unsigned int stride, i;
vkd3d-shader is not limited to being used with d3d12, and the vkd3d_shader_transform_feedback_info structure doesn't impose such a limit on the number of output slots. But it's also unnecessary to track offsets for all output slots; the only one we care about is "xfb_element->output_slot".