DEBUG22 request and report stencil readiness

This commit is contained in:
Dusk-92
2026-08-28 21:57:13 +02:00
parent a11ff8d82b
commit 2558cd9709
+5 -4
View File
@@ -168,17 +168,18 @@ pub fn outlineDebug(L: lua.State) callconv(.{ .x86_thiscall = .{} }) u32 {
if (target_guid != 0) tracker.debug_unit_target_guid_seen = true;
_ = d3d9_hook.lateRehookIfLost();
d3d9_hook.requestStencilCheck();
const live = d3d9_hook.getLiveHookState();
var buf: [336]u8 = undefined;
const msg = std.fmt.bufPrintZ(
&buf,
"OutlineDBG shst={d} rtst={d} sha={x} err={s} hooks={d}{d}{d} tgt={d} mdl={d} odip={d} cache={d} pipe={d}/{d}",
"OutlineDBG st={d} fmt={x} rst={x} shst={d} hooks={d}{d}{d} tgt={d} mdl={d} odip={d} cache={d} pipe={d}/{d}",
.{
@intFromBool(d3d9_hook.debug_stencil_ready),
d3d9_hook.debug_stencil_format,
@as(u32, @bitCast(d3d9_hook.debug_stencil_reset_hr)),
d3d9_hook.debug_shader_stage,
d3d9_hook.debug_resource_stage,
@as(u32, @bitCast(d3d9_hook.debug_shader_assemble_hr)),
std.mem.sliceTo(&d3d9_hook.debug_shader_error_text, 0),
@intFromBool(live.endscene_ours),
@intFromBool(live.dip_ours),
@intFromBool(live.reset_ours),