summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/ir_emitter.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-03-23 20:27:17 -0400
committerGravatar ameerj2021-07-22 21:51:24 -0400
commit3d07cef009cf9e287744c7771c67166ef5761ce8 (patch)
tree78f4fea18d9facb72850b4c2fe115e96b7af8f26 /src/shader_recompiler/frontend/ir/ir_emitter.cpp
parentvk_pipeline_cache: Fix ReleaseContents order (diff)
downloadyuzu-3d07cef009cf9e287744c7771c67166ef5761ce8.tar.gz
yuzu-3d07cef009cf9e287744c7771c67166ef5761ce8.tar.xz
yuzu-3d07cef009cf9e287744c7771c67166ef5761ce8.zip
shader: Implement VOTE
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
index 432dd29a5..ff2970125 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
@@ -1444,4 +1444,20 @@ F32 IREmitter::ImageSampleDrefExplicitLod(const Value& handle, const Value& coor
1444 return Inst<F32>(op, Flags{info}, handle, coords, dref, lod_lc, offset); 1444 return Inst<F32>(op, Flags{info}, handle, coords, dref, lod_lc, offset);
1445} 1445}
1446 1446
1447U1 IREmitter::VoteAll(const U1& value) {
1448 return Inst<U1>(Opcode::VoteAll, value);
1449}
1450
1451U1 IREmitter::VoteAny(const U1& value) {
1452 return Inst<U1>(Opcode::VoteAny, value);
1453}
1454
1455U1 IREmitter::VoteEqual(const U1& value) {
1456 return Inst<U1>(Opcode::VoteEqual, value);
1457}
1458
1459U32 IREmitter::SubgroupBallot(const U1& value) {
1460 return Inst<U32>(Opcode::SubgroupBallot, value);
1461}
1462
1447} // namespace Shader::IR 1463} // namespace Shader::IR