Validate depth attachments don't use BGFX_RESOLVE_AUTO_GEN_MIPS. Closes #2862. (#3764)

This commit is contained in:
Branimir Karadžić
2026-06-16 21:26:46 -07:00
committed by GitHub
parent edbec2f2cc
commit 2f8d0d5f7e
+10
View File
@@ -4995,6 +4995,16 @@ namespace bgfx
, ii
, tr.m_flags
);
BGFX_ERROR_CHECK(
0 == (at.resolve & BGFX_RESOLVE_AUTO_GEN_MIPS)
, _err
, BGFX_ERROR_FRAME_BUFFER_VALIDATION
, "Frame buffer depth attachment cannot use `BGFX_RESOLVE_AUTO_GEN_MIPS`. Depth textures do not support MSAA resolve."
, "Attachment %d, resolve flags 0x%02x."
, ii
, at.resolve
);
}
else
{