VideoCore: Extract swrast-specific data from OutputVertex

This commit is contained in:
Yuri Kunde Schlesner 2016-12-18 23:43:37 -08:00
parent 8ed9f9d49f
commit dcdffabfe6
5 changed files with 64 additions and 58 deletions

View file

@ -26,7 +26,7 @@ OutputVertex OutputVertex::FromAttributeBuffer(const Regs& regs, AttributeBuffer
OutputVertex ret{};
std::array<float24, 24> vertex_slots;
};
static_assert(sizeof(vertex_slots) <= sizeof(ret), "Struct and array have different sizes.");
static_assert(sizeof(vertex_slots) == sizeof(ret), "Struct and array have different sizes.");
unsigned int num_attributes = regs.vs_output_total;
ASSERT(num_attributes <= 7);