Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiligentCore.NET: Base implementation #396

Closed
wants to merge 1 commit into from
Closed

Conversation

MikhailGorobets
Copy link
Contributor

No description provided.

Graphics/GraphicsEngine.NET/BlendState.cs Outdated Show resolved Hide resolved
Graphics/GraphicsEngine.NET/CMakeLists.txt Outdated Show resolved Hide resolved
Graphics/GraphicsEngine.NET/DeviceContext.cs Outdated Show resolved Hide resolved
Comment on lines 1 to 52
<Project Sdk="Microsoft.NET.Sdk">
<Sdk Name="Diligent-SharpGenTools.Sdk" Version="2.0.0-beta.17" />
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>10.0</LangVersion>
<Platforms>x86;x64</Platforms>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<SharpGenEnablePackageReferenceCheck>false</SharpGenEnablePackageReferenceCheck>
<Nullable>enable</Nullable>
<PackageProjectUrl>https://github.com/DiligentGraphics/DiligentCore</PackageProjectUrl>
<RepositoryUrl>https://github.com/DiligentGraphics/DiligentCore</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Company>Diligent Graphics LLC</Company>
</PropertyGroup>

<ItemGroup>
<SharpGenMapping Include="Mapping.xml" />
</ItemGroup>
</Project>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be generated by CMake?
Cant this be built not my Visual Studio?

@@ -0,0 +1,443 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this file be auto-generated?

template <typename T, typename = typename std::enable_if<std::is_integral<T>::value>::type>
constexpr Version(T _Major, T _Minor) noexcept :
Major{static_cast<decltype(Major)>(_Major)},
Minor{static_cast<decltype(Minor)>(_Minor)}
{
}
#else
constexpr Version(Uint32 _Major, Uint32 _Minor) noexcept :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is template the problem here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CastXML uses clang 13.0.0 for parsing C++ code. The latest C++ headers in MSVC require clang version 15.0.0
CastXML/CastXMLSuperbuild#53

Tests/DiligentCoreTest.NET/Program.cs Outdated Show resolved Hide resolved
@MikhailGorobets MikhailGorobets force-pushed the mgorobets branch 4 times, most recently from 3b52345 to 04f36d8 Compare May 10, 2023 11:02
@MikhailGorobets MikhailGorobets force-pushed the mgorobets branch 10 times, most recently from 89dfce7 to 222dd67 Compare May 20, 2023 14:26
@TheMostDiligent
Copy link
Contributor

Merged in 6387cb7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants