From 31dd03697f2dc4c56b38c663d485da46d31b66be Mon Sep 17 00:00:00 2001 From: ema Date: Tue, 16 Jul 2024 23:06:48 +0800 Subject: [PATCH] chore: use primary ctor --- src/ETW/Microsoft_Windows_D3D9.cs | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/ETW/Microsoft_Windows_D3D9.cs b/src/ETW/Microsoft_Windows_D3D9.cs index 9d160e6..716a51a 100644 --- a/src/ETW/Microsoft_Windows_D3D9.cs +++ b/src/ETW/Microsoft_Windows_D3D9.cs @@ -9,27 +9,9 @@ internal static class Microsoft_Windows_D3D9 public static readonly Guid GUID = new("783ACA0A-790E-4D7F-8451-AA850511C6B9"); - public static readonly EVENT_DESCRIPTOR_DECL Present_Start = new() - { - Id = 0x0001, - Version = 0x00, - Channel = 0x10, - Level = 0x00, - Opcode = 0x01, - Task = 0x0001, - Keyword = 0x8000000000000002, - }; + public static readonly EVENT_DESCRIPTOR_DECL Present_Start = new(0x0001, 0x00, 0x10, 0x00, 0x01, 0x0001, 0x8000000000000002); - public static readonly EVENT_DESCRIPTOR_DECL Present_Stop = new() - { - Id = 0x0002, - Version = 0x00, - Channel = 0x10, - Level = 0x00, - Opcode = 0x02, - Task = 0x0001, - Keyword = 0x8000000000000002, - }; + public static readonly EVENT_DESCRIPTOR_DECL Present_Stop = new(0x0002, 0x00, 0x10, 0x00, 0x02, 0x0001, 0x8000000000000002); public enum Keyword : ulong {