From 45ea43c1578a565e912c983e1c1ff4fc982f08e7 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 11 Apr 2021 19:54:40 +0200 Subject: [PATCH] kernel4: replace continue in switch to support D3D11 shader model 5.0 Without this change, the fxc.exe compiler complains error X3708: continue cannot be used in a switch Signed-off-by: Elias Naur --- piet-gpu/shader/kernel4.comp | 2 +- piet-gpu/shader/kernel4.spv | Bin 36716 -> 36716 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/piet-gpu/shader/kernel4.comp b/piet-gpu/shader/kernel4.comp index b7834cf..d366dd6 100644 --- a/piet-gpu/shader/kernel4.comp +++ b/piet-gpu/shader/kernel4.comp @@ -231,7 +231,7 @@ void main() { case Cmd_Jump: cmd_ref = CmdRef(Cmd_Jump_read(cmd_alloc, cmd_ref).new_ref); cmd_alloc.offset = cmd_ref.offset; - continue; + break; } } diff --git a/piet-gpu/shader/kernel4.spv b/piet-gpu/shader/kernel4.spv index af7fe183c6b89ca9d5e0c89b172b53b55c6baba7..4d05170d8757ddab222265672f312b902dcb38f6 100644 GIT binary patch delta 16 YcmaDekLk@krVS5L7)>`nOzGAF07yIs@Bjb+ delta 16 YcmaDekLk@krVS5L7-cs