mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 16:16:04 +08:00
Improve more D3D11 generation and helper methods.
This commit is contained in:
@@ -2409,11 +2409,6 @@ 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,
|
||||
@@ -2434,6 +2429,36 @@ public static class Program
|
||||
{
|
||||
argumentBuilder.Append(" = null");
|
||||
}
|
||||
else if (method.Name.EndsWith("SetShader") && comType.Name.StartsWith("ID3D11DeviceContext"))
|
||||
{
|
||||
if (parameterName.EndsWith("Shader"))
|
||||
{
|
||||
argumentBuilder.Append(" = null");
|
||||
}
|
||||
else if (parameterName == "ppClassInstances")
|
||||
{
|
||||
argumentBuilder.Append(" = null");
|
||||
}
|
||||
else if (parameterName == "NumClassInstances")
|
||||
{
|
||||
argumentBuilder.Append(" = 0");
|
||||
}
|
||||
}
|
||||
else if (method.Name == "OMSetBlendState" && comType.Name.StartsWith("ID3D11DeviceContext"))
|
||||
{
|
||||
if (parameterName == "pBlendState")
|
||||
{
|
||||
argumentBuilder.Append(" = default");
|
||||
}
|
||||
else if (parameterName == "BlendFactor")
|
||||
{
|
||||
argumentBuilder.Append(" = null");
|
||||
}
|
||||
else if (parameterName == "SampleMask")
|
||||
{
|
||||
argumentBuilder.Append(" = 0xffffffff");
|
||||
}
|
||||
}
|
||||
|
||||
argumentsTypesBuilder.Append(parameterType);
|
||||
argumentsNameBuilder.Append(parameterName);
|
||||
|
||||
Reference in New Issue
Block a user