From d56fdd293774dde8752c7906cf3c9651b69098f7 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 18 May 2023 12:00:23 +0100 Subject: [PATCH] Add `fmt:"s,0"` tags to UTF-16 strings in dxgi.odin --- vendor/directx/dxgi/dxgi.odin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/directx/dxgi/dxgi.odin b/vendor/directx/dxgi/dxgi.odin index dc1b73b1b..c2117f637 100644 --- a/vendor/directx/dxgi/dxgi.odin +++ b/vendor/directx/dxgi/dxgi.odin @@ -375,7 +375,7 @@ MAPPED_RECT :: struct { } ADAPTER_DESC :: struct { - Description: [128]u16, + Description: [128]u16 `fmt:"s,0"`, VendorId: u32, DeviceId: u32, SubSysId: u32, @@ -387,7 +387,7 @@ ADAPTER_DESC :: struct { } OUTPUT_DESC :: struct { - DeviceName: [32]u16, + DeviceName: [32]u16 `fmt:"s,0"`, DesktopCoordinates: RECT, AttachedToDesktop: BOOL, Rotation: MODE_ROTATION, @@ -613,7 +613,7 @@ ADAPTER_FLAG :: enum u32 { // TODO: convert to bit_set } ADAPTER_DESC1 :: struct { - Description: [128]u16, + Description: [128]u16 `fmt:"s,0"`, VendorId: u32, DeviceId: u32, SubSysId: u32, @@ -890,7 +890,7 @@ COMPUTE_PREEMPTION_GRANULARITY :: enum i32 { } ADAPTER_DESC2 :: struct { - Description: [128]u16, + Description: [128]u16 `fmt:"s,0"`, VendorId: u32, DeviceId: u32, SubSysId: u32,