aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
-rw-r--r--Directory.Build.props6
m---------Vulkan-Docs0
-rw-r--r--vk.generator/Program.cs10
-rw-r--r--vulkan/Libdl.cs8
-rw-r--r--vulkan/Utils.cs12
-rw-r--r--vulkan/vulkan.csproj4
6 files changed, 24 insertions, 16 deletions
diff --git a/Directory.Build.props b/Directory.Build.props
index a53c9d5..f7e6528 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -21,10 +21,10 @@
this implies that a loop for the enumerable on each set.
AutoSetSType = FALSE
- Use the New static property to create a new instance of the structure with the correct value for sType.
- ex: VkInstanceCreateInfo ci = VkInstanceCreateInfo.New;
+ Use the `New` static property to create a new instance of the structure with the correct value for sType.
+ ex: `VkInstanceCreateInfo ci = VkInstanceCreateInfo.New;`
-->
- <AutoSetSType>true</AutoSetSType>
+ <AutoSetSType>false</AutoSetSType>
</PropertyGroup>
</Project>
diff --git a/Vulkan-Docs b/Vulkan-Docs
-Subproject d70e01c0be7b8a7d20b186b30b29a75b18bba75
+Subproject 7dcf16f3b4a1118ff92207316b68145446f08bb
diff --git a/vk.generator/Program.cs b/vk.generator/Program.cs
index ba2fbab..3b2dba9 100644
--- a/vk.generator/Program.cs
+++ b/vk.generator/Program.cs
@@ -177,7 +177,15 @@ namespace vk.generator {
{ "StdVideoH264ProfileIdc","IntPtr" },
{ "VkRemoteAddressNV","IntPtr" },
- { "CAMetalLayer", "IntPtr" }
+ { "CAMetalLayer", "IntPtr" },
+
+ { "MTLDevice_id", "IntPtr"},
+ { "MTLCommandQueue_id", "IntPtr"},
+ { "MTLBuffer_id", "IntPtr"},
+ { "MTLTexture_id", "IntPtr"},
+ { "MTLSharedEvent_id", "IntPtr"},
+
+ { "IOSurfaceRef", "IntPtr"},
};
static string[] reservedNames = { "event", "object" };
diff --git a/vulkan/Libdl.cs b/vulkan/Libdl.cs
index ffd278b..6fe0d13 100644
--- a/vulkan/Libdl.cs
+++ b/vulkan/Libdl.cs
@@ -8,16 +8,16 @@ namespace Vulkan
{
internal static class Libdl
{
- [DllImport("libdl")]
+ [DllImport("dlib")]
public static extern IntPtr dlopen(string fileName, int flags);
- [DllImport("libdl")]
+ [DllImport("dlib")]
public static extern IntPtr dlsym(IntPtr handle, string name);
- [DllImport("libdl")]
+ [DllImport("dlib")]
public static extern int dlclose(IntPtr handle);
- [DllImport("libdl")]
+ [DllImport("dlib")]
public static extern string dlerror();
public const int RTLD_NOW = 0x002;
diff --git a/vulkan/Utils.cs b/vulkan/Utils.cs
index 9744b5f..84e4e64 100644
--- a/vulkan/Utils.cs
+++ b/vulkan/Utils.cs
@@ -43,16 +43,16 @@ namespace Vulkan {
phy = default;
return false;
}
- public static VkPhysicalDeviceToolPropertiesEXT[] GetToolProperties (VkPhysicalDevice phy) {
- CheckResult (vkGetPhysicalDeviceToolPropertiesEXT (phy , out uint count, IntPtr.Zero));
- int sizeStruct = Marshal.SizeOf<VkPhysicalDeviceToolPropertiesEXT> ();
+ public static VkPhysicalDeviceToolProperties[] GetToolProperties (VkPhysicalDevice phy) {
+ CheckResult (vkGetPhysicalDeviceToolProperties (phy , out uint count, IntPtr.Zero));
+ int sizeStruct = Marshal.SizeOf<VkPhysicalDeviceToolProperties> ();
IntPtr ptrTools = Marshal.AllocHGlobal (sizeStruct * (int)count);
- CheckResult (vkGetPhysicalDeviceToolPropertiesEXT (phy , out count, ptrTools));
+ CheckResult (vkGetPhysicalDeviceToolProperties (phy , out count, ptrTools));
- VkPhysicalDeviceToolPropertiesEXT[] result = new VkPhysicalDeviceToolPropertiesEXT[count];
+ VkPhysicalDeviceToolProperties[] result = new VkPhysicalDeviceToolProperties[count];
IntPtr tmp = ptrTools;
for (int i = 0; i < count; i++) {
- result[i] = Marshal.PtrToStructure<VkPhysicalDeviceToolPropertiesEXT> (tmp);
+ result[i] = Marshal.PtrToStructure<VkPhysicalDeviceToolProperties> (tmp);
tmp += sizeStruct;
}
diff --git a/vulkan/vulkan.csproj b/vulkan/vulkan.csproj
index 798bfc0..f90c5cb 100644
--- a/vulkan/vulkan.csproj
+++ b/vulkan/vulkan.csproj
@@ -3,9 +3,9 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.1</TargetFrameworks>
- <AssemblyVersion>0.4.1</AssemblyVersion>
+ <AssemblyVersion>0.4.2</AssemblyVersion>
<AssemblyName>Vulkan</AssemblyName>
- <PackageVersion>$(AssemblyVersion)-beta</PackageVersion>
+ <PackageVersion>$(AssemblyVersion)</PackageVersion>
<Description>Low level vulkan bindings for .net</Description>
<Product>Vulkan</Product>