FreeBSD + concepts = fail
This commit is contained in:
kd-11 2021-05-15 21:45:04 +03:00 committed by kd-11
parent af05ebe428
commit a84cf030bb

View File

@ -3,11 +3,10 @@
#include "util/types.hpp" #include "util/types.hpp"
#include "../gcm_enums.h" #include "../gcm_enums.h"
#include <concepts>
namespace rsx namespace rsx
{ {
#pragma pack(push, 1) #pragma pack(push, 1)
// NOTE: This structure must be packed to match GPU layout.
struct fragment_program_texture_config struct fragment_program_texture_config
{ {
struct TIU_slot struct TIU_slot
@ -19,8 +18,7 @@ namespace rsx
} }
slots_[16]; // QT headers will collide with any variable named 'slots' because reasons slots_[16]; // QT headers will collide with any variable named 'slots' because reasons
template <std::integral T> TIU_slot& operator[](u32 index) { return slots_[index]; }
TIU_slot& operator[](T index) { return slots_[index]; }
void write_to(void* dst, u16 mask); void write_to(void* dst, u16 mask);
void load_from(const void* src, u16 mask); void load_from(const void* src, u16 mask);