<RootDirectory>$(MSBuildThisFileDirectory)../</RootDirectory>
<Deterministic>true</Deterministic>
- <TargetFrameworks>netcoreapp3.0</TargetFrameworks>
+ <TargetFrameworks>netcoreapp3.1</TargetFrameworks>
<RepositoryUrl>https://github.com/jpbruyere/vke.net</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
-<Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
<IncludeDefaultNoneItems>false</IncludeDefaultNoneItems>
- </PropertyGroup>
+ </PropertyGroup>
</Project>
return;
VkDebugMarkerMarkerInfoEXT info = VkDebugMarkerMarkerInfoEXT.New();
info.pMarkerName = name.Pin ();
- unsafe {
- info.color[0] = r;
- info.color[1] = g;
- info.color[2] = b;
- info.color[3] = a;
- }
+ info.color.X = r;
+ info.color.Y = g;
+ info.color.Z = b;
+ info.color.W = a;
vkCmdDebugMarkerBeginEXT (Handle, ref info);
name.Unpin ();
}
return;
VkDebugMarkerMarkerInfoEXT info = VkDebugMarkerMarkerInfoEXT.New();
info.pMarkerName = name.Pin ();
- unsafe {
- info.color[0] = r;
- info.color[1] = g;
- info.color[2] = b;
- info.color[3] = a;
- }
+ info.color.X = r;
+ info.color.Y = g;
+ info.color.Z = b;
+ info.color.W = a;
vkCmdDebugMarkerInsertEXT (Handle, ref info);
name.Unpin ();
}
VkPipelineColorBlendStateCreateInfo colorBlendInfo = VkPipelineColorBlendStateCreateInfo.New ();
colorBlendInfo.logicOpEnable = cfg.ColorBlendLogicOpEnable;
colorBlendInfo.logicOp = cfg.ColorBlendLogicOp;
- unsafe {
- colorBlendInfo.blendConstants[0] = cfg.ColorBlendConstants.X;
- colorBlendInfo.blendConstants[1] = cfg.ColorBlendConstants.Y;
- colorBlendInfo.blendConstants[2] = cfg.ColorBlendConstants.Z;
- colorBlendInfo.blendConstants[3] = cfg.ColorBlendConstants.W;
- }
+ colorBlendInfo.blendConstants = cfg.ColorBlendConstants;
colorBlendInfo.attachmentCount = (uint)cfg.blendAttachments.Count;
colorBlendInfo.pAttachments = cfg.blendAttachments.Pin (pctx);
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>netcoreapp3.0</TargetFramework>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
<ReleaseVersion>$(VkeReleaseVersion)</ReleaseVersion>
<ItemGroup>
<PackageReference Include="SpirVTasks" Version="$(SpirVTasksPackageVersion)" />
- <PackageReference Include="Vulkan" Version="0.2.5-beta" />
+ <PackageReference Include="Vulkan" Version="0.3.0-beta" />
<PackageReference Include="shaderc.net" Version="0.1.0" />
<PackageReference Include="glfw-sharp" Version="0.2.14" />
</ItemGroup>