Update to Win32Metadata 38.0.19-preview and FIX struct generation.

This commit is contained in:
Amer Koleci
2022-11-21 09:20:46 +01:00
parent 8951f5b092
commit cf55322a11
45 changed files with 474 additions and 531 deletions

View File

@@ -2375,6 +2375,11 @@ public static class Program
foreach (ApiParameter parameter in method.Params)
{
if(method.Name == "CreateRenderTargetView" && comType.Name == "ID3D12Device")
{
}
GetParameterSignature(api, writer, parameter,
$"{comType.Name}::{method.Name}",
out string parameterType,
@@ -2510,7 +2515,7 @@ public static class Program
else
{
string fullTypeName = $"{parameter.Type.Api}.{parameter.Type.Name}";
if (!IsPrimitive(parameter.Type) && !IsEnum(fullTypeName))
if (!IsPrimitive(parameter.Type) && !IsStruct(fullTypeName) && !IsEnum(fullTypeName))
{
asPointer = true;
}