diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-12 08:48:15 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:27 +0200 |
commit | a6cef71cc0b03f929f1bc97152b302562f46bc53 (patch) | |
tree | b6be5bddb79c93233f6081a930634345c353dec2 /src/shader_recompiler/backend/spirv | |
parent | internal_stage_buffer_entry_read: Remove pragma optimize off (diff) | |
download | yuzu-a6cef71cc0b03f929f1bc97152b302562f46bc53.tar yuzu-a6cef71cc0b03f929f1bc97152b302562f46bc53.tar.gz yuzu-a6cef71cc0b03f929f1bc97152b302562f46bc53.tar.bz2 yuzu-a6cef71cc0b03f929f1bc97152b302562f46bc53.tar.lz yuzu-a6cef71cc0b03f929f1bc97152b302562f46bc53.tar.xz yuzu-a6cef71cc0b03f929f1bc97152b302562f46bc53.tar.zst yuzu-a6cef71cc0b03f929f1bc97152b302562f46bc53.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.h | 2 | ||||
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_special.cpp | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.h b/src/shader_recompiler/backend/spirv/emit_spirv.h index 150477ff6..440075212 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.h +++ b/src/shader_recompiler/backend/spirv/emit_spirv.h @@ -34,6 +34,8 @@ void EmitMemoryBarrierDeviceLevel(EmitContext& ctx); void EmitMemoryBarrierSystemLevel(EmitContext& ctx); void EmitPrologue(EmitContext& ctx); void EmitEpilogue(EmitContext& ctx); +void EmitEmitVertex(EmitContext& ctx, Id stream); +void EmitEndPrimitive(EmitContext& ctx, Id stream); void EmitGetRegister(EmitContext& ctx); void EmitSetRegister(EmitContext& ctx); void EmitGetPred(EmitContext& ctx); diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp index 5f80c189f..d20f4def3 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_special.cpp @@ -36,4 +36,12 @@ void EmitEpilogue(EmitContext& ctx) { } } +void EmitEmitVertex(EmitContext& ctx, Id stream) { + ctx.OpEmitStreamVertex(stream); +} + +void EmitEndPrimitive(EmitContext& ctx, Id stream) { + ctx.OpEndStreamPrimitive(stream); +} + } // namespace Shader::Backend::SPIRV |