Welcome, Guest.
Username: Password: Remember me

TOPIC: Force termination if code has empty infinite loop

Force termination if code has empty infinite loop 1 week 2 days ago #1

#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
The administrator has disabled public write access.

Force termination if code has empty infinite loop 1 week 2 days ago #2

Cheers, crosire =)
The administrator has disabled public write access.