- Posts: 154
Force termination if code has empty infinite loop
- seri14
-
Topic Author
- Offline
Less More
1 year 6 months ago #1 by seri14
in HLSLgithub.com/crosire/reshade/blob/ca99f0d9...degen_hlsl.cpp#L1092
in GLSLgithub.com/crosire/reshade/blob/ca99f0d9...degen_glsl.cpp#L1152
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
---------------------------
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
---------------------------
Please Log in or Create an account to join the conversation.
- crosire
-
- Offline
Less More
- Posts: 3836
1 year 6 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.