This commit is contained in:
2026-07-22 13:30:35 +02:00
parent c491b3a78d
commit 9e30f72559
3 changed files with 9 additions and 6 deletions
-4
View File
@@ -68,7 +68,3 @@ LibPaths = ["$(BuildDir)/libktx.a"]
[Configs.Test.macOS] [Configs.Test.macOS]
LibPaths = ["$(BuildDir)/libktx.a"] LibPaths = ["$(BuildDir)/libktx.a"]
[[ProjectFolder.Items]]
Type = "IgnoreSource"
Name = "KTXVulkan.bf"
+4 -1
View File
@@ -26,13 +26,16 @@ class ExampleGenerator : Cpp2BeefGenerator, this(Span<char8*> args)
StreamWriter ktxVulkanWriter = new .()..Create("../src/KTXVulkan.bf")..Write(""" StreamWriter ktxVulkanWriter = new .()..Create("../src/KTXVulkan.bf")..Write("""
// This file was generated by Cpp2Beef // This file was generated by Cpp2Beef
#if KTX_VULKAN
using System; using System;
using System.Interop; using System.Interop;
using Vulkan;
namespace KTX; namespace KTX;
""") ~ delete _; """) ~ delete _..Write("\n#endif\n");
StreamWriter khrDfWriter = new .()..Create("../src/KHR_df.bf")..Write(""" StreamWriter khrDfWriter = new .()..Create("../src/KHR_df.bf")..Write("""
// This file was generated by Cpp2Beef // This file was generated by Cpp2Beef
+5 -1
View File
@@ -1,8 +1,11 @@
// This file was generated by Cpp2Beef // This file was generated by Cpp2Beef
#if KTX_VULKAN
using System; using System;
using System.Interop; using System.Interop;
using Vulkan;
namespace KTX; namespace KTX;
static static
@@ -278,4 +281,5 @@ extension ktxTexture2
[CallingConvention(KTX_APIENTRYP)] [LinkName("ktxTexture2_GetVkFormat")] public static extern VkFormat GetVkFormat(ktxTexture2* This); [CallingConvention(KTX_APIENTRYP)] [LinkName("ktxTexture2_GetVkFormat")] public static extern VkFormat GetVkFormat(ktxTexture2* This);
} }
/* KTX_H_A55A6F00956F42F3A137C11929827FE1 */ /* KTX_H_A55A6F00956F42F3A137C11929827FE1 */