First tagged release of the Win32 window transparency reference demos.
What's included
Eight self-contained programs, each isolating one aspect of window transparency on Windows 10/11:
01_basic_opaque-- baseline opaque window02_popup_no_decorations-- chromeless popup03_win11_backdrop-- Mica/Acrylic viaDWMWA_SYSTEMBACKDROP_TYPE04_layered_uniform_alpha--WS_EX_LAYEREDwithSetLayeredWindowAttributes05_perpixel_alpha-- the recommended path:BLACK_BRUSH+DwmEnableBlurBehindWindow06_perpixel_alpha_patblt-- same idea, GDI-rendered content07_vulkan_perpixel_alpha-- Vulkan swapchain withVK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR, uploading a per-pixel radial alpha pattern08_glfw_transparency_bug-- minimal repro for GLFW'sGLFW_TRANSPARENT_FRAMEBUFFERissue (see glfw/glfw#2815)
Notes
See README for the full background on DWM redirection surfaces, when to use which mechanism, and why WS_EX_NOREDIRECTIONBITMAP should be avoided.
Built with MSVC + CMake. Vulkan SDK and GLFW are fetched/found by CMake.