From 2590095e356fc9dcfb65e1408596620bec9e5290 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sun, 25 Jan 2026 00:39:49 +0000 Subject: [PATCH] use u32 --- src/video_core/renderer_vulkan/fixed_pipeline_state.cpp | 1 + src/video_core/renderer_vulkan/fixed_pipeline_state.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp index 6cfe53cd7c..e8f2d7ed5d 100644 --- a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp +++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp @@ -117,6 +117,7 @@ void FixedPipelineState::Refresh(Tegra::Engines::Maxwell3D& maxwell3d, DynamicFe // with the fixed pipeline taking in invalid vertices! :) const auto& attrs = regs.vertex_attrib_format; attribute_types[0] = attribute_types[1] = attribute_types[2] = attribute_types[3] = 0; + static_assert(Maxwell::NumVertexAttributes == 32); for (size_t i = 0; i < Maxwell::NumVertexAttributes; ++i) { u32 const mask = attrs[i].constant != 0 ? 0 : 0x07; // non-constant equates invalid u32 const type = size_t(attrs[i].type.Value()); diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.h b/src/video_core/renderer_vulkan/fixed_pipeline_state.h index c5c84764e0..b251551b77 100644 --- a/src/video_core/renderer_vulkan/fixed_pipeline_state.h +++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.h @@ -226,7 +226,7 @@ struct FixedPipelineState { std::array viewport_swizzles; union { - u64 attribute_types[3]; // Used with VK_EXT_vertex_input_dynamic_state + u32 attribute_types[3]; // Used with VK_EXT_vertex_input_dynamic_state u64 enabled_divisors; };