mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-17 12:48:09 +01:00
spirv: Add OpKill fallback to demote
This commit is contained in:
1 parent
d2e6291c0e
commit
1922cbb84c
1 file changed
+6
-2
@@ -35,8 +35,12 @@ void EmitUnreachable(EmitContext& ctx) {
|
||||
}
|
||||
|
||||
void EmitDemoteToHelperInvocation(EmitContext& ctx, Id continue_label) {
|
||||
ctx.OpDemoteToHelperInvocationEXT();
|
||||
ctx.OpBranch(continue_label);
|
||||
if (ctx.profile.support_demote_to_helper_invocation) {
|
||||
ctx.OpDemoteToHelperInvocationEXT();
|
||||
ctx.OpBranch(continue_label);
|
||||
} else {
|
||||
ctx.OpKill();
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Shader::Backend::SPIRV
|
||||
Reference in new issue
Block a user