mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 20:35:44 +00:00
Fixed the mapping between unsigned and signed wrappers -> entry points (no unsigned <-> signed casting). Regenerated bindings.
This commit is contained in:
parent
57a26d434c
commit
a29c32d774
|
@ -498,10 +498,6 @@ namespace Bind.Structures
|
|||
fixed_statements.Clear();
|
||||
assign_statements.Clear();
|
||||
|
||||
if (f.Name == "TessVertex")
|
||||
{
|
||||
}
|
||||
|
||||
// Obtain pointers by pinning the parameters
|
||||
foreach (Parameter p in f.Parameters)
|
||||
{
|
||||
|
@ -730,13 +726,12 @@ namespace Bind.Structures
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the function to the collection, if a function with the same
|
||||
/// name and parameters doesn't already exist.
|
||||
/// Adds the function to the collection, if a function with the same name and parameters doesn't already exist.
|
||||
/// </summary>
|
||||
/// <param name="f">The Function to add.</param>
|
||||
public void AddChecked(Function f)
|
||||
{
|
||||
if (f.Name.Contains("Bitmap"))
|
||||
if (f.Name.Contains("Uniform1u"))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -747,16 +742,6 @@ namespace Bind.Structures
|
|||
{
|
||||
Bind.Structures.Function.Wrappers.Add(f);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (unsignedFunctions.IsMatch(Utilities.StripGL2Extension(f.Name)))// &&
|
||||
//!unsignedFunctions.IsMatch(
|
||||
// Utilities.StripGL2Extension(Bind.Structures.Function.Wrappers[f.Extension][index].Name)))
|
||||
{
|
||||
Bind.Structures.Function.Wrappers[f.Extension].RemoveAt(index);
|
||||
Bind.Structures.Function.Wrappers[f.Extension].Add(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -71,7 +71,7 @@ namespace Bind.Structures
|
|||
|
||||
#endregion
|
||||
|
||||
#region UnmanagedType property
|
||||
#region UnmanagedType
|
||||
|
||||
UnmanagedType _unmanaged_type;
|
||||
/// <summary>
|
||||
|
@ -174,11 +174,15 @@ namespace Bind.Structures
|
|||
|
||||
#endregion
|
||||
|
||||
#region public override string ToString()
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return ToString(false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region public string ToString(bool override_unsafe_setting)
|
||||
|
||||
public string ToString(bool override_unsafe_setting)
|
||||
|
@ -294,6 +298,7 @@ namespace Bind.Structures
|
|||
private bool rebuild = true;
|
||||
bool hasPointerParameters;
|
||||
bool hasReferenceParameters;
|
||||
bool hasUnsignedParameters;
|
||||
bool unsafe_types_allowed;
|
||||
public bool Rebuild
|
||||
{
|
||||
|
@ -335,15 +340,10 @@ namespace Bind.Structures
|
|||
{
|
||||
get
|
||||
{
|
||||
if (!rebuild)
|
||||
{
|
||||
return hasPointerParameters;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Rebuild)
|
||||
BuildCache();
|
||||
return hasPointerParameters;
|
||||
}
|
||||
|
||||
return hasPointerParameters;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -355,15 +355,25 @@ namespace Bind.Structures
|
|||
{
|
||||
get
|
||||
{
|
||||
if (!Rebuild)
|
||||
{
|
||||
return hasReferenceParameters;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Rebuild)
|
||||
BuildCache();
|
||||
return hasReferenceParameters;
|
||||
}
|
||||
|
||||
return hasReferenceParameters;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region public bool HasUnsignedParameters
|
||||
|
||||
public bool HasUnsignedParameters
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Rebuild)
|
||||
BuildCache();
|
||||
|
||||
return hasUnsignedParameters;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -380,6 +390,9 @@ namespace Bind.Structures
|
|||
|
||||
if (p.Reference)
|
||||
hasReferenceParameters = true;
|
||||
|
||||
if (p.Unsigned)
|
||||
hasUnsignedParameters = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ namespace Bind.Structures
|
|||
{
|
||||
get
|
||||
{
|
||||
bool compliant = !(CurrentType.Contains("UInt") || CurrentType.Contains("SByte"));
|
||||
bool compliant = !Unsigned;
|
||||
if (Pointer)
|
||||
{
|
||||
compliant &= CurrentType.Contains("IntPtr"); // IntPtr's are CLSCompliant.
|
||||
|
@ -183,6 +183,18 @@ namespace Bind.Structures
|
|||
|
||||
#endregion
|
||||
|
||||
#region public bool Unsigned
|
||||
|
||||
public bool Unsigned
|
||||
{
|
||||
get
|
||||
{
|
||||
return (CurrentType.Contains("UInt") || CurrentType.Contains("SByte"));
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region public WrapperTypes WrapperType
|
||||
|
||||
private WrapperTypes _wrapper_type = WrapperTypes.None;
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue