mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-16 03:07:56 -05:00
shader: Implement MEMBAR
This commit is contained in:
@ -25,6 +25,14 @@ enum class FpRounding : u8 {
|
||||
RZ, // Round towards zero
|
||||
};
|
||||
|
||||
enum class MemoryScope : u32 {
|
||||
DontCare,
|
||||
Warp,
|
||||
Workgroup,
|
||||
Device,
|
||||
System
|
||||
};
|
||||
|
||||
struct FpControl {
|
||||
bool no_contraction{false};
|
||||
FpRounding rounding{FpRounding::DontCare};
|
||||
@ -32,6 +40,11 @@ struct FpControl {
|
||||
};
|
||||
static_assert(sizeof(FpControl) <= sizeof(u32));
|
||||
|
||||
union BarrierInstInfo {
|
||||
u32 raw;
|
||||
BitField<0, 3, MemoryScope> scope;
|
||||
};
|
||||
|
||||
union TextureInstInfo {
|
||||
u32 raw;
|
||||
BitField<0, 8, TextureType> type;
|
||||
|
Reference in New Issue
Block a user