From 306ff5f9511d8760b670d2b0831ccc9009675d47 Mon Sep 17 00:00:00 2001 From: Richard Geldreich Date: Thu, 2 Jul 2026 22:55:40 -0400 Subject: [PATCH] minor change --- shader_deblocking_d3d11/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shader_deblocking_d3d11/main.cpp b/shader_deblocking_d3d11/main.cpp index 489ff21..a6186c2 100644 --- a/shader_deblocking_d3d11/main.cpp +++ b/shader_deblocking_d3d11/main.cpp @@ -259,6 +259,9 @@ static std::string read_file(const std::string& path) { } static ID3DBlob* compile_hlsl_file(const std::string& path, const char* entry, const char* target) { + // Byte-to-wchar widen: fine for the ASCII "deblock.hlsl" path this sample uses, + // but it mangles non-ASCII paths -- use MultiByteToWideChar(CP_UTF8,...) if you + // adapt this to load shaders from arbitrary (possibly Unicode) asset paths. std::wstring wpath(path.begin(), path.end()); ID3DBlob* code = nullptr, * errors = nullptr; // Warnings print but do not fail the compile: the R-key hot-reload workflow