This commit is contained in:
lizzie
2026-01-25 00:39:49 +00:00
committed by crueter
parent 951432028a
commit 2590095e35
2 changed files with 2 additions and 1 deletions

View File

@@ -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());

View File

@@ -226,7 +226,7 @@ struct FixedPipelineState {
std::array<u16, Maxwell::NumViewports> 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;
};