Skip to content

Commit

Permalink
Merge pull request #327 from microsoft/user/sotteson/const-enum-scraper
Browse files Browse the repository at this point in the history
Add constant scraper and integration with enums scraped from docs
  • Loading branch information
sotteson1 authored Mar 10, 2021
2 parents d32d7f4 + 34ab5d4 commit e20ac99
Show file tree
Hide file tree
Showing 45 changed files with 46,012 additions and 21,263 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ steps:
packagesToPush: '$(OutputPackagesDir)/**/*.nupkg;!$(OutputPackagesDir)/**/*.symbols.nupkg'
publishVstsFeed: 'c1408dcb-1833-4ae4-9af5-1a891a12cc3c'
allowPackageConflicts: true
condition: and(succeeded(), eq(variables.UsePreGeneratedSource, false))

1 change: 1 addition & 0 deletions generation/emitter/autoTypes.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,4 @@ Windows.Win32.AllJoyn,alljoyn_sessionlistener,AllJoynHandle
Windows.Win32.AllJoyn,alljoyn_sessionopts,AllJoynHandle
Windows.Win32.AllJoyn,alljoyn_sessionportlistener,AllJoynHandle
Windows.Win32.SystemServices,HPCON,IntPtr,ClosePseudoConsole
Windows.Win32.Controls,HTREEITEM,IntPtr
21 changes: 21 additions & 0 deletions generation/emitter/manual/Controls.manual.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using System.Runtime.InteropServices;
using Windows.Win32.Interop;

namespace Windows.Win32.Controls
{
public static unsafe partial class Apis
{
[NativeTypeName("HTREEITEM")]
public const int TVI_ROOT = -0x10000;

[NativeTypeName("HTREEITEM")]
public const int TVI_FIRST = -0x0FFFF;

[NativeTypeName("HTREEITEM")]
public const int TVI_LAST = -0x0FFFE;

[NativeTypeName("HTREEITEM")]
public const int TVI_SORT = -0x0FFFD;
}
}
40 changes: 0 additions & 40 deletions generation/emitter/manual/Direct3D11.manual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,6 @@ namespace Windows.Win32.Direct3D11
{
public static unsafe partial class Apis
{
public const uint D3D11_SDK_VERSION = 7;

public const int D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION = 2048;

public const int D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION = 4096;

public const int D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION = 2048;

public const int D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION = 4096;

public const int D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION = 512;

public const int D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION = 4096;

public const int D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 256;

public const int D3D_FL9_1_DEFAULT_MAX_ANISOTROPY = 2;

public const int D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT = 65535;

public const int D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT = 1048575;

public const int D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT = 1;

public const int D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT = 4;

public const int D3D_FL9_1_MAX_TEXTURE_REPEAT = 128;

public const int D3D_FL9_2_MAX_TEXTURE_REPEAT = 2048;

public const int D3D_FL9_3_MAX_TEXTURE_REPEAT = 8192;

public static readonly Guid WKPDID_D3DDebugObjectName = new Guid(0x429B8C22, 0x9188, 0x4B0C, 0x87, 0x42, 0xAC, 0xB0, 0xBF, 0x85, 0xC2, 0x00);

public static readonly Guid WKPDID_D3DDebugObjectNameW = new Guid(0x4CCA5FD8, 0x921F, 0x42C8, 0x85, 0x66, 0x70, 0xCA, 0xF2, 0xA9, 0xB7, 0x41);
Expand All @@ -50,13 +18,5 @@ public static unsafe partial class Apis
public static readonly Guid D3D_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE = new Guid(0x4C0F29E3, 0x3F5F, 0x4D35, 0x84, 0xC9, 0xBC, 0x09, 0x83, 0xB6, 0x2C, 0x28);

public static readonly Guid IID_ID3DBlob = new Guid(0x8BA5FB08, 0x5195, 0x40E2, 0xAC, 0x58, 0x0D, 0x98, 0x9C, 0x3A, 0x01, 0x02);

public const int D3D_COMPONENT_MASK_X = 1;

public const int D3D_COMPONENT_MASK_Y = 2;

public const int D3D_COMPONENT_MASK_Z = 4;

public const int D3D_COMPONENT_MASK_W = 8;
}
}
Loading

0 comments on commit e20ac99

Please sign in to comment.