diff options
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp index ed1e0dd3b..e4e9b260c 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp | |||
| @@ -307,6 +307,14 @@ void IREmitter::SetAttribute(IR::Attribute attribute, const F32& value) { | |||
| 307 | Inst(Opcode::SetAttribute, attribute, value); | 307 | Inst(Opcode::SetAttribute, attribute, value); |
| 308 | } | 308 | } |
| 309 | 309 | ||
| 310 | F32 IREmitter::GetAttributeIndexed(IR::U32 phys_address) { | ||
| 311 | return Inst<F32>(Opcode::GetAttributeIndexed, phys_address); | ||
| 312 | } | ||
| 313 | |||
| 314 | void IREmitter::SetAttributeIndexed(IR::U32 phys_address, const F32& value) { | ||
| 315 | Inst(Opcode::SetAttributeIndexed, phys_address, value); | ||
| 316 | } | ||
| 317 | |||
| 310 | void IREmitter::SetFragColor(u32 index, u32 component, const F32& value) { | 318 | void IREmitter::SetFragColor(u32 index, u32 component, const F32& value) { |
| 311 | Inst(Opcode::SetFragColor, Imm32(index), Imm32(component), value); | 319 | Inst(Opcode::SetFragColor, Imm32(index), Imm32(component), value); |
| 312 | } | 320 | } |