mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 08:06:02 +08:00
Update bindings to use char* instead of ushort*, separated Dxc native packages to Vortice.Dxc.Native, bump version to 2.2.1
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
global-json-file: ./global.json
|
||||
|
||||
- name: Pack
|
||||
run: dotnet pack Vortice.Win32.sln --configuration Release --output artifacts
|
||||
run: dotnet pack Vortice.Win32.sln --configuration Release
|
||||
|
||||
- name: Publish to NuGet
|
||||
if: github.event_name == 'push'
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<RepoRootDirectory>$(MSBuildThisFileDirectory)</RepoRootDirectory>
|
||||
<RepoSrcDirectory>$(MSBuildThisFileDirectory)src/</RepoSrcDirectory>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<RepositoryUrl>https://github.com/amerkoleci/Vortice.Win32</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
@@ -6,7 +11,7 @@
|
||||
|
||||
<!-- Version -->
|
||||
<PropertyGroup>
|
||||
<VersionPrefix>2.2.0</VersionPrefix>
|
||||
<VersionPrefix>2.2.1</VersionPrefix>
|
||||
<VersionSuffix Condition="'$(VersionSuffix)' == ''"></VersionSuffix>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -18,11 +23,8 @@
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<DebugType>embedded</DebugType>
|
||||
<Features>strict</Features>
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<RestoreConfigFile>$(MSBuildThisFileDirectory)NuGet.config</RestoreConfigFile>
|
||||
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
||||
|
||||
|
||||
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<NoWarn>$(NoWarn);AD0001;CS1591;CS1701;CA2252;</NoWarn>
|
||||
</PropertyGroup>
|
||||
@@ -38,6 +40,7 @@
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
|
||||
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts/</PackageOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- https://github.com/dotnet/sourcelink -->
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<!-- Emit the [DisableRuntimeMarshalling] attribute for all .NET 8 projects -->
|
||||
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
|
||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Settings that are only set for executables -->
|
||||
<PropertyGroup Condition="'$(OutputType)' != 'Library' ">
|
||||
<PublishTrimmed>true</PublishTrimmed>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Emit the [ComVisible(false)] attribute for WinUI targets -->
|
||||
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0-windows'))">
|
||||
<AssemblyAttribute Include="System.Runtime.InteropServices.ComVisibleAttribute">
|
||||
<_Parameter1>false</_Parameter1>
|
||||
</AssemblyAttribute>
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Settings that are only set for libraries -->
|
||||
<PropertyGroup Condition=" '$(OutputType)' == 'Library' ">
|
||||
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
|
||||
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
|
||||
<EnableAotAnalyzer Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</EnableAotAnalyzer>
|
||||
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
|
||||
<EnableTrimAnalyzer Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</EnableTrimAnalyzer>
|
||||
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -46,6 +46,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vortice.Win32.Graphics.Dire
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vortice.Win32.Media.Audio.XAudio2", "src\Vortice.Win32.Media.Audio.XAudio2\Vortice.Win32.Media.Audio.XAudio2.csproj", "{6458F6C9-12ED-407E-A91D-9F155362E8E9}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vortice.Dxc.Native", "src\Vortice.Dxc.Native\Vortice.Dxc.Native.csproj", "{3C579D3B-8239-4707-B906-253181EF52B4}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -108,6 +110,10 @@ Global
|
||||
{6458F6C9-12ED-407E-A91D-9F155362E8E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6458F6C9-12ED-407E-A91D-9F155362E8E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6458F6C9-12ED-407E-A91D-9F155362E8E9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{3C579D3B-8239-4707-B906-253181EF52B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3C579D3B-8239-4707-B906-253181EF52B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3C579D3B-8239-4707-B906-253181EF52B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3C579D3B-8239-4707-B906-253181EF52B4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<IsPackable>false</IsPackable>
|
||||
<RootNamespace>ClearScreen</RootNamespace>
|
||||
<PublishTrimmed>true</PublishTrimmed>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -21,14 +22,14 @@
|
||||
<Choose>
|
||||
<When Condition="($([MSBuild]::IsOsPlatform('windows')) and '$(RuntimeIdentifier)'=='') or '$(RuntimeIdentifier)'=='win-x64'">
|
||||
<ItemGroup>
|
||||
<None Include="..\..\src\Vortice.Win32.Graphics.Direct3D.Dxc\runtimes\win-x64\native\dxil.dll" Link="dxil.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="..\..\src\Vortice.Win32.Graphics.Direct3D.Dxc\runtimes\win-x64\native\dxcompiler.dll" Link="dxil.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="..\..\src\Vortice.Dxc.Native\runtimes\win-x64\native\dxil.dll" Link="dxil.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="..\..\src\Vortice.Dxc.Native\runtimes\win-x64\native\dxcompiler.dll" Link="dxil.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition="($([MSBuild]::IsOsPlatform('windows')) and '$(RuntimeIdentifier)'=='') or '$(RuntimeIdentifier)'=='win-arm64'">
|
||||
<ItemGroup>
|
||||
<None Include="..\..\src\Vortice.Win32.Graphics.Direct3D.Dxc\runtimes\win-arm64\native\dxil.dll" Link="dxil.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="..\..\src\Vortice.Win32.Graphics.Direct3D.Dxc\runtimes\win-arm64\native\dxcompiler.dll" Link="dxil.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="..\..\src\Vortice.Dxc.Native\runtimes\win-arm64\native\dxil.dll" Link="dxil.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="..\..\src\Vortice.Dxc.Native\runtimes\win-arm64\native\dxcompiler.dll" Link="dxil.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
|
||||
@@ -66,7 +66,7 @@ public static class Program
|
||||
{ "Foundation.LRESULT", "nint" },
|
||||
{ "Foundation.WPARAM", "nuint" },
|
||||
{ "Foundation.PSTR", "sbyte*" },
|
||||
{ "Foundation.PWSTR", "ushort*" },
|
||||
{ "Foundation.PWSTR", "char*" },
|
||||
{ "Foundation.CHAR", "byte" },
|
||||
{ "Foundation.COLORREF", "uint" },
|
||||
|
||||
@@ -1843,14 +1843,14 @@ public static class Program
|
||||
|
||||
if (string.IsNullOrEmpty(function.DllImport) == false)
|
||||
{
|
||||
functionSuffix = "static extern ";
|
||||
functionSuffix = "static partial ";
|
||||
string dllImport = function.DllImport;
|
||||
if (dllImport == "XAudio2_8.dll")
|
||||
{
|
||||
dllImport = "xaudio2_9";
|
||||
}
|
||||
|
||||
writer.WriteLine($"[DllImport(\"{dllImport}\", ExactSpelling = true)]");
|
||||
writer.WriteLine($"[LibraryImport(\"{dllImport}\")]");
|
||||
}
|
||||
|
||||
StringBuilder argumentBuilder = new();
|
||||
@@ -2399,14 +2399,14 @@ public static class Program
|
||||
Dictionary<string, List<ApiType>> methodsToGenerate)
|
||||
{
|
||||
string csTypeName = comType.Name;
|
||||
List<string> namespaces = new();
|
||||
List<string> namespaces = [];
|
||||
|
||||
if (comType.Name == "ID2D1GeometrySink")
|
||||
{
|
||||
namespaces.Add("Win32.Graphics.Direct2D.Common");
|
||||
}
|
||||
|
||||
using var writer = new CodeWriter(
|
||||
using CodeWriter writer = new(
|
||||
Path.Combine(folder, $"{csTypeName}.cs"),
|
||||
apiName,
|
||||
docFileName,
|
||||
@@ -2523,7 +2523,7 @@ public static class Program
|
||||
vtblIndex = 8;
|
||||
|
||||
bool needNewLine = false;
|
||||
List<Tuple<int, string>> interfaceMethods = new();
|
||||
List<Tuple<int, string>> interfaceMethods = [];
|
||||
foreach (KeyValuePair<string, List<ApiType>> methodPair in methodsToGenerate)
|
||||
{
|
||||
string docName = methodPair.Key;
|
||||
@@ -3365,6 +3365,7 @@ public static class Program
|
||||
case "ulong":
|
||||
case "float":
|
||||
case "double":
|
||||
case "char":
|
||||
return true;
|
||||
|
||||
case "nint":
|
||||
|
||||
21
src/Vortice.Dxc.Native/LICENCE-MIT.txt
Normal file
21
src/Vortice.Dxc.Native/LICENCE-MIT.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
43
src/Vortice.Dxc.Native/LICENSE-LLVM.txt
Normal file
43
src/Vortice.Dxc.Native/LICENSE-LLVM.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
==============================================================================
|
||||
LLVM Release License
|
||||
==============================================================================
|
||||
University of Illinois/NCSA
|
||||
Open Source License
|
||||
|
||||
Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
|
||||
All rights reserved.
|
||||
|
||||
Developed by:
|
||||
|
||||
LLVM Team
|
||||
|
||||
University of Illinois at Urbana-Champaign
|
||||
|
||||
http://llvm.org
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal with
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimers.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimers in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the names of the LLVM Team, University of Illinois at
|
||||
Urbana-Champaign, nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this Software without specific
|
||||
prior written permission.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
|
||||
SOFTWARE.
|
||||
158
src/Vortice.Dxc.Native/LICENSE-MS.txt
Normal file
158
src/Vortice.Dxc.Native/LICENSE-MS.txt
Normal file
@@ -0,0 +1,158 @@
|
||||
MICROSOFT SOFTWARE LICENSE TERMS
|
||||
|
||||
MICROSOFT DIRECTX SHADER COMPILER
|
||||
|
||||
These license terms are an agreement between you and Microsoft
|
||||
Corporation (or one of its affiliates). They apply to the software named
|
||||
above and any Microsoft services or software updates (except to the
|
||||
extent such services or updates are accompanied by new or additional
|
||||
terms, in which case those different terms apply prospectively and do
|
||||
not alter your or Microsoft’s rights relating to pre-updated software or
|
||||
services). IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS
|
||||
BELOW. BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS.
|
||||
|
||||
INSTALLATION AND USE RIGHTS.
|
||||
|
||||
General. Subject to the terms of this agreement, you may install and use any number of copies of the software, and solely for use on Windows.
|
||||
|
||||
Included Microsoft Applications. The software may include other Microsoft applications. These license terms apply to those included applications, if any, unless other license terms are provided with the other Microsoft applications.
|
||||
|
||||
Microsoft Platforms. The software may include components from Microsoft Windows. These components are governed by separate agreements and their own product support policies, as described in the license terms found in the installation directory for that component or in the “Licenses” folder accompanying the software.
|
||||
|
||||
Third Party Components. The software may include third party components with separate legal notices or governed by other agreements, as may be described in the ThirdPartyNotices file(s) accompanying the software.
|
||||
|
||||
DATA.
|
||||
|
||||
Data Collection. The software may collect information about you and your use of the software, and send that to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may opt-out of many of these scenarios, but not all, as described in the product documentation. There are also some features in the software that may enable you to collect data from users of your applications. If you use these features to enable data collection in your applications, you must comply with applicable law, including providing appropriate notices to users of your applications. You can learn more about data collection and use in the help documentation and the privacy statement at https://aka.ms/privacy. Your use of the software operates as your consent to these practices.
|
||||
|
||||
Processing of Personal Data. To the extent Microsoft is a processor or subprocessor of personal data in connection with the software, Microsoft makes the commitments in the European Union General Data Protection Regulation Terms of the Online Services Terms to all customers effective May 25, 2018, at https://docs.microsoft.com/en-us/legal/gdpr.
|
||||
|
||||
DISTRIBUTABLE CODE. The software may contain code you are permitted to distribute (i.e. make available for third parties) in applications you develop, as described in this Section.
|
||||
|
||||
Distribution Rights. The code and test files described below are distributable if included with the software.
|
||||
|
||||
Distributables. You may copy and distribute the object code form of the software listed in the distributables file list in the software; and
|
||||
|
||||
Third Party Distribution. You may permit distributors of your applications to copy and distribute any of this distributable code you elect to distribute with your applications.
|
||||
|
||||
Distribution Requirements. For any code you distribute, you must:
|
||||
|
||||
add significant primary functionality to it in your applications;
|
||||
|
||||
i. require distributors and external end users to agree to terms that protect it and Microsoft at least as much as this agreement; and
|
||||
|
||||
ii. indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your applications, except to the extent that any claim is based solely on the unmodified distributable code.
|
||||
|
||||
Distribution Restrictions. You may not:
|
||||
|
||||
use Microsoft’s trademarks or trade dress in your application in any way that suggests your application comes from or is endorsed by Microsoft; or modify or distribute the source code of any distributable code so that any part of it becomes subject to any license that requires that the distributable code, any other part of the software, or any of Microsoft’s other intellectual property be disclosed or distributed in source code form, or that others have the right to modify it.
|
||||
|
||||
SCOPE OF LICENSE. The software is licensed, not sold. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you will not (and have no right to):
|
||||
|
||||
work around any technical limitations in the software that only allow you to use it in certain ways;
|
||||
|
||||
reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software;
|
||||
|
||||
remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software;
|
||||
|
||||
use the software in any way that is against the law or to create or propagate malware; or
|
||||
|
||||
share, publish, distribute, or lease the software (except for any distributable code, subject to the terms above), provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party.
|
||||
|
||||
EXPORT RESTRICTIONS. You must comply with all domestic and international export laws and regulations that apply to the software, which include restrictions on destinations, end users, and end use. For further information on export restrictions, visit https://aka.ms/exporting.
|
||||
|
||||
SUPPORT SERVICES. Microsoft is not obligated under this agreement to provide any support services for the software. Any support provided is “as is”, “with all faults”, and without warranty of any kind.
|
||||
|
||||
UPDATES. The software may periodically check for updates, and download and install them for you. You may obtain updates only from Microsoft or authorized sources. Microsoft may need to update your system to provide you with updates. You agree to receive these automatic updates without any additional notice. Updates may not include or support all existing software features, services, or peripheral devices.
|
||||
|
||||
ENTIRE AGREEMENT. This agreement, and any other terms Microsoft may provide for supplements, updates, or third-party applications, is the entire agreement for the software.
|
||||
|
||||
APPLICABLE LAW AND PLACE TO RESOLVE DISPUTES. If you acquired the software in the United States or Canada, the laws of the state or province where you live (or, if a business, where your principal place of business is located) govern the interpretation of this agreement, claims for its breach, and all other claims (including consumer protection, unfair competition, and tort claims), regardless of conflict of laws principles. If you acquired the software in any other country, its laws apply. If U.S. federal jurisdiction exists, you and Microsoft consent to exclusive jurisdiction and venue in the federal court in King County, Washington for all disputes heard in court. If not, you and Microsoft consent to exclusive jurisdiction and venue in the Superior Court of King County, Washington for all disputes heard in court.
|
||||
|
||||
CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You may have other rights, including consumer rights, under the laws of your state or country. Separate and apart from your relationship with Microsoft, you may also have rights with respect to the party from which you acquired the software. This agreement does not change those other rights if the laws of your state or country do not permit it to do so. For example, if you acquired the software in one of the below regions, or mandatory country law applies, then the following provisions apply to you:
|
||||
|
||||
a. Australia. You have statutory guarantees under the Australian
|
||||
Consumer Law and nothing in this agreement is intended to affect
|
||||
those rights.
|
||||
|
||||
b. Canada. If you acquired this software in Canada, you may stop
|
||||
receiving updates by turning off the automatic update feature,
|
||||
disconnecting your device from the Internet (if and when you
|
||||
re-connect to the Internet, however, the software will resume
|
||||
checking for and installing updates), or uninstalling the software.
|
||||
The product documentation, if any, may also specify how to turn off
|
||||
updates for your specific device or software.
|
||||
|
||||
c. Germany and Austria.
|
||||
|
||||
i. Warranty. The properly licensed software will perform substantially
|
||||
as described in any Microsoft materials that accompany the software.
|
||||
However, Microsoft gives no contractual guarantee in relation to the
|
||||
licensed software.
|
||||
|
||||
ii. Limitation of Liability. In case of intentional conduct, gross
|
||||
negligence, claims based on the Product Liability Act, as well as, in
|
||||
case of death or personal or physical injury, Microsoft is liable
|
||||
according to the statutory law.
|
||||
|
||||
Subject to the foregoing clause ii., Microsoft will only be liable for slight negligence if Microsoft is in breach of such material contractual obligations, the fulfillment of which facilitate the due performance of this agreement, the breach of which would endanger the purpose of this agreement and the compliance with which a party may constantly trust in (so-called "cardinal obligations"). In other cases of slight negligence, Microsoft will not be liable for slight negligence.
|
||||
|
||||
DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS. TO THE EXTENT PERMITTED UNDER APPLICABLE LAWS, MICROSOFT EXCLUDES ALL IMPLIED WARRANTIES, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
||||
|
||||
LIMITATION ON AND EXCLUSION OF DAMAGES. IF YOU HAVE ANY BASIS FOR RECOVERING DAMAGES DESPITE THE PRECEDING DISCLAIMER OF WARRANTY, YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT, OR INCIDENTAL DAMAGES.
|
||||
|
||||
This limitation applies to (a) anything related to the software,
|
||||
services, content (including code) on third party Internet sites, or
|
||||
third party applications; and (b) claims for breach of contract,
|
||||
warranty, guarantee, or condition; strict liability, negligence, or
|
||||
other tort; or any other claim; in each case to the extent permitted by
|
||||
applicable law.
|
||||
|
||||
It also applies even if Microsoft knew or should have known about the
|
||||
possibility of the damages. The above limitation or exclusion may not
|
||||
apply to you because your state, province, or country may not allow the
|
||||
exclusion or limitation of incidental, consequential, or other damages.
|
||||
|
||||
Please note: As this software is distributed in Canada, some of the
|
||||
clauses in this agreement are provided below in French.
|
||||
|
||||
Remarque: Ce logiciel étant distribué au Canada, certaines des clauses
|
||||
dans ce contrat sont fournies ci-dessous en français.
|
||||
|
||||
EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert «
|
||||
tel quel ». Toute utilisation de ce logiciel est à votre seule risque et
|
||||
péril. Microsoft n’accorde aucune autre garantie expresse. Vous pouvez
|
||||
bénéficier de droits additionnels en vertu du droit local sur la
|
||||
protection des consommateurs, que ce contrat ne peut modifier. La ou
|
||||
elles sont permises par le droit locale, les garanties implicites de
|
||||
qualité marchande, d’adéquation à un usage particulier et d’absence de
|
||||
contrefaçon sont exclues.
|
||||
|
||||
LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES
|
||||
DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une
|
||||
indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $
|
||||
US. Vous ne pouvez prétendre à aucune indemnisation pour les autres
|
||||
dommages, y compris les dommages spéciaux, indirects ou accessoires et
|
||||
pertes de bénéfices.
|
||||
|
||||
Cette limitation concerne:
|
||||
|
||||
• tout ce qui est relié au logiciel, aux services ou au contenu (y
|
||||
compris le code) figurant sur des sites Internet tiers ou dans des
|
||||
programmes tiers; et
|
||||
|
||||
• les réclamations au titre de violation de contrat ou de garantie, ou
|
||||
au titre de responsabilité stricte, de négligence ou d’une autre faute
|
||||
dans la limite autorisée par la loi en vigueur.
|
||||
|
||||
Elle s’applique également, même si Microsoft connaissait ou devrait
|
||||
connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas
|
||||
l’exclusion ou la limitation de responsabilité pour les dommages
|
||||
indirects, accessoires ou de quelque nature que ce soit, il se peut que
|
||||
la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre
|
||||
égard.
|
||||
|
||||
EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques.
|
||||
Vous pourriez avoir d’autres droits prévus par les lois de votre pays.
|
||||
Le présent contrat ne modifie pas les droits que vous confèrent les lois
|
||||
de votre pays si celles-ci ne le permettent pas.
|
||||
29
src/Vortice.Dxc.Native/Vortice.Dxc.Native.csproj
Normal file
29
src/Vortice.Dxc.Native/Vortice.Dxc.Native.csproj
Normal file
@@ -0,0 +1,29 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net4.6.1;net8.0</TargetFrameworks>
|
||||
<Description>Dxc native libraries</Description>
|
||||
<PackageVersion>1.0.0</PackageVersion>
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageLicenseExpression></PackageLicenseExpression>
|
||||
<PackageLicenseFile>LICENSE-MS.txt</PackageLicenseFile>
|
||||
<RepositoryUrl>https://github.com/microsoft/DirectXShaderCompiler</RepositoryUrl>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="$(RepoRootDirectory)/README.md" Pack="true" PackagePath="\" />
|
||||
<Content Include="LICENCE-MIT.txt" PackagePath="" />
|
||||
<Content Include="LICENSE-LLVM.txt" PackagePath="" />
|
||||
<Content Include="LICENSE-MS.txt" PackagePath="" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="build\**" PackagePath="build/%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
<Content Include="runtimes\**" PackagePath="runtimes/%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
<Content Include="$(MSBuildThisFileDirectory)_._" PackagePath="lib/net461" />
|
||||
<Content Include="$(MSBuildThisFileDirectory)_._" PackagePath="lib/netstandard2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
0
src/Vortice.Dxc.Native/_._
Normal file
0
src/Vortice.Dxc.Native/_._
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<_Vortice_Dxc_Native_IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</_Vortice_Dxc_Native_IsWindows>
|
||||
<_Vortice_Dxc_Native_NativeRuntime Condition=" '$(_Vortice_Dxc_Native_NativeRuntime)' == '' And '$(_Vortice_Dxc_Native_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'true' Or '$(PlatformTarget)' == 'x86')">win-x86</_Vortice_Dxc_Native_NativeRuntime>
|
||||
<_Vortice_Dxc_Native_NativeRuntime Condition=" '$(_Vortice_Dxc_Native_NativeRuntime)' == '' And '$(_Vortice_Dxc_Native_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">win-x64</_Vortice_Dxc_Native_NativeRuntime>
|
||||
<_Vortice_Dxc_Native_NativeRuntime Condition=" '$(_Vortice_Dxc_Native_NativeRuntime)' == '' And '$(_Vortice_Dxc_Native_IsWindows)' == 'true' And '$(PlatformTarget)' == 'ARM'">win-arm</_Vortice_Dxc_Native_NativeRuntime>
|
||||
<_Vortice_Dxc_Native_NativeRuntime Condition=" '$(_Vortice_Dxc_Native_NativeRuntime)' == '' And '$(_Vortice_Dxc_Native_IsWindows)' == 'true' And '$(PlatformTarget)' == 'ARM64'">win-arm64</_Vortice_Dxc_Native_NativeRuntime>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Content Condition="'$(_Vortice_Dxc_Native_NativeRuntime)' != ''" Include="$(MSBuildThisFileDirectory)..\..\runtimes\$(_Vortice_Dxc_Native_NativeRuntime)\native\dxcompiler.dll">
|
||||
<Link>%(Filename)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
<Content Condition="'$(_Vortice_Dxc_Native_NativeRuntime)' != ''" Include="$(MSBuildThisFileDirectory)..\..\runtimes\$(_Vortice_Dxc_Native_NativeRuntime)\native\dxil.dll">
|
||||
<Link>%(Filename)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -12,54 +12,54 @@ namespace Win32.Graphics.Direct2D;
|
||||
public static unsafe partial class Apis
|
||||
{
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1CreateFactory"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern HResult D2D1CreateFactory(FactoryType factoryType, Guid* riid, FactoryOptions* pFactoryOptions, void** ppIFactory);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial HResult D2D1CreateFactory(FactoryType factoryType, Guid* riid, FactoryOptions* pFactoryOptions, void** ppIFactory);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1MakeRotateMatrix"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern void D2D1MakeRotateMatrix(float angle, Vector2 center, Matrix3x2* matrix);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial void D2D1MakeRotateMatrix(float angle, Vector2 center, Matrix3x2* matrix);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1MakeSkewMatrix"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern void D2D1MakeSkewMatrix(float angleX, float angleY, Vector2 center, Matrix3x2* matrix);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial void D2D1MakeSkewMatrix(float angleX, float angleY, Vector2 center, Matrix3x2* matrix);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1IsMatrixInvertible"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern Bool32 D2D1IsMatrixInvertible(Matrix3x2* matrix);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial Bool32 D2D1IsMatrixInvertible(Matrix3x2* matrix);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1InvertMatrix"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern Bool32 D2D1InvertMatrix(Matrix3x2* matrix);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial Bool32 D2D1InvertMatrix(Matrix3x2* matrix);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1CreateDevice"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern HResult D2D1CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, CreationProperties* creationProperties, ID2D1Device** d2dDevice);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial HResult D2D1CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, CreationProperties* creationProperties, ID2D1Device** d2dDevice);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1CreateDeviceContext"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern HResult D2D1CreateDeviceContext(Graphics.Dxgi.IDXGISurface* dxgiSurface, CreationProperties* creationProperties, ID2D1DeviceContext** d2dDeviceContext);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial HResult D2D1CreateDeviceContext(Graphics.Dxgi.IDXGISurface* dxgiSurface, CreationProperties* creationProperties, ID2D1DeviceContext** d2dDeviceContext);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1ConvertColorSpace"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern Color4 D2D1ConvertColorSpace(ColorSpace sourceColorSpace, ColorSpace destinationColorSpace, Color4* color);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial Color4 D2D1ConvertColorSpace(ColorSpace sourceColorSpace, ColorSpace destinationColorSpace, Color4* color);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1SinCos"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern void D2D1SinCos(float angle, float* s, float* c);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial void D2D1SinCos(float angle, float* s, float* c);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1Tan"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern float D2D1Tan(float angle);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial float D2D1Tan(float angle);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1Vec3Length"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern float D2D1Vec3Length(float x, float y, float z);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial float D2D1Vec3Length(float x, float y, float z);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1ComputeMaximumScaleFactor"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern float D2D1ComputeMaximumScaleFactor(Matrix3x2* matrix);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial float D2D1ComputeMaximumScaleFactor(Matrix3x2* matrix);
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1GetGradientMeshInteriorPointsFromCoonsPatch"]/*' />
|
||||
[DllImport("d2d1.dll", ExactSpelling = true)]
|
||||
public static extern void D2D1GetGradientMeshInteriorPointsFromCoonsPatch(Vector2* pPoint0, Vector2* pPoint1, Vector2* pPoint2, Vector2* pPoint3, Vector2* pPoint4, Vector2* pPoint5, Vector2* pPoint6, Vector2* pPoint7, Vector2* pPoint8, Vector2* pPoint9, Vector2* pPoint10, Vector2* pPoint11, Vector2* pTensorPoint11, Vector2* pTensorPoint12, Vector2* pTensorPoint21, Vector2* pTensorPoint22);
|
||||
[LibraryImport("d2d1.dll")]
|
||||
public static partial void D2D1GetGradientMeshInteriorPointsFromCoonsPatch(Vector2* pPoint0, Vector2* pPoint1, Vector2* pPoint2, Vector2* pPoint3, Vector2* pPoint4, Vector2* pPoint5, Vector2* pPoint6, Vector2* pPoint7, Vector2* pPoint8, Vector2* pPoint9, Vector2* pPoint10, Vector2* pPoint11, Vector2* pTensorPoint11, Vector2* pTensorPoint12, Vector2* pTensorPoint21, Vector2* pTensorPoint22);
|
||||
}
|
||||
|
||||
@@ -487,7 +487,7 @@ public partial struct CreationProperties
|
||||
public partial struct PropertyBinding
|
||||
{
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1_PROPERTY_BINDING::propertyName"]/*' />
|
||||
public unsafe ushort* propertyName;
|
||||
public unsafe char* propertyName;
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="D2D1_PROPERTY_BINDING::setFunction"]/*' />
|
||||
public unsafe delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, HResult> setFunction;
|
||||
|
||||
@@ -532,9 +532,9 @@ public unsafe partial struct ID2D1DeviceContext : ID2D1DeviceContext.Interface,
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1DeviceContext::CreateColorContextFromFilename"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(60)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext*, char*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1DeviceContext::CreateColorContextFromWicColorContext"]/*' />
|
||||
@@ -797,7 +797,7 @@ public unsafe partial struct ID2D1DeviceContext : ID2D1DeviceContext.Interface,
|
||||
HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext);
|
||||
|
||||
[VtblIndex(60)]
|
||||
HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext);
|
||||
HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext);
|
||||
|
||||
[VtblIndex(61)]
|
||||
HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext);
|
||||
|
||||
@@ -532,9 +532,9 @@ public unsafe partial struct ID2D1DeviceContext1 : ID2D1DeviceContext1.Interface
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(60)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext1*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext1*, char*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromWicColorContext" />
|
||||
|
||||
@@ -532,9 +532,9 @@ public unsafe partial struct ID2D1DeviceContext2 : ID2D1DeviceContext2.Interface
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(60)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext2*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext2*, char*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromWicColorContext" />
|
||||
|
||||
@@ -532,9 +532,9 @@ public unsafe partial struct ID2D1DeviceContext3 : ID2D1DeviceContext3.Interface
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(60)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext3*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext3*, char*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromWicColorContext" />
|
||||
|
||||
@@ -532,9 +532,9 @@ public unsafe partial struct ID2D1DeviceContext4 : ID2D1DeviceContext4.Interface
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(60)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext4*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext4*, char*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromWicColorContext" />
|
||||
|
||||
@@ -532,9 +532,9 @@ public unsafe partial struct ID2D1DeviceContext5 : ID2D1DeviceContext5.Interface
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(60)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext5*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext5*, char*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromWicColorContext" />
|
||||
|
||||
@@ -532,9 +532,9 @@ public unsafe partial struct ID2D1DeviceContext6 : ID2D1DeviceContext6.Interface
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(60)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext6*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext6*, char*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromWicColorContext" />
|
||||
|
||||
@@ -532,9 +532,9 @@ public unsafe partial struct ID2D1DeviceContext7 : ID2D1DeviceContext7.Interface
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(60)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext7*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1DeviceContext7*, char*, ID2D1ColorContext**, int>)(lpVtbl[60]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DeviceContext.CreateColorContextFromWicColorContext" />
|
||||
|
||||
@@ -81,9 +81,9 @@ public unsafe partial struct ID2D1Effect : ID2D1Effect.Interface, INativeGuid
|
||||
/// <inheritdoc cref="ID2D1Properties.GetPropertyName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetPropertyName(uint index, char** name, uint nameCount)
|
||||
public HResult GetPropertyName(uint index, char* name, uint nameCount)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Effect*, uint, char**, uint, int>)(lpVtbl[4]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, name, nameCount);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Effect*, uint, char*, uint, int>)(lpVtbl[4]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, name, nameCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Properties.GetPropertyNameLength" />
|
||||
@@ -105,17 +105,17 @@ public unsafe partial struct ID2D1Effect : ID2D1Effect.Interface, INativeGuid
|
||||
/// <inheritdoc cref="ID2D1Properties.GetPropertyIndex" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public uint GetPropertyIndex(ushort* name)
|
||||
public uint GetPropertyIndex(char* name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Effect*, ushort*, uint>)(lpVtbl[7]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Effect*, char*, uint>)(lpVtbl[7]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Properties.SetValueByName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult SetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize)
|
||||
public HResult SetValueByName(char* name, PropertyType type, byte* data, uint dataSize)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Effect*, ushort*, PropertyType, byte*, uint, int>)(lpVtbl[8]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name, type, data, dataSize);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Effect*, char*, PropertyType, byte*, uint, int>)(lpVtbl[8]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name, type, data, dataSize);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Properties.SetValue" />
|
||||
@@ -129,9 +129,9 @@ public unsafe partial struct ID2D1Effect : ID2D1Effect.Interface, INativeGuid
|
||||
/// <inheritdoc cref="ID2D1Properties.GetValueByName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize)
|
||||
public HResult GetValueByName(char* name, PropertyType type, byte* data, uint dataSize)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Effect*, ushort*, PropertyType, byte*, uint, int>)(lpVtbl[10]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name, type, data, dataSize);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Effect*, char*, PropertyType, byte*, uint, int>)(lpVtbl[10]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name, type, data, dataSize);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Properties.GetValue" />
|
||||
|
||||
@@ -209,9 +209,9 @@ public unsafe partial struct ID2D1EffectContext : ID2D1EffectContext.Interface,
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1EffectContext::CreateColorContextFromFilename"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1EffectContext*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[20]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1EffectContext*, char*, ID2D1ColorContext**, int>)(lpVtbl[20]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1EffectContext::CreateColorContextFromWicColorContext"]/*' />
|
||||
@@ -292,7 +292,7 @@ public unsafe partial struct ID2D1EffectContext : ID2D1EffectContext.Interface,
|
||||
HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext);
|
||||
|
||||
[VtblIndex(20)]
|
||||
HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext);
|
||||
HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext);
|
||||
|
||||
[VtblIndex(21)]
|
||||
HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext);
|
||||
|
||||
@@ -209,9 +209,9 @@ public unsafe partial struct ID2D1EffectContext1 : ID2D1EffectContext1.Interface
|
||||
/// <inheritdoc cref="ID2D1EffectContext.CreateColorContextFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1EffectContext1*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[20]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1EffectContext1*, char*, ID2D1ColorContext**, int>)(lpVtbl[20]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1EffectContext.CreateColorContextFromWicColorContext" />
|
||||
|
||||
@@ -209,9 +209,9 @@ public unsafe partial struct ID2D1EffectContext2 : ID2D1EffectContext2.Interface
|
||||
/// <inheritdoc cref="ID2D1EffectContext.CreateColorContextFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext)
|
||||
public HResult CreateColorContextFromFilename(char* filename, ID2D1ColorContext** colorContext)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1EffectContext2*, ushort*, ID2D1ColorContext**, int>)(lpVtbl[20]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1EffectContext2*, char*, ID2D1ColorContext**, int>)(lpVtbl[20]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), filename, colorContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1EffectContext.CreateColorContextFromWicColorContext" />
|
||||
|
||||
@@ -233,9 +233,9 @@ public unsafe partial struct ID2D1Factory1 : ID2D1Factory1.Interface, INativeGui
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Factory1::RegisterEffectFromString"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
public HResult RegisterEffectFromString(Guid* classId, char* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory1*, Guid*, ushort*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory1*, Guid*, char*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Factory1::UnregisterEffect"]/*' />
|
||||
@@ -283,7 +283,7 @@ public unsafe partial struct ID2D1Factory1 : ID2D1Factory1.Interface, INativeGui
|
||||
HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory);
|
||||
|
||||
[VtblIndex(23)]
|
||||
HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory);
|
||||
HResult RegisterEffectFromString(Guid* classId, char* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory);
|
||||
|
||||
[VtblIndex(24)]
|
||||
HResult UnregisterEffect(Guid* classId);
|
||||
|
||||
@@ -233,9 +233,9 @@ public unsafe partial struct ID2D1Factory2 : ID2D1Factory2.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID2D1Factory1.RegisterEffectFromString" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
public HResult RegisterEffectFromString(Guid* classId, char* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory2*, Guid*, ushort*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory2*, Guid*, char*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Factory1.UnregisterEffect" />
|
||||
|
||||
@@ -233,9 +233,9 @@ public unsafe partial struct ID2D1Factory3 : ID2D1Factory3.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID2D1Factory1.RegisterEffectFromString" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
public HResult RegisterEffectFromString(Guid* classId, char* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory3*, Guid*, ushort*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory3*, Guid*, char*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Factory1.UnregisterEffect" />
|
||||
|
||||
@@ -233,9 +233,9 @@ public unsafe partial struct ID2D1Factory4 : ID2D1Factory4.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID2D1Factory1.RegisterEffectFromString" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
public HResult RegisterEffectFromString(Guid* classId, char* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory4*, Guid*, ushort*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory4*, Guid*, char*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Factory1.UnregisterEffect" />
|
||||
|
||||
@@ -233,9 +233,9 @@ public unsafe partial struct ID2D1Factory5 : ID2D1Factory5.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID2D1Factory1.RegisterEffectFromString" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
public HResult RegisterEffectFromString(Guid* classId, char* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory5*, Guid*, ushort*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory5*, Guid*, char*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Factory1.UnregisterEffect" />
|
||||
|
||||
@@ -233,9 +233,9 @@ public unsafe partial struct ID2D1Factory6 : ID2D1Factory6.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID2D1Factory1.RegisterEffectFromString" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
public HResult RegisterEffectFromString(Guid* classId, char* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory6*, Guid*, ushort*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory6*, Guid*, char*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Factory1.UnregisterEffect" />
|
||||
|
||||
@@ -233,9 +233,9 @@ public unsafe partial struct ID2D1Factory7 : ID2D1Factory7.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID2D1Factory1.RegisterEffectFromString" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
public HResult RegisterEffectFromString(Guid* classId, char* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory7*, Guid*, ushort*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory7*, Guid*, char*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Factory1.UnregisterEffect" />
|
||||
|
||||
@@ -233,9 +233,9 @@ public unsafe partial struct ID2D1Factory8 : ID2D1Factory8.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID2D1Factory1.RegisterEffectFromString" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
public HResult RegisterEffectFromString(Guid* classId, char* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall]<IUnknown**, HResult> effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory8*, Guid*, ushort*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Factory8*, Guid*, char*, PropertyBinding*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HResult>, int>)(lpVtbl[23]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Factory1.UnregisterEffect" />
|
||||
|
||||
@@ -81,9 +81,9 @@ public unsafe partial struct ID2D1Properties : ID2D1Properties.Interface, INativ
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Properties::GetPropertyName"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetPropertyName(uint index, char** name, uint nameCount)
|
||||
public HResult GetPropertyName(uint index, char* name, uint nameCount)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Properties*, uint, char**, uint, int>)(lpVtbl[4]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, name, nameCount);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Properties*, uint, char*, uint, int>)(lpVtbl[4]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, name, nameCount);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Properties::GetPropertyNameLength"]/*' />
|
||||
@@ -105,17 +105,17 @@ public unsafe partial struct ID2D1Properties : ID2D1Properties.Interface, INativ
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Properties::GetPropertyIndex"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public uint GetPropertyIndex(ushort* name)
|
||||
public uint GetPropertyIndex(char* name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Properties*, ushort*, uint>)(lpVtbl[7]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Properties*, char*, uint>)(lpVtbl[7]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Properties::SetValueByName"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult SetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize)
|
||||
public HResult SetValueByName(char* name, PropertyType type, byte* data, uint dataSize)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Properties*, ushort*, PropertyType, byte*, uint, int>)(lpVtbl[8]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name, type, data, dataSize);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Properties*, char*, PropertyType, byte*, uint, int>)(lpVtbl[8]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name, type, data, dataSize);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Properties::SetValue"]/*' />
|
||||
@@ -129,9 +129,9 @@ public unsafe partial struct ID2D1Properties : ID2D1Properties.Interface, INativ
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Properties::GetValueByName"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize)
|
||||
public HResult GetValueByName(char* name, PropertyType type, byte* data, uint dataSize)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Properties*, ushort*, PropertyType, byte*, uint, int>)(lpVtbl[10]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name, type, data, dataSize);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1Properties*, char*, PropertyType, byte*, uint, int>)(lpVtbl[10]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name, type, data, dataSize);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Properties::GetValue"]/*' />
|
||||
@@ -164,7 +164,7 @@ public unsafe partial struct ID2D1Properties : ID2D1Properties.Interface, INativ
|
||||
uint GetPropertyCount();
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetPropertyName(uint index, char** name, uint nameCount);
|
||||
HResult GetPropertyName(uint index, char* name, uint nameCount);
|
||||
|
||||
[VtblIndex(5)]
|
||||
uint GetPropertyNameLength(uint index);
|
||||
@@ -173,16 +173,16 @@ public unsafe partial struct ID2D1Properties : ID2D1Properties.Interface, INativ
|
||||
PropertyType GetType(uint index);
|
||||
|
||||
[VtblIndex(7)]
|
||||
uint GetPropertyIndex(ushort* name);
|
||||
uint GetPropertyIndex(char* name);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult SetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize);
|
||||
HResult SetValueByName(char* name, PropertyType type, byte* data, uint dataSize);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult SetValue(uint index, PropertyType type, byte* data, uint dataSize);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult GetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize);
|
||||
HResult GetValueByName(char* name, PropertyType type, byte* data, uint dataSize);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult GetValue(uint index, PropertyType type, byte* data, uint dataSize);
|
||||
|
||||
@@ -114,9 +114,9 @@ public unsafe partial struct ID2D1SvgDocument : ID2D1SvgDocument.Interface, INat
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgDocument::FindElementById"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult FindElementById(ushort* id, ID2D1SvgElement** svgElement)
|
||||
public HResult FindElementById(char* id, ID2D1SvgElement** svgElement)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgDocument*, ushort*, ID2D1SvgElement**, int>)(lpVtbl[8]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), id, svgElement);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgDocument*, char*, ID2D1SvgElement**, int>)(lpVtbl[8]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), id, svgElement);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgDocument::Serialize"]/*' />
|
||||
@@ -138,9 +138,9 @@ public unsafe partial struct ID2D1SvgDocument : ID2D1SvgDocument.Interface, INat
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgDocument::CreatePaint"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreatePaint(SvgPaintType paintType, Color4* color, ushort* id, ID2D1SvgPaint** paint)
|
||||
public HResult CreatePaint(SvgPaintType paintType, Color4* color, char* id, ID2D1SvgPaint** paint)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgDocument*, SvgPaintType, Color4*, ushort*, ID2D1SvgPaint**, int>)(lpVtbl[11]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), paintType, color, id, paint);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgDocument*, SvgPaintType, Color4*, char*, ID2D1SvgPaint**, int>)(lpVtbl[11]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), paintType, color, id, paint);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgDocument::CreateStrokeDashArray"]/*' />
|
||||
@@ -182,7 +182,7 @@ public unsafe partial struct ID2D1SvgDocument : ID2D1SvgDocument.Interface, INat
|
||||
void GetRoot(ID2D1SvgElement** root);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult FindElementById(ushort* id, ID2D1SvgElement** svgElement);
|
||||
HResult FindElementById(char* id, ID2D1SvgElement** svgElement);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult Serialize(Com.IStream* outputXmlStream, ID2D1SvgElement* subtree);
|
||||
@@ -191,7 +191,7 @@ public unsafe partial struct ID2D1SvgDocument : ID2D1SvgDocument.Interface, INat
|
||||
HResult Deserialize(Com.IStream* inputXmlStream, ID2D1SvgElement** subtree);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult CreatePaint(SvgPaintType paintType, Color4* color, ushort* id, ID2D1SvgPaint** paint);
|
||||
HResult CreatePaint(SvgPaintType paintType, Color4* color, char* id, ID2D1SvgPaint** paint);
|
||||
|
||||
[VtblIndex(12)]
|
||||
HResult CreateStrokeDashArray(SvgLength* dashes, uint dashesCount, ID2D1SvgStrokeDashArray** strokeDashArray);
|
||||
|
||||
@@ -89,9 +89,9 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetTagName"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetTagName(char** name, uint nameCount)
|
||||
public HResult GetTagName(char* name, uint nameCount)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char**, uint, int>)(lpVtbl[5]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, uint, int>)(lpVtbl[5]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetTagNameLength"]/*' />
|
||||
@@ -193,17 +193,17 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::CreateChild"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult CreateChild(ushort* tagName, ID2D1SvgElement** newChild)
|
||||
public HResult CreateChild(char* tagName, ID2D1SvgElement** newChild)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, ID2D1SvgElement**, int>)(lpVtbl[18]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), tagName, newChild);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, ID2D1SvgElement**, int>)(lpVtbl[18]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), tagName, newChild);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::IsAttributeSpecified"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public Bool32 IsAttributeSpecified(ushort* name, Bool32* inherited)
|
||||
public Bool32 IsAttributeSpecified(char* name, Bool32* inherited)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, Bool32*, Bool32>)(lpVtbl[19]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, inherited);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, Bool32*, Bool32>)(lpVtbl[19]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, inherited);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetSpecifiedAttributeCount"]/*' />
|
||||
@@ -217,9 +217,9 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetSpecifiedAttributeName"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetSpecifiedAttributeName(uint index, char** name, uint nameCount, Bool32* inherited)
|
||||
public HResult GetSpecifiedAttributeName(uint index, char* name, uint nameCount, Bool32* inherited)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, uint, char**, uint, Bool32*, int>)(lpVtbl[21]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), index, name, nameCount, inherited);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, uint, char*, uint, Bool32*, int>)(lpVtbl[21]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), index, name, nameCount, inherited);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetSpecifiedAttributeNameLength"]/*' />
|
||||
@@ -233,9 +233,9 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::RemoveAttribute"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult RemoveAttribute(ushort* name)
|
||||
public HResult RemoveAttribute(char* name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, int>)(lpVtbl[23]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, int>)(lpVtbl[23]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::SetTextValue"]/*' />
|
||||
@@ -249,9 +249,9 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetTextValue"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult GetTextValue(char** name, uint nameCount)
|
||||
public HResult GetTextValue(char* name, uint nameCount)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char**, uint, int>)(lpVtbl[25]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, uint, int>)(lpVtbl[25]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetTextValueLength"]/*' />
|
||||
@@ -265,57 +265,57 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::SetAttributeValue"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult SetAttributeValue(ushort* name, ID2D1SvgAttribute* value)
|
||||
public HResult SetAttributeValue(char* name, ID2D1SvgAttribute* value)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, ID2D1SvgAttribute*, int>)(lpVtbl[27]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, value);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, ID2D1SvgAttribute*, int>)(lpVtbl[27]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, value);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::SetAttributeValue"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult SetAttributeValue(ushort* name, SvgAttributePodType type, void* value, uint valueSizeInBytes)
|
||||
public HResult SetAttributeValue(char* name, SvgAttributePodType type, void* value, uint valueSizeInBytes)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, SvgAttributePodType, void*, uint, int>)(lpVtbl[28]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueSizeInBytes);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, SvgAttributePodType, void*, uint, int>)(lpVtbl[28]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueSizeInBytes);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::SetAttributeValue"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public HResult SetAttributeValue(ushort* name, SvgAttributeStringType type, ushort* value)
|
||||
public HResult SetAttributeValue(char* name, SvgAttributeStringType type, char* value)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, SvgAttributeStringType, ushort*, int>)(lpVtbl[29]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, SvgAttributeStringType, char*, int>)(lpVtbl[29]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetAttributeValue"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public HResult GetAttributeValue(ushort* name, Guid* riid, void** value)
|
||||
public HResult GetAttributeValue(char* name, Guid* riid, void** value)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, Guid*, void**, int>)(lpVtbl[30]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, riid, value);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, Guid*, void**, int>)(lpVtbl[30]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, riid, value);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetAttributeValue"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public HResult GetAttributeValue(ushort* name, SvgAttributePodType type, void* value, uint valueSizeInBytes)
|
||||
public HResult GetAttributeValue(char* name, SvgAttributePodType type, void* value, uint valueSizeInBytes)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, SvgAttributePodType, void*, uint, int>)(lpVtbl[31]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueSizeInBytes);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, SvgAttributePodType, void*, uint, int>)(lpVtbl[31]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueSizeInBytes);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetAttributeValue"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public HResult GetAttributeValue(ushort* name, SvgAttributeStringType type, char** value, uint valueCount)
|
||||
public HResult GetAttributeValue(char* name, SvgAttributeStringType type, char* value, uint valueCount)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, SvgAttributeStringType, char**, uint, int>)(lpVtbl[32]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueCount);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, SvgAttributeStringType, char*, uint, int>)(lpVtbl[32]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueCount);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgElement::GetAttributeValueLength"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult GetAttributeValueLength(ushort* name, SvgAttributeStringType type, uint* valueLength)
|
||||
public HResult GetAttributeValueLength(char* name, SvgAttributeStringType type, uint* valueLength)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, ushort*, SvgAttributeStringType, uint*, int>)(lpVtbl[33]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, valueLength);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgElement*, char*, SvgAttributeStringType, uint*, int>)(lpVtbl[33]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, valueLength);
|
||||
}
|
||||
|
||||
public interface Interface : ID2D1Resource.Interface
|
||||
@@ -324,7 +324,7 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ
|
||||
void GetDocument(ID2D1SvgDocument** document);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetTagName(char** name, uint nameCount);
|
||||
HResult GetTagName(char* name, uint nameCount);
|
||||
|
||||
[VtblIndex(6)]
|
||||
uint GetTagNameLength();
|
||||
@@ -363,52 +363,52 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ
|
||||
HResult RemoveChild(ID2D1SvgElement* oldChild);
|
||||
|
||||
[VtblIndex(18)]
|
||||
HResult CreateChild(ushort* tagName, ID2D1SvgElement** newChild);
|
||||
HResult CreateChild(char* tagName, ID2D1SvgElement** newChild);
|
||||
|
||||
[VtblIndex(19)]
|
||||
Bool32 IsAttributeSpecified(ushort* name, Bool32* inherited);
|
||||
Bool32 IsAttributeSpecified(char* name, Bool32* inherited);
|
||||
|
||||
[VtblIndex(20)]
|
||||
uint GetSpecifiedAttributeCount();
|
||||
|
||||
[VtblIndex(21)]
|
||||
HResult GetSpecifiedAttributeName(uint index, char** name, uint nameCount, Bool32* inherited);
|
||||
HResult GetSpecifiedAttributeName(uint index, char* name, uint nameCount, Bool32* inherited);
|
||||
|
||||
[VtblIndex(22)]
|
||||
HResult GetSpecifiedAttributeNameLength(uint index, uint* nameLength, Bool32* inherited);
|
||||
|
||||
[VtblIndex(23)]
|
||||
HResult RemoveAttribute(ushort* name);
|
||||
HResult RemoveAttribute(char* name);
|
||||
|
||||
[VtblIndex(24)]
|
||||
HResult SetTextValue(char* name, uint nameCount);
|
||||
|
||||
[VtblIndex(25)]
|
||||
HResult GetTextValue(char** name, uint nameCount);
|
||||
HResult GetTextValue(char* name, uint nameCount);
|
||||
|
||||
[VtblIndex(26)]
|
||||
uint GetTextValueLength();
|
||||
|
||||
[VtblIndex(27)]
|
||||
HResult SetAttributeValue(ushort* name, ID2D1SvgAttribute* value);
|
||||
HResult SetAttributeValue(char* name, ID2D1SvgAttribute* value);
|
||||
|
||||
[VtblIndex(28)]
|
||||
HResult SetAttributeValue(ushort* name, SvgAttributePodType type, void* value, uint valueSizeInBytes);
|
||||
HResult SetAttributeValue(char* name, SvgAttributePodType type, void* value, uint valueSizeInBytes);
|
||||
|
||||
[VtblIndex(29)]
|
||||
HResult SetAttributeValue(ushort* name, SvgAttributeStringType type, ushort* value);
|
||||
HResult SetAttributeValue(char* name, SvgAttributeStringType type, char* value);
|
||||
|
||||
[VtblIndex(30)]
|
||||
HResult GetAttributeValue(ushort* name, Guid* riid, void** value);
|
||||
HResult GetAttributeValue(char* name, Guid* riid, void** value);
|
||||
|
||||
[VtblIndex(31)]
|
||||
HResult GetAttributeValue(ushort* name, SvgAttributePodType type, void* value, uint valueSizeInBytes);
|
||||
HResult GetAttributeValue(char* name, SvgAttributePodType type, void* value, uint valueSizeInBytes);
|
||||
|
||||
[VtblIndex(32)]
|
||||
HResult GetAttributeValue(ushort* name, SvgAttributeStringType type, char** value, uint valueCount);
|
||||
HResult GetAttributeValue(char* name, SvgAttributeStringType type, char* value, uint valueCount);
|
||||
|
||||
[VtblIndex(33)]
|
||||
HResult GetAttributeValueLength(ushort* name, SvgAttributeStringType type, uint* valueLength);
|
||||
HResult GetAttributeValueLength(char* name, SvgAttributeStringType type, uint* valueLength);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -129,17 +129,17 @@ public unsafe partial struct ID2D1SvgPaint : ID2D1SvgPaint.Interface, INativeGui
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgPaint::SetId"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult SetId(ushort* id)
|
||||
public HResult SetId(char* id)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgPaint*, ushort*, int>)(lpVtbl[10]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgPaint*, char*, int>)(lpVtbl[10]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgPaint::GetId"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetId(char** id, uint idCount)
|
||||
public HResult GetId(char* id, uint idCount)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgPaint*, char**, uint, int>)(lpVtbl[11]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id, idCount);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID2D1SvgPaint*, char*, uint, int>)(lpVtbl[11]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id, idCount);
|
||||
}
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1SvgPaint::GetIdLength"]/*' />
|
||||
@@ -165,10 +165,10 @@ public unsafe partial struct ID2D1SvgPaint : ID2D1SvgPaint.Interface, INativeGui
|
||||
void GetColor(Color4** color);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult SetId(ushort* id);
|
||||
HResult SetId(char* id);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult GetId(char** id, uint idCount);
|
||||
HResult GetId(char* id, uint idCount);
|
||||
|
||||
[VtblIndex(12)]
|
||||
uint GetIdLength();
|
||||
|
||||
@@ -73,9 +73,9 @@ public unsafe partial struct IWICImagingFactory2 : IWICImagingFactory2.Interface
|
||||
/// <inheritdoc cref="IWICImagingFactory.CreateDecoderFromFilename" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult CreateDecoderFromFilename(ushort* wzFilename, Guid* pguidVendor, NativeFileAccess dwDesiredAccess, Graphics.Imaging.WICDecodeOptions metadataOptions, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder)
|
||||
public HResult CreateDecoderFromFilename(char* wzFilename, Guid* pguidVendor, NativeFileAccess dwDesiredAccess, Graphics.Imaging.WICDecodeOptions metadataOptions, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IWICImagingFactory2*, ushort*, Guid*, NativeFileAccess, Graphics.Imaging.WICDecodeOptions, Graphics.Imaging.IWICBitmapDecoder**, int>)(lpVtbl[3]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), wzFilename, pguidVendor, dwDesiredAccess, metadataOptions, ppIDecoder);
|
||||
return ((delegate* unmanaged[MemberFunction]<IWICImagingFactory2*, char*, Guid*, NativeFileAccess, Graphics.Imaging.WICDecodeOptions, Graphics.Imaging.IWICBitmapDecoder**, int>)(lpVtbl[3]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), wzFilename, pguidVendor, dwDesiredAccess, metadataOptions, ppIDecoder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IWICImagingFactory.CreateDecoderFromStream" />
|
||||
|
||||
@@ -24,7 +24,7 @@ public static unsafe partial class ID2D1PropertiesExtensions
|
||||
{
|
||||
fixed (T* dataPtr = data)
|
||||
{
|
||||
return self.SetValueByName((ushort*)namePtr, PropertyType.Unknown, (byte*)dataPtr, (uint)(data.Length * sizeof(T)));
|
||||
return self.SetValueByName(namePtr, PropertyType.Unknown, (byte*)dataPtr, (uint)(data.Length * sizeof(T)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,11 +34,11 @@ public static unsafe partial class ID2D1PropertiesExtensions
|
||||
{
|
||||
fixed (char* namePtr = name)
|
||||
{
|
||||
return self.SetValueByName((ushort*)namePtr, PropertyType.Unknown, data, dataSize);
|
||||
return self.SetValueByName(namePtr, PropertyType.Unknown, data, dataSize);
|
||||
}
|
||||
}
|
||||
|
||||
public static HResult SetValueByName<TD2D1Properties>(ref this TD2D1Properties self, ushort* name, byte* data, uint dataSize)
|
||||
public static HResult SetValueByName<TD2D1Properties>(ref this TD2D1Properties self, char* name, byte* data, uint dataSize)
|
||||
where TD2D1Properties : unmanaged, ID2D1Properties.Interface
|
||||
{
|
||||
return self.SetValueByName(name, PropertyType.Unknown, data, dataSize);
|
||||
@@ -49,7 +49,7 @@ public static unsafe partial class ID2D1PropertiesExtensions
|
||||
{
|
||||
fixed (char* namePtr = name)
|
||||
{
|
||||
return self.GetValueByName((ushort*)namePtr, PropertyType.Unknown, data, dataSize);
|
||||
return self.GetValueByName(namePtr, PropertyType.Unknown, data, dataSize);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,12 +61,12 @@ public static unsafe partial class ID2D1PropertiesExtensions
|
||||
{
|
||||
fixed (T* dataPtr = data)
|
||||
{
|
||||
return self.GetValueByName((ushort*)namePtr, PropertyType.Unknown, (byte*)dataPtr, (uint)(data.Length * sizeof(T)));
|
||||
return self.GetValueByName(namePtr, PropertyType.Unknown, (byte*)dataPtr, (uint)(data.Length * sizeof(T)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static HResult GetValueByName<TD2D1Properties>(ref this TD2D1Properties self, ushort* name, byte* data, uint dataSize)
|
||||
public static HResult GetValueByName<TD2D1Properties>(ref this TD2D1Properties self, char* name, byte* data, uint dataSize)
|
||||
where TD2D1Properties : unmanaged, ID2D1Properties.Interface
|
||||
{
|
||||
return self.GetValueByName(name, PropertyType.Unknown, data, dataSize);
|
||||
|
||||
@@ -11,9 +11,9 @@ namespace Win32.Graphics.Direct3D.Dxc;
|
||||
|
||||
public static unsafe partial class Apis
|
||||
{
|
||||
[DllImport("dxcompiler.dll", ExactSpelling = true)]
|
||||
public static extern HResult DxcCreateInstance(Guid* rclsid, Guid* riid, void** ppv);
|
||||
[LibraryImport("dxcompiler.dll")]
|
||||
public static partial HResult DxcCreateInstance(Guid* rclsid, Guid* riid, void** ppv);
|
||||
|
||||
[DllImport("dxcompiler.dll", ExactSpelling = true)]
|
||||
public static extern HResult DxcCreateInstance2(Com.IMalloc* pMalloc, Guid* rclsid, Guid* riid, void** ppv);
|
||||
[LibraryImport("dxcompiler.dll")]
|
||||
public static partial HResult DxcCreateInstance2(Com.IMalloc* pMalloc, Guid* rclsid, Guid* riid, void** ppv);
|
||||
}
|
||||
|
||||
@@ -30,15 +30,15 @@ public partial struct DxcBuffer
|
||||
/// <unmanaged>DxcDefine</unmanaged>
|
||||
public partial struct DxcDefine
|
||||
{
|
||||
public unsafe ushort* Name;
|
||||
public unsafe char* Name;
|
||||
|
||||
public unsafe ushort* Value;
|
||||
public unsafe char* Value;
|
||||
}
|
||||
|
||||
/// <unmanaged>DxcArgPair</unmanaged>
|
||||
public partial struct DxcArgPair
|
||||
{
|
||||
public unsafe ushort* pName;
|
||||
public unsafe char* pName;
|
||||
|
||||
public unsafe ushort* pValue;
|
||||
public unsafe char* pValue;
|
||||
}
|
||||
|
||||
@@ -95,9 +95,10 @@ public unsafe partial struct IDxcBlobUtf16 : IDxcBlobUtf16.Interface, INativeGui
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public ushort* GetStringPointer()
|
||||
public char* GetStringPointer()
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcBlobUtf16*, ushort*>)(lpVtbl[6]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this));
|
||||
char* result;
|
||||
return *((delegate* unmanaged[MemberFunction]<IDxcBlobUtf16*, char**, char**>)(lpVtbl[6]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this), &result);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -110,7 +111,7 @@ public unsafe partial struct IDxcBlobUtf16 : IDxcBlobUtf16.Interface, INativeGui
|
||||
public interface Interface : IDxcBlobEncoding.Interface
|
||||
{
|
||||
[VtblIndex(6)]
|
||||
ushort* GetStringPointer();
|
||||
char* GetStringPointer();
|
||||
|
||||
[VtblIndex(7)]
|
||||
nuint GetStringLength();
|
||||
|
||||
@@ -71,16 +71,16 @@ public unsafe partial struct IDxcCompiler : IDxcCompiler.Interface, INativeGuid
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult Compile(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult)
|
||||
public HResult Compile(IDxcBlob* pSource, char* pSourceName, char* pEntryPoint, char* pTargetProfile, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler*, IDxcBlob*, ushort*, ushort*, ushort*, ushort**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, int>)(lpVtbl[3]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler*, IDxcBlob*, char*, char*, char*, char**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, int>)(lpVtbl[3]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult Preprocess(IDxcBlob* pSource, ushort* pSourceName, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult)
|
||||
public HResult Preprocess(IDxcBlob* pSource, char* pSourceName, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler*, IDxcBlob*, ushort*, ushort**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, int>)(lpVtbl[4]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, pSourceName, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler*, IDxcBlob*, char*, char**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, int>)(lpVtbl[4]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, pSourceName, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -93,10 +93,10 @@ public unsafe partial struct IDxcCompiler : IDxcCompiler.Interface, INativeGuid
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult Compile(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult);
|
||||
HResult Compile(IDxcBlob* pSource, char* pSourceName, char* pEntryPoint, char* pTargetProfile, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult Preprocess(IDxcBlob* pSource, ushort* pSourceName, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult);
|
||||
HResult Preprocess(IDxcBlob* pSource, char* pSourceName, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult Disassemble(IDxcBlob* pSource, IDxcBlobEncoding** ppDisassembly);
|
||||
|
||||
@@ -72,17 +72,17 @@ public unsafe partial struct IDxcCompiler2 : IDxcCompiler2.Interface, INativeGui
|
||||
/// <inheritdoc cref="IDxcCompiler.Compile" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult Compile(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult)
|
||||
public HResult Compile(IDxcBlob* pSource, char* pSourceName, char* pEntryPoint, char* pTargetProfile, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler2*, IDxcBlob*, ushort*, ushort*, ushort*, ushort**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, int>)(lpVtbl[3]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler2*, IDxcBlob*, char*, char*, char*, char**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, int>)(lpVtbl[3]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDxcCompiler.Preprocess" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult Preprocess(IDxcBlob* pSource, ushort* pSourceName, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult)
|
||||
public HResult Preprocess(IDxcBlob* pSource, char* pSourceName, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler2*, IDxcBlob*, ushort*, ushort**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, int>)(lpVtbl[4]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler2*, IDxcBlob*, char*, char**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, int>)(lpVtbl[4]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDxcCompiler.Disassemble" />
|
||||
@@ -95,15 +95,15 @@ public unsafe partial struct IDxcCompiler2 : IDxcCompiler2.Interface, INativeGui
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult CompileWithDebug(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult, ushort** ppDebugBlobName, IDxcBlob** ppDebugBlob)
|
||||
public HResult CompileWithDebug(IDxcBlob* pSource, char* pSourceName, char* pEntryPoint, char* pTargetProfile, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult, char** ppDebugBlobName, IDxcBlob** ppDebugBlob)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler2*, IDxcBlob*, ushort*, ushort*, ushort*, ushort**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, ushort**, IDxcBlob**, int>)(lpVtbl[6]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult, ppDebugBlobName, ppDebugBlob);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler2*, IDxcBlob*, char*, char*, char*, char**, uint, DxcDefine*, uint, IDxcIncludeHandler*, IDxcOperationResult**, char**, IDxcBlob**, int>)(lpVtbl[6]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult, ppDebugBlobName, ppDebugBlob);
|
||||
}
|
||||
|
||||
public interface Interface : IDxcCompiler.Interface
|
||||
{
|
||||
[VtblIndex(6)]
|
||||
HResult CompileWithDebug(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult, ushort** ppDebugBlobName, IDxcBlob** ppDebugBlob);
|
||||
HResult CompileWithDebug(IDxcBlob* pSource, char* pSourceName, char* pEntryPoint, char* pTargetProfile, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult, char** ppDebugBlobName, IDxcBlob** ppDebugBlob);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,9 +71,9 @@ public unsafe partial struct IDxcCompiler3 : IDxcCompiler3.Interface, INativeGui
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult Compile(DxcBuffer* pSource, ushort** pArguments, uint argCount, IDxcIncludeHandler* pIncludeHandler, Guid* riid, void** ppResult)
|
||||
public HResult Compile(DxcBuffer* pSource, char** pArguments, uint argCount, IDxcIncludeHandler* pIncludeHandler, Guid* riid, void** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler3*, DxcBuffer*, ushort**, uint, IDxcIncludeHandler*, Guid*, void**, int>)(lpVtbl[3]))((IDxcCompiler3*)Unsafe.AsPointer(ref this), pSource, pArguments, argCount, pIncludeHandler, riid, ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompiler3*, DxcBuffer*, char**, uint, IDxcIncludeHandler*, Guid*, void**, int>)(lpVtbl[3]))((IDxcCompiler3*)Unsafe.AsPointer(ref this), pSource, pArguments, argCount, pIncludeHandler, riid, ppResult);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -86,7 +86,7 @@ public unsafe partial struct IDxcCompiler3 : IDxcCompiler3.Interface, INativeGui
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult Compile(DxcBuffer* pSource, ushort** pArguments, uint argCount, IDxcIncludeHandler* pIncludeHandler, Guid* riid, void** ppResult);
|
||||
HResult Compile(DxcBuffer* pSource, char** pArguments, uint argCount, IDxcIncludeHandler* pIncludeHandler, Guid* riid, void** ppResult);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult Disassemble(DxcBuffer* pObject, Guid* riid, void** ppResult);
|
||||
|
||||
@@ -71,9 +71,9 @@ public unsafe partial struct IDxcCompilerArgs : IDxcCompilerArgs.Interface, INat
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public ushort** GetArguments()
|
||||
public char** GetArguments()
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompilerArgs*, ushort**>)(lpVtbl[3]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this));
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompilerArgs*, char**>)(lpVtbl[3]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -85,9 +85,9 @@ public unsafe partial struct IDxcCompilerArgs : IDxcCompilerArgs.Interface, INat
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult AddArguments(ushort** pArguments, uint argCount)
|
||||
public HResult AddArguments(char** pArguments, uint argCount)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompilerArgs*, ushort**, uint, int>)(lpVtbl[5]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this), pArguments, argCount);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcCompilerArgs*, char**, uint, int>)(lpVtbl[5]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this), pArguments, argCount);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -107,13 +107,13 @@ public unsafe partial struct IDxcCompilerArgs : IDxcCompilerArgs.Interface, INat
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
ushort** GetArguments();
|
||||
char** GetArguments();
|
||||
|
||||
[VtblIndex(4)]
|
||||
uint GetCount();
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult AddArguments(ushort** pArguments, uint argCount);
|
||||
HResult AddArguments(char** pArguments, uint argCount);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult AddArgumentsUTF8(sbyte** pArguments, uint argCount);
|
||||
|
||||
@@ -71,15 +71,15 @@ public unsafe partial struct IDxcIncludeHandler : IDxcIncludeHandler.Interface,
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult LoadSource(ushort* pFilename, IDxcBlob** ppIncludeSource)
|
||||
public HResult LoadSource(char* pFilename, IDxcBlob** ppIncludeSource)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcIncludeHandler*, ushort*, IDxcBlob**, int>)(lpVtbl[3]))((IDxcIncludeHandler*)Unsafe.AsPointer(ref this), pFilename, ppIncludeSource);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcIncludeHandler*, char*, IDxcBlob**, int>)(lpVtbl[3]))((IDxcIncludeHandler*)Unsafe.AsPointer(ref this), pFilename, ppIncludeSource);
|
||||
}
|
||||
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult LoadSource(ushort* pFilename, IDxcBlob** ppIncludeSource);
|
||||
HResult LoadSource(char* pFilename, IDxcBlob** ppIncludeSource);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -85,9 +85,9 @@ public unsafe partial struct IDxcLibrary : IDxcLibrary.Interface, INativeGuid
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult CreateBlobFromFile(ushort* pFileName, DxcCp* codePage, IDxcBlobEncoding** pBlobEncoding)
|
||||
public HResult CreateBlobFromFile(char* pFileName, DxcCp* codePage, IDxcBlobEncoding** pBlobEncoding)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcLibrary*, ushort*, DxcCp*, IDxcBlobEncoding**, int>)(lpVtbl[5]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pFileName, codePage, pBlobEncoding);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcLibrary*, char*, DxcCp*, IDxcBlobEncoding**, int>)(lpVtbl[5]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pFileName, codePage, pBlobEncoding);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -148,7 +148,7 @@ public unsafe partial struct IDxcLibrary : IDxcLibrary.Interface, INativeGuid
|
||||
HResult CreateBlobFromBlob(IDxcBlob* pBlob, uint offset, uint length, IDxcBlob** ppResult);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult CreateBlobFromFile(ushort* pFileName, DxcCp* codePage, IDxcBlobEncoding** pBlobEncoding);
|
||||
HResult CreateBlobFromFile(char* pFileName, DxcCp* codePage, IDxcBlobEncoding** pBlobEncoding);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult CreateBlobWithEncodingFromPinned(void* pText, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding);
|
||||
|
||||
@@ -71,25 +71,25 @@ public unsafe partial struct IDxcLinker : IDxcLinker.Interface, INativeGuid
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult RegisterLibrary(ushort* pLibName, IDxcBlob* pLib)
|
||||
public HResult RegisterLibrary(char* pLibName, IDxcBlob* pLib)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcLinker*, ushort*, IDxcBlob*, int>)(lpVtbl[3]))((IDxcLinker*)Unsafe.AsPointer(ref this), pLibName, pLib);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcLinker*, char*, IDxcBlob*, int>)(lpVtbl[3]))((IDxcLinker*)Unsafe.AsPointer(ref this), pLibName, pLib);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult Link(ushort* pEntryName, ushort* pTargetProfile, ushort** pLibNames, uint libCount, ushort** pArguments, uint argCount, IDxcOperationResult** ppResult)
|
||||
public HResult Link(char* pEntryName, char* pTargetProfile, char** pLibNames, uint libCount, char** pArguments, uint argCount, IDxcOperationResult** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcLinker*, ushort*, ushort*, ushort**, uint, ushort**, uint, IDxcOperationResult**, int>)(lpVtbl[4]))((IDxcLinker*)Unsafe.AsPointer(ref this), pEntryName, pTargetProfile, pLibNames, libCount, pArguments, argCount, ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcLinker*, char*, char*, char**, uint, char**, uint, IDxcOperationResult**, int>)(lpVtbl[4]))((IDxcLinker*)Unsafe.AsPointer(ref this), pEntryName, pTargetProfile, pLibNames, libCount, pArguments, argCount, ppResult);
|
||||
}
|
||||
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult RegisterLibrary(ushort* pLibName, IDxcBlob* pLib);
|
||||
HResult RegisterLibrary(char* pLibName, IDxcBlob* pLib);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult Link(ushort* pEntryName, ushort* pTargetProfile, ushort** pLibNames, uint libCount, ushort** pArguments, uint argCount, IDxcOperationResult** ppResult);
|
||||
HResult Link(char* pEntryName, char* pTargetProfile, char** pLibNames, uint libCount, char** pArguments, uint argCount, IDxcOperationResult** ppResult);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -85,9 +85,9 @@ public unsafe partial struct IDxcOptimizer : IDxcOptimizer.Interface, INativeGui
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult RunOptimizer(IDxcBlob* pBlob, ushort** ppOptions, uint optionCount, IDxcBlob** pOutputModule, IDxcBlobEncoding** ppOutputText)
|
||||
public HResult RunOptimizer(IDxcBlob* pBlob, char** ppOptions, uint optionCount, IDxcBlob** pOutputModule, IDxcBlobEncoding** ppOutputText)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizer*, IDxcBlob*, ushort**, uint, IDxcBlob**, IDxcBlobEncoding**, int>)(lpVtbl[5]))((IDxcOptimizer*)Unsafe.AsPointer(ref this), pBlob, ppOptions, optionCount, pOutputModule, ppOutputText);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizer*, IDxcBlob*, char**, uint, IDxcBlob**, IDxcBlobEncoding**, int>)(lpVtbl[5]))((IDxcOptimizer*)Unsafe.AsPointer(ref this), pBlob, ppOptions, optionCount, pOutputModule, ppOutputText);
|
||||
}
|
||||
|
||||
public interface Interface : IUnknown.Interface
|
||||
@@ -99,7 +99,7 @@ public unsafe partial struct IDxcOptimizer : IDxcOptimizer.Interface, INativeGui
|
||||
HResult GetAvailablePass(uint index, IDxcOptimizerPass** ppResult);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult RunOptimizer(IDxcBlob* pBlob, ushort** ppOptions, uint optionCount, IDxcBlob** pOutputModule, IDxcBlobEncoding** ppOutputText);
|
||||
HResult RunOptimizer(IDxcBlob* pBlob, char** ppOptions, uint optionCount, IDxcBlob** pOutputModule, IDxcBlobEncoding** ppOutputText);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,16 +71,16 @@ public unsafe partial struct IDxcOptimizerPass : IDxcOptimizerPass.Interface, IN
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetOptionName(ushort** ppResult)
|
||||
public HResult GetOptionName(char** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizerPass*, ushort**, int>)(lpVtbl[3]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizerPass*, char**, int>)(lpVtbl[3]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), ppResult);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetDescription(ushort** ppResult)
|
||||
public HResult GetDescription(char** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizerPass*, ushort**, int>)(lpVtbl[4]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizerPass*, char**, int>)(lpVtbl[4]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), ppResult);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -92,34 +92,34 @@ public unsafe partial struct IDxcOptimizerPass : IDxcOptimizerPass.Interface, IN
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetOptionArgName(uint argIndex, ushort** ppResult)
|
||||
public HResult GetOptionArgName(uint argIndex, char** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizerPass*, uint, ushort**, int>)(lpVtbl[6]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), argIndex, ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizerPass*, uint, char**, int>)(lpVtbl[6]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), argIndex, ppResult);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetOptionArgDescription(uint argIndex, ushort** ppResult)
|
||||
public HResult GetOptionArgDescription(uint argIndex, char** ppResult)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizerPass*, uint, ushort**, int>)(lpVtbl[7]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), argIndex, ppResult);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcOptimizerPass*, uint, char**, int>)(lpVtbl[7]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), argIndex, ppResult);
|
||||
}
|
||||
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult GetOptionName(ushort** ppResult);
|
||||
HResult GetOptionName(char** ppResult);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetDescription(ushort** ppResult);
|
||||
HResult GetDescription(char** ppResult);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetOptionArgCount(uint* pCount);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult GetOptionArgName(uint argIndex, ushort** ppResult);
|
||||
HResult GetOptionArgName(uint argIndex, char** ppResult);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetOptionArgDescription(uint argIndex, ushort** ppResult);
|
||||
HResult GetOptionArgDescription(uint argIndex, char** ppResult);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -232,9 +232,9 @@ public unsafe partial struct IDxcPdbUtils : IDxcPdbUtils.Interface, INativeGuid
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public HResult OverrideRootSignature(ushort* pRootSignature)
|
||||
public HResult OverrideRootSignature(char* pRootSignature)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcPdbUtils*, ushort*, int>)(lpVtbl[26]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pRootSignature);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcPdbUtils*, char*, int>)(lpVtbl[26]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pRootSignature);
|
||||
}
|
||||
|
||||
public interface Interface : IUnknown.Interface
|
||||
@@ -309,7 +309,7 @@ public unsafe partial struct IDxcPdbUtils : IDxcPdbUtils.Interface, INativeGuid
|
||||
HResult OverrideArgs(DxcArgPair* pArgPairs, uint uNumArgPairs);
|
||||
|
||||
[VtblIndex(26)]
|
||||
HResult OverrideRootSignature(ushort* pRootSignature);
|
||||
HResult OverrideRootSignature(char* pRootSignature);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -99,9 +99,9 @@ public unsafe partial struct IDxcUtils : IDxcUtils.Interface, INativeGuid
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult LoadFile(ushort* pFileName, DxcCp* pCodePage, IDxcBlobEncoding** pBlobEncoding)
|
||||
public HResult LoadFile(char* pFileName, DxcCp* pCodePage, IDxcBlobEncoding** pBlobEncoding)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcUtils*, ushort*, DxcCp*, IDxcBlobEncoding**, int>)(lpVtbl[7]))((IDxcUtils*)Unsafe.AsPointer(ref this), pFileName, pCodePage, pBlobEncoding);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcUtils*, char*, DxcCp*, IDxcBlobEncoding**, int>)(lpVtbl[7]))((IDxcUtils*)Unsafe.AsPointer(ref this), pFileName, pCodePage, pBlobEncoding);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -148,9 +148,9 @@ public unsafe partial struct IDxcUtils : IDxcUtils.Interface, INativeGuid
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult BuildArguments(ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcCompilerArgs** ppArgs)
|
||||
public HResult BuildArguments(char* pSourceName, char* pEntryPoint, char* pTargetProfile, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcCompilerArgs** ppArgs)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcUtils*, ushort*, ushort*, ushort*, ushort**, uint, DxcDefine*, uint, IDxcCompilerArgs**, int>)(lpVtbl[14]))((IDxcUtils*)Unsafe.AsPointer(ref this), pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, ppArgs);
|
||||
return ((delegate* unmanaged[MemberFunction]<IDxcUtils*, char*, char*, char*, char**, uint, DxcDefine*, uint, IDxcCompilerArgs**, int>)(lpVtbl[14]))((IDxcUtils*)Unsafe.AsPointer(ref this), pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, ppArgs);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -175,7 +175,7 @@ public unsafe partial struct IDxcUtils : IDxcUtils.Interface, INativeGuid
|
||||
HResult CreateBlob(void* pData, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult LoadFile(ushort* pFileName, DxcCp* pCodePage, IDxcBlobEncoding** pBlobEncoding);
|
||||
HResult LoadFile(char* pFileName, DxcCp* pCodePage, IDxcBlobEncoding** pBlobEncoding);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult CreateReadOnlyStreamFromBlob(IDxcBlob* pBlob, Com.IStream** ppStream);
|
||||
@@ -196,7 +196,7 @@ public unsafe partial struct IDxcUtils : IDxcUtils.Interface, INativeGuid
|
||||
HResult CreateReflection(DxcBuffer* pData, Guid* iid, void** ppvReflection);
|
||||
|
||||
[VtblIndex(14)]
|
||||
HResult BuildArguments(ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcCompilerArgs** ppArgs);
|
||||
HResult BuildArguments(char* pSourceName, char* pEntryPoint, char* pTargetProfile, char** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcCompilerArgs** ppArgs);
|
||||
|
||||
[VtblIndex(15)]
|
||||
HResult GetPDBContents(IDxcBlob* pPDBBlob, IDxcBlob** ppHash, IDxcBlob** ppContainer);
|
||||
|
||||
@@ -7,10 +7,6 @@
|
||||
<NoWarn>$(NoWarn);CS0419;IDE0017</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="runtimes\**" PackagePath="runtimes" Pack="true" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="System.Numerics" />
|
||||
<Using Include="System.Diagnostics" />
|
||||
|
||||
@@ -12,86 +12,86 @@ namespace Win32.Graphics.Direct3D.Fxc;
|
||||
public static unsafe partial class Apis
|
||||
{
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DReadFileToBlob"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DReadFileToBlob(ushort* pFileName, Graphics.Direct3D.ID3DBlob** ppContents);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DReadFileToBlob(char* pFileName, Graphics.Direct3D.ID3DBlob** ppContents);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DWriteBlobToFile"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DWriteBlobToFile(Graphics.Direct3D.ID3DBlob* pBlob, ushort* pFileName, Bool32 bOverwrite);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DWriteBlobToFile(Graphics.Direct3D.ID3DBlob* pBlob, char* pFileName, Bool32 bOverwrite);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DCompile"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DCompile(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DCompile(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DCompile2"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DCompile2(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, uint SecondaryDataFlags, void* pSecondaryData, nuint SecondaryDataSize, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DCompile2(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, uint SecondaryDataFlags, void* pSecondaryData, nuint SecondaryDataSize, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DCompileFromFile"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DCompileFromFile(ushort* pFileName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DCompileFromFile(char* pFileName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DPreprocess"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DPreprocess(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, Graphics.Direct3D.ID3DBlob** ppCodeText, Graphics.Direct3D.ID3DBlob** ppErrorMsgs);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DPreprocess(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, Graphics.Direct3D.ID3DBlob** ppCodeText, Graphics.Direct3D.ID3DBlob** ppErrorMsgs);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DGetDebugInfo"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DGetDebugInfo(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppDebugInfo);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DGetDebugInfo(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppDebugInfo);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DReflect"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DReflect(void* pSrcData, nuint SrcDataSize, Guid* pInterface, void** ppReflector);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DReflect(void* pSrcData, nuint SrcDataSize, Guid* pInterface, void** ppReflector);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DReflectLibrary"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DReflectLibrary(void* pSrcData, nuint SrcDataSize, Guid* riid, void** ppReflector);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DReflectLibrary(void* pSrcData, nuint SrcDataSize, Guid* riid, void** ppReflector);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DDisassemble"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DDisassemble(void* pSrcData, nuint SrcDataSize, DisasmFlags Flags, sbyte* szComments, Graphics.Direct3D.ID3DBlob** ppDisassembly);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DDisassemble(void* pSrcData, nuint SrcDataSize, DisasmFlags Flags, sbyte* szComments, Graphics.Direct3D.ID3DBlob** ppDisassembly);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DDisassembleRegion"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DDisassembleRegion(void* pSrcData, nuint SrcDataSize, uint Flags, sbyte* szComments, nuint StartByteOffset, nuint NumInsts, nuint* pFinishByteOffset, Graphics.Direct3D.ID3DBlob** ppDisassembly);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DDisassembleRegion(void* pSrcData, nuint SrcDataSize, uint Flags, sbyte* szComments, nuint StartByteOffset, nuint NumInsts, nuint* pFinishByteOffset, Graphics.Direct3D.ID3DBlob** ppDisassembly);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DGetTraceInstructionOffsets"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DGetTraceInstructionOffsets(void* pSrcData, nuint SrcDataSize, uint Flags, nuint StartInstIndex, nuint NumInsts, nuint* pOffsets, nuint* pTotalInsts);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DGetTraceInstructionOffsets(void* pSrcData, nuint SrcDataSize, uint Flags, nuint StartInstIndex, nuint NumInsts, nuint* pOffsets, nuint* pTotalInsts);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DGetInputSignatureBlob"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DGetInputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DGetInputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DGetOutputSignatureBlob"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DGetOutputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DGetOutputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DGetInputAndOutputSignatureBlob"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DGetInputAndOutputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DGetInputAndOutputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DStripShader"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DStripShader(void* pShaderBytecode, nuint BytecodeLength, uint uStripFlags, Graphics.Direct3D.ID3DBlob** ppStrippedBlob);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DStripShader(void* pShaderBytecode, nuint BytecodeLength, uint uStripFlags, Graphics.Direct3D.ID3DBlob** ppStrippedBlob);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DGetBlobPart"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DGetBlobPart(void* pSrcData, nuint SrcDataSize, BlobPart Part, uint Flags, Graphics.Direct3D.ID3DBlob** ppPart);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DGetBlobPart(void* pSrcData, nuint SrcDataSize, BlobPart Part, uint Flags, Graphics.Direct3D.ID3DBlob** ppPart);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DSetBlobPart"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DSetBlobPart(void* pSrcData, nuint SrcDataSize, BlobPart Part, uint Flags, void* pPart, nuint PartSize, Graphics.Direct3D.ID3DBlob** ppNewShader);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DSetBlobPart(void* pSrcData, nuint SrcDataSize, BlobPart Part, uint Flags, void* pPart, nuint PartSize, Graphics.Direct3D.ID3DBlob** ppNewShader);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DCreateBlob"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DCreateBlob(nuint Size, Graphics.Direct3D.ID3DBlob** ppBlob);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DCreateBlob(nuint Size, Graphics.Direct3D.ID3DBlob** ppBlob);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DCompressShaders"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DCompressShaders(uint uNumShaders, ShaderData* pShaderData, CompressShaderFlags uFlags, Graphics.Direct3D.ID3DBlob** ppCompressedData);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DCompressShaders(uint uNumShaders, ShaderData* pShaderData, CompressShaderFlags uFlags, Graphics.Direct3D.ID3DBlob** ppCompressedData);
|
||||
|
||||
/// <include file='../../Vortice.Win32/Generated/Graphics/Direct3D.xml' path='doc/member[@name="D3DDecompressShaders"]/*' />
|
||||
[DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3DDecompressShaders(void* pSrcData, nuint SrcDataSize, uint uNumShaders, uint uStartIndex, uint* pIndices, uint uFlags, Graphics.Direct3D.ID3DBlob** ppShaders, uint* pTotalShaders);
|
||||
[LibraryImport("D3DCOMPILER_47.dll")]
|
||||
public static partial HResult D3DDecompressShaders(void* pSrcData, nuint SrcDataSize, uint uNumShaders, uint uStartIndex, uint* pIndices, uint uFlags, Graphics.Direct3D.ID3DBlob** ppShaders, uint* pTotalShaders);
|
||||
}
|
||||
|
||||
@@ -12,10 +12,10 @@ namespace Win32.Graphics.Direct3D11;
|
||||
public static unsafe partial class Apis
|
||||
{
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="D3D11CreateDevice"]/*' />
|
||||
[DllImport("d3d11.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D11CreateDevice(Graphics.Dxgi.IDXGIAdapter* pAdapter, Graphics.Direct3D.DriverType DriverType, nint Software, CreateDeviceFlags Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, ID3D11Device** ppDevice, Graphics.Direct3D.FeatureLevel* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext);
|
||||
[LibraryImport("d3d11.dll")]
|
||||
public static partial HResult D3D11CreateDevice(Graphics.Dxgi.IDXGIAdapter* pAdapter, Graphics.Direct3D.DriverType DriverType, nint Software, CreateDeviceFlags Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, ID3D11Device** ppDevice, Graphics.Direct3D.FeatureLevel* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext);
|
||||
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="D3D11CreateDeviceAndSwapChain"]/*' />
|
||||
[DllImport("d3d11.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D11CreateDeviceAndSwapChain(Graphics.Dxgi.IDXGIAdapter* pAdapter, Graphics.Direct3D.DriverType DriverType, nint Software, CreateDeviceFlags Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Graphics.Dxgi.SwapChainDescription* pSwapChainDesc, Graphics.Dxgi.IDXGISwapChain** ppSwapChain, ID3D11Device** ppDevice, Graphics.Direct3D.FeatureLevel* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext);
|
||||
[LibraryImport("d3d11.dll")]
|
||||
public static partial HResult D3D11CreateDeviceAndSwapChain(Graphics.Dxgi.IDXGIAdapter* pAdapter, Graphics.Direct3D.DriverType DriverType, nint Software, CreateDeviceFlags Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Graphics.Dxgi.SwapChainDescription* pSwapChainDesc, Graphics.Dxgi.IDXGISwapChain** ppSwapChain, ID3D11Device** ppDevice, Graphics.Direct3D.FeatureLevel* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext);
|
||||
}
|
||||
|
||||
@@ -441,9 +441,9 @@ public unsafe partial struct ID3D11Device1 : ID3D11Device1.Interface, INativeGui
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11Device1::OpenSharedResourceByName"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
public HResult OpenSharedResourceByName(char* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device1*, ushort*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device1*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device1*, char*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device1*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
}
|
||||
|
||||
public interface Interface : ID3D11Device.Interface
|
||||
@@ -467,7 +467,7 @@ public unsafe partial struct ID3D11Device1 : ID3D11Device1.Interface, INativeGui
|
||||
HResult OpenSharedResource1(Handle hResource, Guid* returnedInterface, void** ppResource);
|
||||
|
||||
[VtblIndex(49)]
|
||||
HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource);
|
||||
HResult OpenSharedResourceByName(char* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -441,9 +441,9 @@ public unsafe partial struct ID3D11Device2 : ID3D11Device2.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID3D11Device1.OpenSharedResourceByName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
public HResult OpenSharedResourceByName(char* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device2*, ushort*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device2*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device2*, char*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device2*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11Device2::GetImmediateContext2"]/*' />
|
||||
|
||||
@@ -441,9 +441,9 @@ public unsafe partial struct ID3D11Device3 : ID3D11Device3.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID3D11Device1.OpenSharedResourceByName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
public HResult OpenSharedResourceByName(char* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device3*, ushort*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device3*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device3*, char*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device3*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D11Device2.GetImmediateContext2" />
|
||||
|
||||
@@ -441,9 +441,9 @@ public unsafe partial struct ID3D11Device4 : ID3D11Device4.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID3D11Device1.OpenSharedResourceByName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
public HResult OpenSharedResourceByName(char* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device4*, ushort*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device4*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device4*, char*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device4*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D11Device2.GetImmediateContext2" />
|
||||
|
||||
@@ -441,9 +441,9 @@ public unsafe partial struct ID3D11Device5 : ID3D11Device5.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID3D11Device1.OpenSharedResourceByName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
public HResult OpenSharedResourceByName(char* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device5*, ushort*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device5*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Device5*, char*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device5*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D11Device2.GetImmediateContext2" />
|
||||
|
||||
@@ -1177,17 +1177,17 @@ public unsafe partial struct ID3D11DeviceContext2 : ID3D11DeviceContext2.Interfa
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11DeviceContext2::SetMarkerInt"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(141)]
|
||||
public void SetMarkerInt(ushort* pLabel, int Data)
|
||||
public void SetMarkerInt(char* pLabel, int Data)
|
||||
{
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext2*, ushort*, int, void>)(lpVtbl[141]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext2*, char*, int, void>)(lpVtbl[141]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11DeviceContext2::BeginEventInt"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(142)]
|
||||
public void BeginEventInt(ushort* pLabel, int Data)
|
||||
public void BeginEventInt(char* pLabel, int Data)
|
||||
{
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext2*, ushort*, int, void>)(lpVtbl[142]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext2*, char*, int, void>)(lpVtbl[142]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11DeviceContext2::EndEvent"]/*' />
|
||||
@@ -1222,10 +1222,10 @@ public unsafe partial struct ID3D11DeviceContext2 : ID3D11DeviceContext2.Interfa
|
||||
Bool32 IsAnnotationEnabled();
|
||||
|
||||
[VtblIndex(141)]
|
||||
void SetMarkerInt(ushort* pLabel, int Data);
|
||||
void SetMarkerInt(char* pLabel, int Data);
|
||||
|
||||
[VtblIndex(142)]
|
||||
void BeginEventInt(ushort* pLabel, int Data);
|
||||
void BeginEventInt(char* pLabel, int Data);
|
||||
|
||||
[VtblIndex(143)]
|
||||
void EndEvent();
|
||||
|
||||
@@ -1177,17 +1177,17 @@ public unsafe partial struct ID3D11DeviceContext3 : ID3D11DeviceContext3.Interfa
|
||||
/// <inheritdoc cref="ID3D11DeviceContext2.SetMarkerInt" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(141)]
|
||||
public void SetMarkerInt(ushort* pLabel, int Data)
|
||||
public void SetMarkerInt(char* pLabel, int Data)
|
||||
{
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext3*, ushort*, int, void>)(lpVtbl[141]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext3*, char*, int, void>)(lpVtbl[141]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D11DeviceContext2.BeginEventInt" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(142)]
|
||||
public void BeginEventInt(ushort* pLabel, int Data)
|
||||
public void BeginEventInt(char* pLabel, int Data)
|
||||
{
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext3*, ushort*, int, void>)(lpVtbl[142]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext3*, char*, int, void>)(lpVtbl[142]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D11DeviceContext2.EndEvent" />
|
||||
|
||||
@@ -1177,17 +1177,17 @@ public unsafe partial struct ID3D11DeviceContext4 : ID3D11DeviceContext4.Interfa
|
||||
/// <inheritdoc cref="ID3D11DeviceContext2.SetMarkerInt" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(141)]
|
||||
public void SetMarkerInt(ushort* pLabel, int Data)
|
||||
public void SetMarkerInt(char* pLabel, int Data)
|
||||
{
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext4*, ushort*, int, void>)(lpVtbl[141]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext4*, char*, int, void>)(lpVtbl[141]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D11DeviceContext2.BeginEventInt" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(142)]
|
||||
public void BeginEventInt(ushort* pLabel, int Data)
|
||||
public void BeginEventInt(char* pLabel, int Data)
|
||||
{
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext4*, ushort*, int, void>)(lpVtbl[142]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
((delegate* unmanaged[MemberFunction]<ID3D11DeviceContext4*, char*, int, void>)(lpVtbl[142]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pLabel, Data);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D11DeviceContext2.EndEvent" />
|
||||
|
||||
@@ -105,9 +105,9 @@ public unsafe partial struct ID3D11Fence : ID3D11Fence.Interface, INativeGuid
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11Fence::CreateSharedHandle"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateSharedHandle(Security.SECURITY_ATTRIBUTES* pAttributes, uint dwAccess, ushort* lpName, Handle* pHandle)
|
||||
public HResult CreateSharedHandle(Security.SECURITY_ATTRIBUTES* pAttributes, uint dwAccess, char* lpName, Handle* pHandle)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Fence*, Security.SECURITY_ATTRIBUTES*, uint, ushort*, Handle*, int>)(lpVtbl[7]))((ID3D11Fence*)Unsafe.AsPointer(ref this), pAttributes, dwAccess, lpName, pHandle);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D11Fence*, Security.SECURITY_ATTRIBUTES*, uint, char*, Handle*, int>)(lpVtbl[7]))((ID3D11Fence*)Unsafe.AsPointer(ref this), pAttributes, dwAccess, lpName, pHandle);
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11Fence::GetCompletedValue"]/*' />
|
||||
@@ -129,7 +129,7 @@ public unsafe partial struct ID3D11Fence : ID3D11Fence.Interface, INativeGuid
|
||||
public interface Interface : ID3D11DeviceChild.Interface
|
||||
{
|
||||
[VtblIndex(7)]
|
||||
HResult CreateSharedHandle(Security.SECURITY_ATTRIBUTES* pAttributes, uint dwAccess, ushort* lpName, Handle* pHandle);
|
||||
HResult CreateSharedHandle(Security.SECURITY_ATTRIBUTES* pAttributes, uint dwAccess, char* lpName, Handle* pHandle);
|
||||
|
||||
[VtblIndex(8)]
|
||||
ulong GetCompletedValue();
|
||||
|
||||
@@ -73,9 +73,9 @@ public unsafe partial struct ID3DUserDefinedAnnotation : ID3DUserDefinedAnnotati
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3DUserDefinedAnnotation::BeginEvent"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public int BeginEvent(ushort* Name)
|
||||
public int BeginEvent(char* Name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3DUserDefinedAnnotation*, ushort*, int>)(lpVtbl[3]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this), Name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3DUserDefinedAnnotation*, char*, int>)(lpVtbl[3]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3DUserDefinedAnnotation::EndEvent"]/*' />
|
||||
@@ -89,9 +89,9 @@ public unsafe partial struct ID3DUserDefinedAnnotation : ID3DUserDefinedAnnotati
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3DUserDefinedAnnotation::SetMarker"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public void SetMarker(ushort* Name)
|
||||
public void SetMarker(char* Name)
|
||||
{
|
||||
((delegate* unmanaged[MemberFunction]<ID3DUserDefinedAnnotation*, ushort*, void>)(lpVtbl[5]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this), Name);
|
||||
((delegate* unmanaged[MemberFunction]<ID3DUserDefinedAnnotation*, char*, void>)(lpVtbl[5]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3DUserDefinedAnnotation::GetStatus"]/*' />
|
||||
@@ -105,13 +105,13 @@ public unsafe partial struct ID3DUserDefinedAnnotation : ID3DUserDefinedAnnotati
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
int BeginEvent(ushort* Name);
|
||||
int BeginEvent(char* Name);
|
||||
|
||||
[VtblIndex(4)]
|
||||
int EndEvent();
|
||||
|
||||
[VtblIndex(5)]
|
||||
void SetMarker(ushort* Name);
|
||||
void SetMarker(char* Name);
|
||||
|
||||
[VtblIndex(6)]
|
||||
Bool32 GetStatus();
|
||||
|
||||
@@ -9,7 +9,7 @@ unsafe partial struct ID3DUserDefinedAnnotation
|
||||
{
|
||||
fixed (char* namePtr = name)
|
||||
{
|
||||
return BeginEvent((ushort*)namePtr);
|
||||
return BeginEvent(namePtr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ unsafe partial struct ID3DUserDefinedAnnotation
|
||||
{
|
||||
fixed (char* namePtr = name)
|
||||
{
|
||||
return BeginEvent((ushort*)namePtr);
|
||||
return BeginEvent(namePtr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ unsafe partial struct ID3DUserDefinedAnnotation
|
||||
{
|
||||
fixed (char* namePtr = name)
|
||||
{
|
||||
SetMarker((ushort*)namePtr);
|
||||
SetMarker(namePtr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ unsafe partial struct ID3DUserDefinedAnnotation
|
||||
{
|
||||
fixed (char* namePtr = name)
|
||||
{
|
||||
SetMarker((ushort*)namePtr);
|
||||
SetMarker(namePtr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,6 @@ namespace Win32.Graphics.Direct3D11on12;
|
||||
public static unsafe partial class Apis
|
||||
{
|
||||
/// <include file='../../Vortice.Win32.Graphics.Direct3D11/Direct3D11.xml' path='doc/member[@name="D3D11On12CreateDevice"]/*' />
|
||||
[DllImport("d3d11.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D11On12CreateDevice(IUnknown* pDevice, Graphics.Direct3D11.CreateDeviceFlags Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, IUnknown** ppCommandQueues, uint NumQueues, uint NodeMask, Graphics.Direct3D11.ID3D11Device** ppDevice, Graphics.Direct3D11.ID3D11DeviceContext** ppImmediateContext, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel);
|
||||
[LibraryImport("d3d11.dll")]
|
||||
public static partial HResult D3D11On12CreateDevice(IUnknown* pDevice, Graphics.Direct3D11.CreateDeviceFlags Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, IUnknown** ppCommandQueues, uint NumQueues, uint NodeMask, Graphics.Direct3D11.ID3D11Device** ppDevice, Graphics.Direct3D11.ID3D11DeviceContext** ppImmediateContext, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// Ported from d3dx12.h in DirectX-Graphics-Samples commit a7a87f1853b5540f10920518021d91ae641033fb
|
||||
// Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT).
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using Win32.Graphics.Direct3D;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
namespace Win32.Graphics.Direct3D12;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
namespace Win32.Graphics.Direct3D12;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using static Win32.Graphics.Direct3D12.Apis;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
namespace Win32.Graphics.Direct3D12;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using Win32.Graphics.Dxgi.Common;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using static Win32.Graphics.Direct3D12.Apis;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
namespace Win32.Graphics.Direct3D12;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using static Win32.Graphics.Direct3D12.Apis;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using static Win32.Graphics.Direct3D12.Apis;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
namespace Win32.Graphics.Direct3D12;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
namespace Win32.Graphics.Direct3D12;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using Win32.Graphics.Dxgi.Common;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using static Win32.Graphics.Direct3D12.Apis;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using static Win32.Graphics.Direct3D12.Apis;
|
||||
|
||||
@@ -12,34 +12,34 @@ namespace Win32.Graphics.Direct3D12;
|
||||
public static unsafe partial class Apis
|
||||
{
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12SerializeRootSignature"]/*' />
|
||||
[DllImport("d3d12.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D12SerializeRootSignature(RootSignatureDescription* pRootSignature, RootSignatureVersion Version, Graphics.Direct3D.ID3DBlob** ppBlob, Graphics.Direct3D.ID3DBlob** ppErrorBlob);
|
||||
[LibraryImport("d3d12.dll")]
|
||||
public static partial HResult D3D12SerializeRootSignature(RootSignatureDescription* pRootSignature, RootSignatureVersion Version, Graphics.Direct3D.ID3DBlob** ppBlob, Graphics.Direct3D.ID3DBlob** ppErrorBlob);
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12CreateRootSignatureDeserializer"]/*' />
|
||||
[DllImport("d3d12.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D12CreateRootSignatureDeserializer(void* pSrcData, nuint SrcDataSizeInBytes, Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer);
|
||||
[LibraryImport("d3d12.dll")]
|
||||
public static partial HResult D3D12CreateRootSignatureDeserializer(void* pSrcData, nuint SrcDataSizeInBytes, Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer);
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12SerializeVersionedRootSignature"]/*' />
|
||||
[DllImport("d3d12.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D12SerializeVersionedRootSignature(VersionedRootSignatureDescription* pRootSignature, Graphics.Direct3D.ID3DBlob** ppBlob, Graphics.Direct3D.ID3DBlob** ppErrorBlob);
|
||||
[LibraryImport("d3d12.dll")]
|
||||
public static partial HResult D3D12SerializeVersionedRootSignature(VersionedRootSignatureDescription* pRootSignature, Graphics.Direct3D.ID3DBlob** ppBlob, Graphics.Direct3D.ID3DBlob** ppErrorBlob);
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12CreateVersionedRootSignatureDeserializer"]/*' />
|
||||
[DllImport("d3d12.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D12CreateVersionedRootSignatureDeserializer(void* pSrcData, nuint SrcDataSizeInBytes, Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer);
|
||||
[LibraryImport("d3d12.dll")]
|
||||
public static partial HResult D3D12CreateVersionedRootSignatureDeserializer(void* pSrcData, nuint SrcDataSizeInBytes, Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer);
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12CreateDevice"]/*' />
|
||||
[DllImport("d3d12.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D12CreateDevice(IUnknown* pAdapter, Graphics.Direct3D.FeatureLevel MinimumFeatureLevel, Guid* riid, void** ppDevice);
|
||||
[LibraryImport("d3d12.dll")]
|
||||
public static partial HResult D3D12CreateDevice(IUnknown* pAdapter, Graphics.Direct3D.FeatureLevel MinimumFeatureLevel, Guid* riid, void** ppDevice);
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12GetDebugInterface"]/*' />
|
||||
[DllImport("d3d12.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D12GetDebugInterface(Guid* riid, void** ppvDebug);
|
||||
[LibraryImport("d3d12.dll")]
|
||||
public static partial HResult D3D12GetDebugInterface(Guid* riid, void** ppvDebug);
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12EnableExperimentalFeatures"]/*' />
|
||||
[DllImport("d3d12.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D12EnableExperimentalFeatures(uint NumFeatures, Guid* pIIDs, void* pConfigurationStructs, uint* pConfigurationStructSizes);
|
||||
[LibraryImport("d3d12.dll")]
|
||||
public static partial HResult D3D12EnableExperimentalFeatures(uint NumFeatures, Guid* pIIDs, void* pConfigurationStructs, uint* pConfigurationStructSizes);
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12GetInterface"]/*' />
|
||||
[DllImport("d3d12.dll", ExactSpelling = true)]
|
||||
public static extern HResult D3D12GetInterface(Guid* rclsid, Guid* riid, void** ppvDebug);
|
||||
[LibraryImport("d3d12.dll")]
|
||||
public static partial HResult D3D12GetInterface(Guid* rclsid, Guid* riid, void** ppvDebug);
|
||||
}
|
||||
|
||||
@@ -3747,7 +3747,7 @@ public partial struct ProtectedResourceSessionDescription
|
||||
public partial struct MetaCommandParameterDescription
|
||||
{
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_META_COMMAND_PARAMETER_DESC::Name"]/*' />
|
||||
public unsafe ushort* Name;
|
||||
public unsafe char* Name;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_META_COMMAND_PARAMETER_DESC::Type"]/*' />
|
||||
public MetaCommandParameterType Type;
|
||||
@@ -3770,7 +3770,7 @@ public partial struct MetaCommandDescription
|
||||
public Guid Id;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_META_COMMAND_DESC::Name"]/*' />
|
||||
public unsafe ushort* Name;
|
||||
public unsafe char* Name;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_META_COMMAND_DESC::InitializationDirtyState"]/*' />
|
||||
public GraphicsStates InitializationDirtyState;
|
||||
@@ -3792,7 +3792,7 @@ public partial struct ProgramIdentifier
|
||||
public partial struct NodeId
|
||||
{
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_NODE_ID::Name"]/*' />
|
||||
public unsafe ushort* Name;
|
||||
public unsafe char* Name;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_NODE_ID::ArrayIndex"]/*' />
|
||||
public uint ArrayIndex;
|
||||
@@ -3892,10 +3892,10 @@ public partial struct DepthStencilFormat
|
||||
public partial struct ExportDescription
|
||||
{
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_EXPORT_DESC::Name"]/*' />
|
||||
public unsafe ushort* Name;
|
||||
public unsafe char* Name;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_EXPORT_DESC::ExportToRename"]/*' />
|
||||
public unsafe ushort* ExportToRename;
|
||||
public unsafe char* ExportToRename;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_EXPORT_DESC::Flags"]/*' />
|
||||
public ExportFlags Flags;
|
||||
@@ -3940,7 +3940,7 @@ public partial struct SubObjectToExportsAssociation
|
||||
public uint NumExports;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION::pExports"]/*' />
|
||||
public unsafe ushort** pExports;
|
||||
public unsafe char** pExports;
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION"]/*' />
|
||||
@@ -3948,13 +3948,13 @@ public partial struct SubObjectToExportsAssociation
|
||||
public partial struct DxilSubObjectToExportsAssociation
|
||||
{
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION::SubobjectToAssociate"]/*' />
|
||||
public unsafe ushort* SubobjectToAssociate;
|
||||
public unsafe char* SubobjectToAssociate;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION::NumExports"]/*' />
|
||||
public uint NumExports;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION::pExports"]/*' />
|
||||
public unsafe ushort** pExports;
|
||||
public unsafe char** pExports;
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_HIT_GROUP_DESC"]/*' />
|
||||
@@ -3962,19 +3962,19 @@ public partial struct DxilSubObjectToExportsAssociation
|
||||
public partial struct HitGroupDescription
|
||||
{
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_HIT_GROUP_DESC::HitGroupExport"]/*' />
|
||||
public unsafe ushort* HitGroupExport;
|
||||
public unsafe char* HitGroupExport;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_HIT_GROUP_DESC::Type"]/*' />
|
||||
public HitGroupType Type;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_HIT_GROUP_DESC::AnyHitShaderImport"]/*' />
|
||||
public unsafe ushort* AnyHitShaderImport;
|
||||
public unsafe char* AnyHitShaderImport;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_HIT_GROUP_DESC::ClosestHitShaderImport"]/*' />
|
||||
public unsafe ushort* ClosestHitShaderImport;
|
||||
public unsafe char* ClosestHitShaderImport;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_HIT_GROUP_DESC::IntersectionShaderImport"]/*' />
|
||||
public unsafe ushort* IntersectionShaderImport;
|
||||
public unsafe char* IntersectionShaderImport;
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_RAYTRACING_SHADER_CONFIG"]/*' />
|
||||
@@ -4130,7 +4130,7 @@ public partial struct CommonComputeNodeOverrides
|
||||
public partial struct ShaderNode
|
||||
{
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_SHADER_NODE::Shader"]/*' />
|
||||
public unsafe ushort* Shader;
|
||||
public unsafe char* Shader;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_SHADER_NODE::OverridesType"]/*' />
|
||||
public NodeOverridesType OverridesType;
|
||||
@@ -4233,7 +4233,7 @@ public partial struct Node
|
||||
public partial struct WorkGraphDescription
|
||||
{
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_WORK_GRAPH_DESC::ProgramName"]/*' />
|
||||
public unsafe ushort* ProgramName;
|
||||
public unsafe char* ProgramName;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_WORK_GRAPH_DESC::Flags"]/*' />
|
||||
public WorkGraphFlags Flags;
|
||||
@@ -4256,13 +4256,13 @@ public partial struct WorkGraphDescription
|
||||
public partial struct GenericProgramDescription
|
||||
{
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_GENERIC_PROGRAM_DESC::ProgramName"]/*' />
|
||||
public unsafe ushort* ProgramName;
|
||||
public unsafe char* ProgramName;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_GENERIC_PROGRAM_DESC::NumExports"]/*' />
|
||||
public uint NumExports;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_GENERIC_PROGRAM_DESC::pExports"]/*' />
|
||||
public unsafe ushort** pExports;
|
||||
public unsafe char** pExports;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_GENERIC_PROGRAM_DESC::NumSubobjects"]/*' />
|
||||
public uint NumSubobjects;
|
||||
@@ -4634,13 +4634,13 @@ public partial struct AutoBreadcrumbNode
|
||||
public unsafe byte* pCommandListDebugNameA;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_AUTO_BREADCRUMB_NODE::pCommandListDebugNameW"]/*' />
|
||||
public unsafe ushort* pCommandListDebugNameW;
|
||||
public unsafe char* pCommandListDebugNameW;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_AUTO_BREADCRUMB_NODE::pCommandQueueDebugNameA"]/*' />
|
||||
public unsafe byte* pCommandQueueDebugNameA;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_AUTO_BREADCRUMB_NODE::pCommandQueueDebugNameW"]/*' />
|
||||
public unsafe ushort* pCommandQueueDebugNameW;
|
||||
public unsafe char* pCommandQueueDebugNameW;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_AUTO_BREADCRUMB_NODE::pCommandList"]/*' />
|
||||
public unsafe ID3D12GraphicsCommandList* pCommandList;
|
||||
@@ -4669,7 +4669,7 @@ public partial struct DredBreadcrumbContext
|
||||
public uint BreadcrumbIndex;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_DRED_BREADCRUMB_CONTEXT::pContextString"]/*' />
|
||||
public unsafe ushort* pContextString;
|
||||
public unsafe char* pContextString;
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_AUTO_BREADCRUMB_NODE1"]/*' />
|
||||
@@ -4680,13 +4680,13 @@ public partial struct AutoBreadcrumbNode1
|
||||
public unsafe byte* pCommandListDebugNameA;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_AUTO_BREADCRUMB_NODE1::pCommandListDebugNameW"]/*' />
|
||||
public unsafe ushort* pCommandListDebugNameW;
|
||||
public unsafe char* pCommandListDebugNameW;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_AUTO_BREADCRUMB_NODE1::pCommandQueueDebugNameA"]/*' />
|
||||
public unsafe byte* pCommandQueueDebugNameA;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_AUTO_BREADCRUMB_NODE1::pCommandQueueDebugNameW"]/*' />
|
||||
public unsafe ushort* pCommandQueueDebugNameW;
|
||||
public unsafe char* pCommandQueueDebugNameW;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_AUTO_BREADCRUMB_NODE1::pCommandList"]/*' />
|
||||
public unsafe ID3D12GraphicsCommandList* pCommandList;
|
||||
@@ -4732,7 +4732,7 @@ public partial struct DredAllocationNode
|
||||
public unsafe byte* ObjectNameA;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_DRED_ALLOCATION_NODE::ObjectNameW"]/*' />
|
||||
public unsafe ushort* ObjectNameW;
|
||||
public unsafe char* ObjectNameW;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_DRED_ALLOCATION_NODE::AllocationType"]/*' />
|
||||
public DredAllocationType AllocationType;
|
||||
@@ -4749,7 +4749,7 @@ public partial struct DredAllocationNode1
|
||||
public unsafe byte* ObjectNameA;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_DRED_ALLOCATION_NODE1::ObjectNameW"]/*' />
|
||||
public unsafe ushort* ObjectNameW;
|
||||
public unsafe char* ObjectNameW;
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="D3D12_DRED_ALLOCATION_NODE1::AllocationType"]/*' />
|
||||
public DredAllocationType AllocationType;
|
||||
|
||||
@@ -97,9 +97,9 @@ public unsafe partial struct ID3D12CommandAllocator : ID3D12CommandAllocator.Int
|
||||
/// <inheritdoc cref="ID3D12Object.SetName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetName(ushort* Name)
|
||||
public HResult SetName(char* Name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12CommandAllocator*, ushort*, int>)(lpVtbl[6]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), Name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12CommandAllocator*, char*, int>)(lpVtbl[6]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12DeviceChild.GetDevice" />
|
||||
|
||||
@@ -97,9 +97,9 @@ public unsafe partial struct ID3D12CommandList : ID3D12CommandList.Interface, IN
|
||||
/// <inheritdoc cref="ID3D12Object.SetName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetName(ushort* Name)
|
||||
public HResult SetName(char* Name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12CommandList*, ushort*, int>)(lpVtbl[6]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), Name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12CommandList*, char*, int>)(lpVtbl[6]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12DeviceChild.GetDevice" />
|
||||
|
||||
@@ -97,9 +97,9 @@ public unsafe partial struct ID3D12CommandQueue : ID3D12CommandQueue.Interface,
|
||||
/// <inheritdoc cref="ID3D12Object.SetName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetName(ushort* Name)
|
||||
public HResult SetName(char* Name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12CommandQueue*, ushort*, int>)(lpVtbl[6]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), Name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12CommandQueue*, char*, int>)(lpVtbl[6]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12DeviceChild.GetDevice" />
|
||||
|
||||
@@ -97,9 +97,9 @@ public unsafe partial struct ID3D12CommandSignature : ID3D12CommandSignature.Int
|
||||
/// <inheritdoc cref="ID3D12Object.SetName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetName(ushort* Name)
|
||||
public HResult SetName(char* Name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12CommandSignature*, ushort*, int>)(lpVtbl[6]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), Name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12CommandSignature*, char*, int>)(lpVtbl[6]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12DeviceChild.GetDevice" />
|
||||
|
||||
@@ -97,9 +97,9 @@ public unsafe partial struct ID3D12DescriptorHeap : ID3D12DescriptorHeap.Interfa
|
||||
/// <inheritdoc cref="ID3D12Object.SetName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetName(ushort* Name)
|
||||
public HResult SetName(char* Name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12DescriptorHeap*, ushort*, int>)(lpVtbl[6]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), Name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12DescriptorHeap*, char*, int>)(lpVtbl[6]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12DeviceChild.GetDevice" />
|
||||
|
||||
@@ -97,9 +97,9 @@ public unsafe partial struct ID3D12Device : ID3D12Device.Interface, INativeGuid
|
||||
/// <inheritdoc cref="ID3D12Object.SetName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetName(ushort* Name)
|
||||
public HResult SetName(char* Name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device*, ushort*, int>)(lpVtbl[6]))((ID3D12Device*)Unsafe.AsPointer(ref this), Name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device*, char*, int>)(lpVtbl[6]))((ID3D12Device*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12Device::GetNodeCount"]/*' />
|
||||
@@ -299,9 +299,9 @@ public unsafe partial struct ID3D12Device : ID3D12Device.Interface, INativeGuid
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12Device::CreateSharedHandle"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, Handle* pHandle)
|
||||
public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, char* Name, Handle* pHandle)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device*, ID3D12DeviceChild*, Security.SECURITY_ATTRIBUTES*, uint, ushort*, Handle*, int>)(lpVtbl[31]))((ID3D12Device*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device*, ID3D12DeviceChild*, Security.SECURITY_ATTRIBUTES*, uint, char*, Handle*, int>)(lpVtbl[31]))((ID3D12Device*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle);
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12Device::OpenSharedHandle"]/*' />
|
||||
@@ -315,9 +315,9 @@ public unsafe partial struct ID3D12Device : ID3D12Device.Interface, INativeGuid
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12Device::OpenSharedHandleByName"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult OpenSharedHandleByName(ushort* Name, uint Access, Handle* pNTHandle)
|
||||
public HResult OpenSharedHandleByName(char* Name, uint Access, Handle* pNTHandle)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device*, ushort*, uint, Handle*, int>)(lpVtbl[33]))((ID3D12Device*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device*, char*, uint, Handle*, int>)(lpVtbl[33]))((ID3D12Device*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle);
|
||||
}
|
||||
|
||||
/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12Device::MakeResident"]/*' />
|
||||
@@ -476,13 +476,13 @@ public unsafe partial struct ID3D12Device : ID3D12Device.Interface, INativeGuid
|
||||
HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource);
|
||||
|
||||
[VtblIndex(31)]
|
||||
HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, Handle* pHandle);
|
||||
HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, char* Name, Handle* pHandle);
|
||||
|
||||
[VtblIndex(32)]
|
||||
HResult OpenSharedHandle(Handle NTHandle, Guid* riid, void** ppvObj);
|
||||
|
||||
[VtblIndex(33)]
|
||||
HResult OpenSharedHandleByName(ushort* Name, uint Access, Handle* pNTHandle);
|
||||
HResult OpenSharedHandleByName(char* Name, uint Access, Handle* pNTHandle);
|
||||
|
||||
[VtblIndex(34)]
|
||||
HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects);
|
||||
|
||||
@@ -97,9 +97,9 @@ public unsafe partial struct ID3D12Device1 : ID3D12Device1.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID3D12Object.SetName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetName(ushort* Name)
|
||||
public HResult SetName(char* Name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device1*, ushort*, int>)(lpVtbl[6]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device1*, char*, int>)(lpVtbl[6]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12Device.GetNodeCount" />
|
||||
@@ -299,9 +299,9 @@ public unsafe partial struct ID3D12Device1 : ID3D12Device1.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID3D12Device.CreateSharedHandle" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, Handle* pHandle)
|
||||
public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, char* Name, Handle* pHandle)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device1*, ID3D12DeviceChild*, Security.SECURITY_ATTRIBUTES*, uint, ushort*, Handle*, int>)(lpVtbl[31]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device1*, ID3D12DeviceChild*, Security.SECURITY_ATTRIBUTES*, uint, char*, Handle*, int>)(lpVtbl[31]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12Device.OpenSharedHandle" />
|
||||
@@ -315,9 +315,9 @@ public unsafe partial struct ID3D12Device1 : ID3D12Device1.Interface, INativeGui
|
||||
/// <inheritdoc cref="ID3D12Device.OpenSharedHandleByName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult OpenSharedHandleByName(ushort* Name, uint Access, Handle* pNTHandle)
|
||||
public HResult OpenSharedHandleByName(char* Name, uint Access, Handle* pNTHandle)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device1*, ushort*, uint, Handle*, int>)(lpVtbl[33]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device1*, char*, uint, Handle*, int>)(lpVtbl[33]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12Device.MakeResident" />
|
||||
|
||||
@@ -97,9 +97,9 @@ public unsafe partial struct ID3D12Device10 : ID3D12Device10.Interface, INativeG
|
||||
/// <inheritdoc cref="ID3D12Object.SetName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetName(ushort* Name)
|
||||
public HResult SetName(char* Name)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device10*, ushort*, int>)(lpVtbl[6]))((ID3D12Device10*)Unsafe.AsPointer(ref this), Name);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device10*, char*, int>)(lpVtbl[6]))((ID3D12Device10*)Unsafe.AsPointer(ref this), Name);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12Device.GetNodeCount" />
|
||||
@@ -299,9 +299,9 @@ public unsafe partial struct ID3D12Device10 : ID3D12Device10.Interface, INativeG
|
||||
/// <inheritdoc cref="ID3D12Device.CreateSharedHandle" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, Handle* pHandle)
|
||||
public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, char* Name, Handle* pHandle)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device10*, ID3D12DeviceChild*, Security.SECURITY_ATTRIBUTES*, uint, ushort*, Handle*, int>)(lpVtbl[31]))((ID3D12Device10*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device10*, ID3D12DeviceChild*, Security.SECURITY_ATTRIBUTES*, uint, char*, Handle*, int>)(lpVtbl[31]))((ID3D12Device10*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12Device.OpenSharedHandle" />
|
||||
@@ -315,9 +315,9 @@ public unsafe partial struct ID3D12Device10 : ID3D12Device10.Interface, INativeG
|
||||
/// <inheritdoc cref="ID3D12Device.OpenSharedHandleByName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult OpenSharedHandleByName(ushort* Name, uint Access, Handle* pNTHandle)
|
||||
public HResult OpenSharedHandleByName(char* Name, uint Access, Handle* pNTHandle)
|
||||
{
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device10*, ushort*, uint, Handle*, int>)(lpVtbl[33]))((ID3D12Device10*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle);
|
||||
return ((delegate* unmanaged[MemberFunction]<ID3D12Device10*, char*, uint, Handle*, int>)(lpVtbl[33]))((ID3D12Device10*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12Device.MakeResident" />
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user