summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/ir_emitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
index d66eb17a6..b821d9f47 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
@@ -331,6 +331,14 @@ void IREmitter::SetAttributeIndexed(const U32& phys_address, const F32& value, c
331 Inst(Opcode::SetAttributeIndexed, phys_address, value, vertex); 331 Inst(Opcode::SetAttributeIndexed, phys_address, value, vertex);
332} 332}
333 333
334F32 IREmitter::GetPatch(Patch patch) {
335 return Inst<F32>(Opcode::GetPatch, patch);
336}
337
338void IREmitter::SetPatch(Patch patch, const F32& value) {
339 Inst(Opcode::SetPatch, patch, value);
340}
341
334void IREmitter::SetFragColor(u32 index, u32 component, const F32& value) { 342void IREmitter::SetFragColor(u32 index, u32 component, const F32& value) {
335 Inst(Opcode::SetFragColor, Imm32(index), Imm32(component), value); 343 Inst(Opcode::SetFragColor, Imm32(index), Imm32(component), value);
336} 344}
@@ -363,6 +371,10 @@ U32 IREmitter::LocalInvocationIdZ() {
363 return U32{CompositeExtract(Inst(Opcode::LocalInvocationId), 2)}; 371 return U32{CompositeExtract(Inst(Opcode::LocalInvocationId), 2)};
364} 372}
365 373
374U32 IREmitter::InvocationId() {
375 return Inst<U32>(Opcode::InvocationId);
376}
377
366U1 IREmitter::IsHelperInvocation() { 378U1 IREmitter::IsHelperInvocation() {
367 return Inst<U1>(Opcode::IsHelperInvocation); 379 return Inst<U1>(Opcode::IsHelperInvocation);
368} 380}