fix const linking
This commit is contained in:
@@ -68,6 +68,10 @@ class ExampleGenerator : Cpp2BeefGenerator, this(Span<char8*> args)
|
|||||||
let spelling = GetCursorSpelling!(cursor);
|
let spelling = GetCursorSpelling!(cursor);
|
||||||
if (spelling == "ktxHashList" || spelling == "ktxHashListEntry" || spelling == "ktxStream")
|
if (spelling == "ktxHashList" || spelling == "ktxHashListEntry" || spelling == "ktxStream")
|
||||||
return;
|
return;
|
||||||
|
case .VarDecl:
|
||||||
|
let spelling = GetCursorSpelling!(cursor);
|
||||||
|
if (spelling == "KTX_ETC1S_DEFAULT_COMPRESSION_LEVEL")
|
||||||
|
return;
|
||||||
case .MacroDefinition:
|
case .MacroDefinition:
|
||||||
let spelling = GetCursorSpelling!(cursor);
|
let spelling = GetCursorSpelling!(cursor);
|
||||||
if (spelling == "KTXTEXTURECLASSDEFN" || spelling == "KTX_APIENTRYP" || spelling == "KTX_API" ||
|
if (spelling == "KTXTEXTURECLASSDEFN" || spelling == "KTX_APIENTRYP" || spelling == "KTX_API" ||
|
||||||
|
|||||||
+1
-4
@@ -1361,10 +1361,7 @@ public typealias ktx_pack_astc_quality_levels = ktx_uint32_t;
|
|||||||
/*!< Indicates the maximum permissible value. */
|
/*!< Indicates the maximum permissible value. */
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
|
||||||
{
|
|
||||||
[CLink] public static extern ktx_uint32_t KTX_ETC1S_DEFAULT_COMPRESSION_LEVEL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @memberof ktxTexture
|
* @memberof ktxTexture
|
||||||
|
|||||||
+5
-3
@@ -7,6 +7,9 @@ using CxxBuildTool;
|
|||||||
|
|
||||||
namespace KTX;
|
namespace KTX;
|
||||||
|
|
||||||
|
[CRepr] struct ktxHashList { ktxHashListEntry* head; }
|
||||||
|
[CRepr] struct ktxHashListEntry;
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
public const CallingConventionAttribute.Kind KTX_APIENTRYP =
|
public const CallingConventionAttribute.Kind KTX_APIENTRYP =
|
||||||
@@ -22,6 +25,8 @@ static
|
|||||||
struct ktxTexture1_private;
|
struct ktxTexture1_private;
|
||||||
struct ktxTexture2_private;
|
struct ktxTexture2_private;
|
||||||
|
|
||||||
|
public const let KTX_ETC1S_DEFAULT_COMPRESSION_LEVEL = 2;
|
||||||
|
|
||||||
[OnCompile(.TypeDone)]
|
[OnCompile(.TypeDone)]
|
||||||
private static void Build()
|
private static void Build()
|
||||||
{
|
{
|
||||||
@@ -69,6 +74,3 @@ static
|
|||||||
);*/
|
);*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[CRepr] struct ktxHashList { ktxHashListEntry* head; }
|
|
||||||
[CRepr] struct ktxHashListEntry;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user