switch to a monochrome texture for the font rendering

This commit is contained in:
Jonathan Marler 2025-01-13 22:15:11 -07:00
parent 5b83619f7a
commit 27f256a7c5
3 changed files with 22 additions and 28 deletions

View file

@ -49,7 +49,7 @@ const StagingTexture = struct {
.Height = size.y,
.MipLevels = 1,
.ArraySize = 1,
.Format = .B8G8R8A8_UNORM,
.Format = .A8_UNORM,
.SampleDesc = .{ .Count = 1, .Quality = 0 },
.Usage = .DEFAULT,
.BindFlags = .{ .RENDER_TARGET = 1 },
@ -70,7 +70,7 @@ const StagingTexture = struct {
const props = win32.D2D1_RENDER_TARGET_PROPERTIES{
.type = .DEFAULT,
.pixelFormat = .{
.format = .B8G8R8A8_UNORM,
.format = .A8_UNORM,
.alphaMode = .PREMULTIPLIED,
},
.dpiX = 0,