Force termination if code has empty infinite loop

  • seri14
  • Topic Author
More
6 years 2 months ago #1 by seri14 Force termination if code has empty infinite loop was created by seri14
#include "ReShade.fxh"

void PS_Test(float4 vpos : SV_Position, float2 texcoord : TexCoord, out float4 color : SV_Target)
{
	for (;;) {}
}

technique Test { pass Test { PixelShader = PS_Test; VertexShader = PostProcessVS; } }

in HLSL
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!

Program: ...sire\reshade-2nd\bin\Win32\Debug App\ReShade32.exe
File: c:\source\repos\crosire\reshade-2nd...\effect_...lsl.cpp
Line: 1092

Expression: condition_value != 0 && prev_block != 0 && header_block != 0 && loop_block != 0 && continue_block != 0

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

(Press Retry to debug the application - JIT must be enabled)
---------------------------
Abort   Retry   Ignore   
---------------------------
github.com/crosire/reshade/blob/ca99f0d9...degen_hlsl.cpp#L1092

in GLSL
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!

Program: ...sire\reshade-2nd\bin\Win32\Debug App\ReShade32.exe
File: c:\source\repos\crosire\reshade-2nd...\effect_...lsl.cpp
Line: 1152

Expression: condition_value != 0 && prev_block != 0 && header_block != 0 && loop_block != 0 && continue_block != 0

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

(Press Retry to debug the application - JIT must be enabled)
---------------------------
Abort   Retry   Ignore   
---------------------------
github.com/crosire/reshade/blob/ca99f0d9...degen_glsl.cpp#L1152

Please Log in or Create an account to join the conversation.

  • crosire
More
6 years 2 months ago #2 by crosire Replied by crosire on topic Force termination if code has empty infinite loop

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.