Added distinct /overrides/add and /overrides/replace elements.
Added check for the existence of override elements before trying to use them (avoids potential null reference exception). Regenerated bindings using the latest version of the generator.
This commit is contained in:
parent
353ef37dd4
commit
158f1af9d3
19 changed files with 14097 additions and 13819 deletions
|
@ -42,43 +42,49 @@ namespace Bind.ES
|
|||
public override DelegateCollection ReadDelegates(StreamReader specFile)
|
||||
{
|
||||
DelegateCollection delegates = new DelegateCollection();
|
||||
|
||||
XPathDocument specs = new XPathDocument(specFile);
|
||||
XPathDocument overrides = new XPathDocument(new StreamReader(Path.Combine(Settings.InputPath, functionOverridesFile)));
|
||||
|
||||
XPathNavigator nav = new XPathDocument(specFile).CreateNavigator().SelectSingleNode("/signatures");
|
||||
|
||||
foreach (XPathNavigator node in nav.SelectChildren("function", String.Empty))
|
||||
foreach (XPathNavigator nav in new XPathNavigator[] {
|
||||
specs.CreateNavigator().SelectSingleNode("/signatures"),
|
||||
overrides.CreateNavigator().SelectSingleNode("/overrides/add") })
|
||||
{
|
||||
Delegate d = new Delegate();
|
||||
d.Name = node.GetAttribute("name", String.Empty);
|
||||
//d.Extension = node.GetAttribute("extension");
|
||||
d.Version = node.GetAttribute("version", String.Empty);
|
||||
d.Category = node.GetAttribute("category", String.Empty);
|
||||
foreach (XPathNavigator param in node.SelectChildren(XPathNodeType.Element))
|
||||
if (nav != null)
|
||||
{
|
||||
switch (param.Name)
|
||||
foreach (XPathNavigator node in nav.SelectChildren("function", String.Empty))
|
||||
{
|
||||
case "returns":
|
||||
d.ReturnType.CurrentType = param.GetAttribute("type", String.Empty);
|
||||
break;
|
||||
Delegate d = new Delegate();
|
||||
d.Name = node.GetAttribute("name", String.Empty);
|
||||
//d.Extension = node.GetAttribute("extension");
|
||||
d.Version = node.GetAttribute("version", String.Empty);
|
||||
d.Category = node.GetAttribute("category", String.Empty);
|
||||
foreach (XPathNavigator param in node.SelectChildren(XPathNodeType.Element))
|
||||
{
|
||||
switch (param.Name)
|
||||
{
|
||||
case "returns":
|
||||
d.ReturnType.CurrentType = param.GetAttribute("type", String.Empty);
|
||||
break;
|
||||
|
||||
case "param":
|
||||
Parameter p = new Parameter();
|
||||
p.CurrentType = param.GetAttribute("type", String.Empty);
|
||||
p.Name = param.GetAttribute("name", String.Empty);
|
||||
|
||||
string element_count = param.GetAttribute("elementcount", String.Empty);
|
||||
if (!String.IsNullOrEmpty(element_count))
|
||||
p.ElementCount = Int32.Parse(element_count);
|
||||
case "param":
|
||||
Parameter p = new Parameter();
|
||||
p.CurrentType = param.GetAttribute("type", String.Empty);
|
||||
p.Name = param.GetAttribute("name", String.Empty);
|
||||
|
||||
p.Flow = Parameter.GetFlowDirection(param.GetAttribute("flow", String.Empty));
|
||||
|
||||
d.Parameters.Add(p);
|
||||
break;
|
||||
string element_count = param.GetAttribute("elementcount", String.Empty);
|
||||
if (!String.IsNullOrEmpty(element_count))
|
||||
p.ElementCount = Int32.Parse(element_count);
|
||||
|
||||
p.Flow = Parameter.GetFlowDirection(param.GetAttribute("flow", String.Empty));
|
||||
|
||||
d.Parameters.Add(p);
|
||||
break;
|
||||
}
|
||||
}
|
||||
d.Translate(overrides);
|
||||
delegates.Add(d);
|
||||
}
|
||||
}
|
||||
d.Translate(overrides);
|
||||
delegates.Add(d);
|
||||
}
|
||||
|
||||
return delegates;
|
||||
|
@ -107,26 +113,29 @@ namespace Bind.ES
|
|||
|
||||
foreach (XPathNavigator nav in new XPathNavigator[] {
|
||||
specs.CreateNavigator().SelectSingleNode("/signatures"),
|
||||
overrides.CreateNavigator().SelectSingleNode("/overrides") })
|
||||
overrides.CreateNavigator().SelectSingleNode("/overrides/add") })
|
||||
{
|
||||
foreach (XPathNavigator node in nav.SelectChildren("enum", String.Empty))
|
||||
if (nav != null)
|
||||
{
|
||||
Enum e = new Enum()
|
||||
foreach (XPathNavigator node in nav.SelectChildren("enum", String.Empty))
|
||||
{
|
||||
Name = node.GetAttribute("name", String.Empty),
|
||||
Type = node.GetAttribute("type", String.Empty)
|
||||
};
|
||||
if (String.IsNullOrEmpty(e.Name))
|
||||
throw new InvalidOperationException(String.Format("Empty name for enum element {0}", node.ToString()));
|
||||
Enum e = new Enum()
|
||||
{
|
||||
Name = node.GetAttribute("name", String.Empty),
|
||||
Type = node.GetAttribute("type", String.Empty)
|
||||
};
|
||||
if (String.IsNullOrEmpty(e.Name))
|
||||
throw new InvalidOperationException(String.Format("Empty name for enum element {0}", node.ToString()));
|
||||
|
||||
foreach (XPathNavigator param in node.SelectChildren(XPathNodeType.Element))
|
||||
{
|
||||
Constant c = new Constant(param.GetAttribute("name", String.Empty), param.GetAttribute("value", String.Empty));
|
||||
Utilities.Merge(all, c);
|
||||
e.ConstantCollection.Add(c.Name, c);
|
||||
foreach (XPathNavigator param in node.SelectChildren(XPathNodeType.Element))
|
||||
{
|
||||
Constant c = new Constant(param.GetAttribute("name", String.Empty), param.GetAttribute("value", String.Empty));
|
||||
Utilities.Merge(all, c);
|
||||
e.ConstantCollection.Add(c.Name, c);
|
||||
}
|
||||
|
||||
Utilities.Merge(enums, e);
|
||||
}
|
||||
|
||||
Utilities.Merge(enums, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,46 +1,47 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<overrides>
|
||||
|
||||
<enum name="Unknown">
|
||||
<token name="CHAR_MAX"><value>127</value></token>
|
||||
<token name="CHAR_MIN"><value>-128</value></token>
|
||||
</enum>
|
||||
|
||||
<enum name="ErrorCodes"><name>ErrorCode</name></enum>
|
||||
|
||||
<enum name="DeviceType"><name>DeviceTypeFlags</name></enum>
|
||||
<replace>
|
||||
<enum name="Unknown">
|
||||
<token name="CHAR_MAX"><value>127</value></token>
|
||||
<token name="CHAR_MIN"><value>-128</value></token>
|
||||
</enum>
|
||||
|
||||
<enum name="ErrorCodes"><name>ErrorCode</name></enum>
|
||||
|
||||
<enum name="DeviceType"><name>DeviceTypeFlags</name></enum>
|
||||
|
||||
<function name="CreateContextFromType" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
<function name="CreateContextFromType" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
|
||||
<enum name="CommandQueuePropertiesFlags"><name>CommandQueueFlags</name></enum>
|
||||
<enum name="CommandQueueProperties"><name>CommandQueueFlags</name></enum>
|
||||
<enum name="CommandQueuePropertiesFlags"><name>CommandQueueFlags</name></enum>
|
||||
<enum name="CommandQueueProperties"><name>CommandQueueFlags</name></enum>
|
||||
|
||||
<function name="CreateBuffer" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
<function name="CreateBuffer" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
|
||||
<function name="CreateContextFromType" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
<function name="CreateContextFromType" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
|
||||
<function name="CreateCommandQueue" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
<function name="CreateCommandQueue" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
|
||||
<function name="CreateKernel" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
|
||||
<function name="CreateProgramWithBinary" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
|
||||
<function name="CreateProgramWithSource" extension="Core">
|
||||
<param name="strings"><type>string[]</type></param>
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
<function name="CreateKernel" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
|
||||
<function name="CreateProgramWithBinary" extension="Core">
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
|
||||
<function name="CreateProgramWithSource" extension="Core">
|
||||
<param name="strings"><type>string[]</type></param>
|
||||
<param name="errcode_ret"><type>ErrorCode</type></param>
|
||||
</function>
|
||||
</replace>
|
||||
|
||||
</overrides>
|
|
@ -168,7 +168,7 @@
|
|||
<token name="DEVICE_TYPE_DEFAULT" value="(1 << 0)" />
|
||||
<token name="DEVICE_TYPE_GPU" value="(1 << 2)" />
|
||||
</enum>
|
||||
<enum name="ErrorCodes" type="int">
|
||||
<enum name="ErrorCode" type="int">
|
||||
<token name="BUILD_PROGRAM_FAILURE" value="-11" />
|
||||
<token name="COMPILER_NOT_AVAILABLE" value="-3" />
|
||||
<token name="DEVICE_NOT_AVAILABLE" value="-2" />
|
||||
|
@ -838,5 +838,4 @@
|
|||
<param type="cl_uint" name="num_events" flow="in" />
|
||||
<param type="cl_event*" name="event_list" flow="in" />
|
||||
</function>
|
||||
</signatures>
|
||||
|
||||
</signatures>
|
|
@ -1,6 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<overrides>
|
||||
<function name="GetString" extension="Core">
|
||||
<returns>String</returns>
|
||||
</function>
|
||||
|
||||
<replace>
|
||||
<function name="GetString" extension="Core">
|
||||
<returns>String</returns>
|
||||
</function>
|
||||
</replace>
|
||||
|
||||
</overrides>
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<overrides>
|
||||
<function name="GetString" extension="Core">
|
||||
<returns>String</returns>
|
||||
</function>
|
||||
|
||||
<replace>
|
||||
<function name="GetString" extension="Core">
|
||||
<returns>String</returns>
|
||||
</function>
|
||||
</replace>
|
||||
|
||||
</overrides>
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<overrides>
|
||||
<function name="GetString" extension="Core">
|
||||
<returns>String</returns>
|
||||
</function>
|
||||
<function name="ShaderSource" extension="Core">
|
||||
<param name="string"><type>String*</type></param>
|
||||
</function>
|
||||
<function name="GetShaderSource" extension="Core">
|
||||
<param name="source"><flow>out</flow></param>
|
||||
</function>
|
||||
<function name="GetProgramInfoLog" extension="Core">
|
||||
<param name="infolog"><flow>out</flow></param>
|
||||
</function>
|
||||
<replace>
|
||||
<function name="GetString" extension="Core">
|
||||
<returns>String</returns>
|
||||
</function>
|
||||
<function name="ShaderSource" extension="Core">
|
||||
<param name="string"><type>String*</type></param>
|
||||
</function>
|
||||
<function name="GetShaderSource" extension="Core">
|
||||
<param name="source"><flow>out</flow></param>
|
||||
</function>
|
||||
<function name="GetProgramInfoLog" extension="Core">
|
||||
<param name="infolog"><flow>out</flow></param>
|
||||
</function>
|
||||
</replace>
|
||||
</overrides>
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -599,7 +599,7 @@ namespace Bind.Structures
|
|||
if (overrides == null)
|
||||
throw new ArgumentNullException("overrides");
|
||||
|
||||
string path = "/overrides/function[@name='{0}' and @extension='{1}']";
|
||||
string path = "/overrides/replace/function[@name='{0}' and @extension='{1}']";
|
||||
string name = TrimName(Name, false);
|
||||
XPathNavigator function_override = overrides.CreateNavigator().SelectSingleNode(String.Format(path, name, Extension));
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ namespace Bind.Structures
|
|||
if (overrides == null)
|
||||
throw new ArgumentNullException("overrides");
|
||||
|
||||
string path = "/overrides/enum[@name='{0}']";
|
||||
string path = "/overrides/replace/enum[@name='{0}']";
|
||||
|
||||
// Translate enum names.
|
||||
{
|
||||
|
|
|
@ -384,7 +384,7 @@ namespace Bind.Structures
|
|||
// Make sure that enum parameters follow enum overrides, i.e.
|
||||
// if enum ErrorCodes is overriden to ErrorCode, then parameters
|
||||
// of type ErrorCodes should also be overriden to ErrorCode.
|
||||
XPathNavigator enum_override = overrides.SelectSingleNode(String.Format("/overrides/enum[@name='{0}']/name", CurrentType));
|
||||
XPathNavigator enum_override = overrides.SelectSingleNode(String.Format("/overrides/replace/enum[@name='{0}']/name", CurrentType));
|
||||
if (enum_override != null)
|
||||
CurrentType = enum_override.Value;
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,10 +33,10 @@ namespace OpenTK.Compute.CL10
|
|||
|
||||
public enum AddressingMode : int
|
||||
{
|
||||
AddressNone = ((int)0X1130),
|
||||
AddressClampToEdge = ((int)0X1131),
|
||||
AddressClamp = ((int)0X1132),
|
||||
AddressRepeat = ((int)0X1133),
|
||||
AddressNone = ((int)0x1130),
|
||||
AddressClampToEdge = ((int)0x1131),
|
||||
AddressClamp = ((int)0x1132),
|
||||
AddressRepeat = ((int)0x1133),
|
||||
}
|
||||
|
||||
public enum All : int
|
||||
|
@ -69,176 +69,176 @@ namespace OpenTK.Compute.CL10
|
|||
BuildSuccess = ((int)0),
|
||||
False = ((int)0),
|
||||
Success = ((int)0),
|
||||
Complete = ((int)0X0),
|
||||
None = ((int)0X0),
|
||||
PlatformProfile = ((int)0X0900),
|
||||
PlatformVersion = ((int)0X0901),
|
||||
PlatformName = ((int)0X0902),
|
||||
PlatformVendor = ((int)0X0903),
|
||||
PlatformExtensions = ((int)0X0904),
|
||||
Local = ((int)0X1),
|
||||
ReadOnlyCache = ((int)0X1),
|
||||
Running = ((int)0X1),
|
||||
DeviceType = ((int)0X1000),
|
||||
DeviceVendorId = ((int)0X1001),
|
||||
DeviceMaxComputeUnits = ((int)0X1002),
|
||||
DeviceMaxWorkItemDimensions = ((int)0X1003),
|
||||
DeviceMaxWorkGroupSize = ((int)0X1004),
|
||||
DeviceMaxWorkItemSizes = ((int)0X1005),
|
||||
DevicePreferredVectorWidthChar = ((int)0X1006),
|
||||
DevicePreferredVectorWidthShort = ((int)0X1007),
|
||||
DevicePreferredVectorWidthInt = ((int)0X1008),
|
||||
DevicePreferredVectorWidthLong = ((int)0X1009),
|
||||
DevicePreferredVectorWidthFloat = ((int)0X100a),
|
||||
DevicePreferredVectorWidthDouble = ((int)0X100b),
|
||||
DeviceMaxClockFrequency = ((int)0X100c),
|
||||
DeviceAddressBits = ((int)0X100d),
|
||||
DeviceMaxReadImageArgs = ((int)0X100e),
|
||||
DeviceMaxWriteImageArgs = ((int)0X100f),
|
||||
DeviceMaxMemAllocSize = ((int)0X1010),
|
||||
DeviceImage2dMaxWidth = ((int)0X1011),
|
||||
DeviceImage2dMaxHeight = ((int)0X1012),
|
||||
DeviceImage3dMaxWidth = ((int)0X1013),
|
||||
DeviceImage3dMaxHeight = ((int)0X1014),
|
||||
DeviceImage3dMaxDepth = ((int)0X1015),
|
||||
DeviceImageSupport = ((int)0X1016),
|
||||
DeviceMaxParameterSize = ((int)0X1017),
|
||||
DeviceMaxSamplers = ((int)0X1018),
|
||||
DeviceMemBaseAddrAlign = ((int)0X1019),
|
||||
DeviceMinDataTypeAlignSize = ((int)0X101a),
|
||||
DeviceSingleFpConfig = ((int)0X101b),
|
||||
DeviceGlobalMemCacheType = ((int)0X101c),
|
||||
DeviceGlobalMemCachelineSize = ((int)0X101d),
|
||||
DeviceGlobalMemCacheSize = ((int)0X101e),
|
||||
DeviceGlobalMemSize = ((int)0X101f),
|
||||
DeviceMaxConstantBufferSize = ((int)0X1020),
|
||||
DeviceMaxConstantArgs = ((int)0X1021),
|
||||
DeviceLocalMemType = ((int)0X1022),
|
||||
DeviceLocalMemSize = ((int)0X1023),
|
||||
DeviceErrorCorrectionSupport = ((int)0X1024),
|
||||
DeviceProfilingTimerResolution = ((int)0X1025),
|
||||
DeviceEndianLittle = ((int)0X1026),
|
||||
DeviceAvailable = ((int)0X1027),
|
||||
DeviceCompilerAvailable = ((int)0X1028),
|
||||
DeviceExecutionCapabilities = ((int)0X1029),
|
||||
DeviceQueueProperties = ((int)0X102a),
|
||||
DeviceName = ((int)0X102b),
|
||||
DeviceVendor = ((int)0X102c),
|
||||
DriverVersion = ((int)0X102d),
|
||||
DeviceProfile = ((int)0X102e),
|
||||
DeviceVersion = ((int)0X102f),
|
||||
DeviceExtensions = ((int)0X1030),
|
||||
DevicePlatform = ((int)0X1031),
|
||||
ContextReferenceCount = ((int)0X1080),
|
||||
ContextDevices = ((int)0X1081),
|
||||
ContextProperties = ((int)0X1082),
|
||||
ContextPlatform = ((int)0X1084),
|
||||
QueueContext = ((int)0X1090),
|
||||
QueueDevice = ((int)0X1091),
|
||||
QueueReferenceCount = ((int)0X1092),
|
||||
QueueProperties = ((int)0X1093),
|
||||
R = ((int)0X10b0),
|
||||
A = ((int)0X10b1),
|
||||
Rg = ((int)0X10b2),
|
||||
Ra = ((int)0X10b3),
|
||||
Rgb = ((int)0X10b4),
|
||||
Rgba = ((int)0X10b5),
|
||||
Bgra = ((int)0X10b6),
|
||||
Argb = ((int)0X10b7),
|
||||
Intensity = ((int)0X10b8),
|
||||
Luminance = ((int)0X10b9),
|
||||
SnormInt8 = ((int)0X10d0),
|
||||
SnormInt16 = ((int)0X10d1),
|
||||
UnormInt8 = ((int)0X10d2),
|
||||
UnormInt16 = ((int)0X10d3),
|
||||
UnormShort565 = ((int)0X10d4),
|
||||
UnormShort555 = ((int)0X10d5),
|
||||
UnormInt101010 = ((int)0X10d6),
|
||||
SignedInt8 = ((int)0X10d7),
|
||||
SignedInt16 = ((int)0X10d8),
|
||||
SignedInt32 = ((int)0X10d9),
|
||||
UnsignedInt8 = ((int)0X10da),
|
||||
UnsignedInt16 = ((int)0X10db),
|
||||
UnsignedInt32 = ((int)0X10dc),
|
||||
HalfFloat = ((int)0X10dd),
|
||||
Float = ((int)0X10de),
|
||||
MemObjectBuffer = ((int)0X10f0),
|
||||
MemObjectImage2d = ((int)0X10f1),
|
||||
MemObjectImage3d = ((int)0X10f2),
|
||||
MemType = ((int)0X1100),
|
||||
MemFlags = ((int)0X1101),
|
||||
MemSize = ((int)0X1102),
|
||||
MemHostPtr = ((int)0X1103),
|
||||
MemMapCount = ((int)0X1104),
|
||||
MemReferenceCount = ((int)0X1105),
|
||||
MemContext = ((int)0X1106),
|
||||
ImageFormat = ((int)0X1110),
|
||||
ImageElementSize = ((int)0X1111),
|
||||
ImageRowPitch = ((int)0X1112),
|
||||
ImageSlicePitch = ((int)0X1113),
|
||||
ImageWidth = ((int)0X1114),
|
||||
ImageHeight = ((int)0X1115),
|
||||
ImageDepth = ((int)0X1116),
|
||||
AddressNone = ((int)0X1130),
|
||||
AddressClampToEdge = ((int)0X1131),
|
||||
AddressClamp = ((int)0X1132),
|
||||
AddressRepeat = ((int)0X1133),
|
||||
FilterNearest = ((int)0X1140),
|
||||
FilterLinear = ((int)0X1141),
|
||||
SamplerReferenceCount = ((int)0X1150),
|
||||
SamplerContext = ((int)0X1151),
|
||||
SamplerNormalizedCoords = ((int)0X1152),
|
||||
SamplerAddressingMode = ((int)0X1153),
|
||||
SamplerFilterMode = ((int)0X1154),
|
||||
ProgramReferenceCount = ((int)0X1160),
|
||||
ProgramContext = ((int)0X1161),
|
||||
ProgramNumDevices = ((int)0X1162),
|
||||
ProgramDevices = ((int)0X1163),
|
||||
ProgramSource = ((int)0X1164),
|
||||
ProgramBinarySizes = ((int)0X1165),
|
||||
ProgramBinaries = ((int)0X1166),
|
||||
ProgramBuildStatus = ((int)0X1181),
|
||||
ProgramBuildOptions = ((int)0X1182),
|
||||
ProgramBuildLog = ((int)0X1183),
|
||||
KernelFunctionName = ((int)0X1190),
|
||||
KernelNumArgs = ((int)0X1191),
|
||||
KernelReferenceCount = ((int)0X1192),
|
||||
KernelContext = ((int)0X1193),
|
||||
KernelProgram = ((int)0X1194),
|
||||
KernelWorkGroupSize = ((int)0X11b0),
|
||||
KernelCompileWorkGroupSize = ((int)0X11b1),
|
||||
KernelLocalMemSize = ((int)0X11b2),
|
||||
EventCommandQueue = ((int)0X11d0),
|
||||
EventCommandType = ((int)0X11d1),
|
||||
EventReferenceCount = ((int)0X11d2),
|
||||
EventCommandExecutionStatus = ((int)0X11d3),
|
||||
CommandNdrangeKernel = ((int)0X11f0),
|
||||
CommandTask = ((int)0X11f1),
|
||||
CommandNativeKernel = ((int)0X11f2),
|
||||
CommandReadBuffer = ((int)0X11f3),
|
||||
CommandWriteBuffer = ((int)0X11f4),
|
||||
CommandCopyBuffer = ((int)0X11f5),
|
||||
CommandReadImage = ((int)0X11f6),
|
||||
CommandWriteImage = ((int)0X11f7),
|
||||
CommandCopyImage = ((int)0X11f8),
|
||||
CommandCopyImageToBuffer = ((int)0X11f9),
|
||||
CommandCopyBufferToImage = ((int)0X11fa),
|
||||
CommandMapBuffer = ((int)0X11fb),
|
||||
CommandMapImage = ((int)0X11fc),
|
||||
CommandUnmapMemObject = ((int)0X11fd),
|
||||
CommandMarker = ((int)0X11fe),
|
||||
CommandAcquireGlObjects = ((int)0X11ff),
|
||||
CommandReleaseGlObjects = ((int)0X1200),
|
||||
ProfilingCommandQueued = ((int)0X1280),
|
||||
ProfilingCommandSubmit = ((int)0X1281),
|
||||
ProfilingCommandStart = ((int)0X1282),
|
||||
ProfilingCommandEnd = ((int)0X1283),
|
||||
Global = ((int)0X2),
|
||||
ReadWriteCache = ((int)0X2),
|
||||
Submitted = ((int)0X2),
|
||||
Queued = ((int)0X3),
|
||||
DeviceTypeAll = unchecked((int)0Xffffffff),
|
||||
UintMax = unchecked((int)0Xffffffff),
|
||||
Complete = ((int)0x0),
|
||||
None = ((int)0x0),
|
||||
PlatformProfile = ((int)0x0900),
|
||||
PlatformVersion = ((int)0x0901),
|
||||
PlatformName = ((int)0x0902),
|
||||
PlatformVendor = ((int)0x0903),
|
||||
PlatformExtensions = ((int)0x0904),
|
||||
Local = ((int)0x1),
|
||||
ReadOnlyCache = ((int)0x1),
|
||||
Running = ((int)0x1),
|
||||
DeviceType = ((int)0x1000),
|
||||
DeviceVendorId = ((int)0x1001),
|
||||
DeviceMaxComputeUnits = ((int)0x1002),
|
||||
DeviceMaxWorkItemDimensions = ((int)0x1003),
|
||||
DeviceMaxWorkGroupSize = ((int)0x1004),
|
||||
DeviceMaxWorkItemSizes = ((int)0x1005),
|
||||
DevicePreferredVectorWidthChar = ((int)0x1006),
|
||||
DevicePreferredVectorWidthShort = ((int)0x1007),
|
||||
DevicePreferredVectorWidthInt = ((int)0x1008),
|
||||
DevicePreferredVectorWidthLong = ((int)0x1009),
|
||||
DevicePreferredVectorWidthFloat = ((int)0x100A),
|
||||
DevicePreferredVectorWidthDouble = ((int)0x100B),
|
||||
DeviceMaxClockFrequency = ((int)0x100C),
|
||||
DeviceAddressBits = ((int)0x100D),
|
||||
DeviceMaxReadImageArgs = ((int)0x100E),
|
||||
DeviceMaxWriteImageArgs = ((int)0x100F),
|
||||
DeviceMaxMemAllocSize = ((int)0x1010),
|
||||
DeviceImage2dMaxWidth = ((int)0x1011),
|
||||
DeviceImage2dMaxHeight = ((int)0x1012),
|
||||
DeviceImage3dMaxWidth = ((int)0x1013),
|
||||
DeviceImage3dMaxHeight = ((int)0x1014),
|
||||
DeviceImage3dMaxDepth = ((int)0x1015),
|
||||
DeviceImageSupport = ((int)0x1016),
|
||||
DeviceMaxParameterSize = ((int)0x1017),
|
||||
DeviceMaxSamplers = ((int)0x1018),
|
||||
DeviceMemBaseAddrAlign = ((int)0x1019),
|
||||
DeviceMinDataTypeAlignSize = ((int)0x101A),
|
||||
DeviceSingleFpConfig = ((int)0x101B),
|
||||
DeviceGlobalMemCacheType = ((int)0x101C),
|
||||
DeviceGlobalMemCachelineSize = ((int)0x101D),
|
||||
DeviceGlobalMemCacheSize = ((int)0x101E),
|
||||
DeviceGlobalMemSize = ((int)0x101F),
|
||||
DeviceMaxConstantBufferSize = ((int)0x1020),
|
||||
DeviceMaxConstantArgs = ((int)0x1021),
|
||||
DeviceLocalMemType = ((int)0x1022),
|
||||
DeviceLocalMemSize = ((int)0x1023),
|
||||
DeviceErrorCorrectionSupport = ((int)0x1024),
|
||||
DeviceProfilingTimerResolution = ((int)0x1025),
|
||||
DeviceEndianLittle = ((int)0x1026),
|
||||
DeviceAvailable = ((int)0x1027),
|
||||
DeviceCompilerAvailable = ((int)0x1028),
|
||||
DeviceExecutionCapabilities = ((int)0x1029),
|
||||
DeviceQueueProperties = ((int)0x102A),
|
||||
DeviceName = ((int)0x102B),
|
||||
DeviceVendor = ((int)0x102C),
|
||||
DriverVersion = ((int)0x102D),
|
||||
DeviceProfile = ((int)0x102E),
|
||||
DeviceVersion = ((int)0x102F),
|
||||
DeviceExtensions = ((int)0x1030),
|
||||
DevicePlatform = ((int)0x1031),
|
||||
ContextReferenceCount = ((int)0x1080),
|
||||
ContextDevices = ((int)0x1081),
|
||||
ContextProperties = ((int)0x1082),
|
||||
ContextPlatform = ((int)0x1084),
|
||||
QueueContext = ((int)0x1090),
|
||||
QueueDevice = ((int)0x1091),
|
||||
QueueReferenceCount = ((int)0x1092),
|
||||
QueueProperties = ((int)0x1093),
|
||||
R = ((int)0x10B0),
|
||||
A = ((int)0x10B1),
|
||||
Rg = ((int)0x10B2),
|
||||
Ra = ((int)0x10B3),
|
||||
Rgb = ((int)0x10B4),
|
||||
Rgba = ((int)0x10B5),
|
||||
Bgra = ((int)0x10B6),
|
||||
Argb = ((int)0x10B7),
|
||||
Intensity = ((int)0x10B8),
|
||||
Luminance = ((int)0x10B9),
|
||||
SnormInt8 = ((int)0x10D0),
|
||||
SnormInt16 = ((int)0x10D1),
|
||||
UnormInt8 = ((int)0x10D2),
|
||||
UnormInt16 = ((int)0x10D3),
|
||||
UnormShort565 = ((int)0x10D4),
|
||||
UnormShort555 = ((int)0x10D5),
|
||||
UnormInt101010 = ((int)0x10D6),
|
||||
SignedInt8 = ((int)0x10D7),
|
||||
SignedInt16 = ((int)0x10D8),
|
||||
SignedInt32 = ((int)0x10D9),
|
||||
UnsignedInt8 = ((int)0x10DA),
|
||||
UnsignedInt16 = ((int)0x10DB),
|
||||
UnsignedInt32 = ((int)0x10DC),
|
||||
HalfFloat = ((int)0x10DD),
|
||||
Float = ((int)0x10DE),
|
||||
MemObjectBuffer = ((int)0x10F0),
|
||||
MemObjectImage2d = ((int)0x10F1),
|
||||
MemObjectImage3d = ((int)0x10F2),
|
||||
MemType = ((int)0x1100),
|
||||
MemFlags = ((int)0x1101),
|
||||
MemSize = ((int)0x1102),
|
||||
MemHostPtr = ((int)0x1103),
|
||||
MemMapCount = ((int)0x1104),
|
||||
MemReferenceCount = ((int)0x1105),
|
||||
MemContext = ((int)0x1106),
|
||||
ImageFormat = ((int)0x1110),
|
||||
ImageElementSize = ((int)0x1111),
|
||||
ImageRowPitch = ((int)0x1112),
|
||||
ImageSlicePitch = ((int)0x1113),
|
||||
ImageWidth = ((int)0x1114),
|
||||
ImageHeight = ((int)0x1115),
|
||||
ImageDepth = ((int)0x1116),
|
||||
AddressNone = ((int)0x1130),
|
||||
AddressClampToEdge = ((int)0x1131),
|
||||
AddressClamp = ((int)0x1132),
|
||||
AddressRepeat = ((int)0x1133),
|
||||
FilterNearest = ((int)0x1140),
|
||||
FilterLinear = ((int)0x1141),
|
||||
SamplerReferenceCount = ((int)0x1150),
|
||||
SamplerContext = ((int)0x1151),
|
||||
SamplerNormalizedCoords = ((int)0x1152),
|
||||
SamplerAddressingMode = ((int)0x1153),
|
||||
SamplerFilterMode = ((int)0x1154),
|
||||
ProgramReferenceCount = ((int)0x1160),
|
||||
ProgramContext = ((int)0x1161),
|
||||
ProgramNumDevices = ((int)0x1162),
|
||||
ProgramDevices = ((int)0x1163),
|
||||
ProgramSource = ((int)0x1164),
|
||||
ProgramBinarySizes = ((int)0x1165),
|
||||
ProgramBinaries = ((int)0x1166),
|
||||
ProgramBuildStatus = ((int)0x1181),
|
||||
ProgramBuildOptions = ((int)0x1182),
|
||||
ProgramBuildLog = ((int)0x1183),
|
||||
KernelFunctionName = ((int)0x1190),
|
||||
KernelNumArgs = ((int)0x1191),
|
||||
KernelReferenceCount = ((int)0x1192),
|
||||
KernelContext = ((int)0x1193),
|
||||
KernelProgram = ((int)0x1194),
|
||||
KernelWorkGroupSize = ((int)0x11B0),
|
||||
KernelCompileWorkGroupSize = ((int)0x11B1),
|
||||
KernelLocalMemSize = ((int)0x11B2),
|
||||
EventCommandQueue = ((int)0x11D0),
|
||||
EventCommandType = ((int)0x11D1),
|
||||
EventReferenceCount = ((int)0x11D2),
|
||||
EventCommandExecutionStatus = ((int)0x11D3),
|
||||
CommandNdrangeKernel = ((int)0x11F0),
|
||||
CommandTask = ((int)0x11F1),
|
||||
CommandNativeKernel = ((int)0x11F2),
|
||||
CommandReadBuffer = ((int)0x11F3),
|
||||
CommandWriteBuffer = ((int)0x11F4),
|
||||
CommandCopyBuffer = ((int)0x11F5),
|
||||
CommandReadImage = ((int)0x11F6),
|
||||
CommandWriteImage = ((int)0x11F7),
|
||||
CommandCopyImage = ((int)0x11F8),
|
||||
CommandCopyImageToBuffer = ((int)0x11F9),
|
||||
CommandCopyBufferToImage = ((int)0x11FA),
|
||||
CommandMapBuffer = ((int)0x11FB),
|
||||
CommandMapImage = ((int)0x11FC),
|
||||
CommandUnmapMemObject = ((int)0x11FD),
|
||||
CommandMarker = ((int)0x11FE),
|
||||
CommandAcquireGlObjects = ((int)0x11FF),
|
||||
CommandReleaseGlObjects = ((int)0x1200),
|
||||
ProfilingCommandQueued = ((int)0x1280),
|
||||
ProfilingCommandSubmit = ((int)0x1281),
|
||||
ProfilingCommandStart = ((int)0x1282),
|
||||
ProfilingCommandEnd = ((int)0x1283),
|
||||
Global = ((int)0x2),
|
||||
ReadWriteCache = ((int)0x2),
|
||||
Submitted = ((int)0x2),
|
||||
Queued = ((int)0x3),
|
||||
UintMax = unchecked((int)0xffffffff),
|
||||
DeviceTypeAll = unchecked((int)0xFFFFFFFF),
|
||||
True = ((int)1),
|
||||
Version10 = ((int)1),
|
||||
BuildNone = ((int)-1),
|
||||
|
@ -323,43 +323,43 @@ namespace OpenTK.Compute.CL10
|
|||
|
||||
public enum ChannelOrder : int
|
||||
{
|
||||
R = ((int)0X10b0),
|
||||
A = ((int)0X10b1),
|
||||
Rg = ((int)0X10b2),
|
||||
Ra = ((int)0X10b3),
|
||||
Rgb = ((int)0X10b4),
|
||||
Rgba = ((int)0X10b5),
|
||||
Bgra = ((int)0X10b6),
|
||||
Argb = ((int)0X10b7),
|
||||
Intensity = ((int)0X10b8),
|
||||
Luminance = ((int)0X10b9),
|
||||
R = ((int)0x10B0),
|
||||
A = ((int)0x10B1),
|
||||
Rg = ((int)0x10B2),
|
||||
Ra = ((int)0x10B3),
|
||||
Rgb = ((int)0x10B4),
|
||||
Rgba = ((int)0x10B5),
|
||||
Bgra = ((int)0x10B6),
|
||||
Argb = ((int)0x10B7),
|
||||
Intensity = ((int)0x10B8),
|
||||
Luminance = ((int)0x10B9),
|
||||
}
|
||||
|
||||
public enum ChannelType : int
|
||||
{
|
||||
SnormInt8 = ((int)0X10d0),
|
||||
SnormInt16 = ((int)0X10d1),
|
||||
UnormInt8 = ((int)0X10d2),
|
||||
UnormInt16 = ((int)0X10d3),
|
||||
UnormShort565 = ((int)0X10d4),
|
||||
UnormShort555 = ((int)0X10d5),
|
||||
UnormInt101010 = ((int)0X10d6),
|
||||
SignedInt8 = ((int)0X10d7),
|
||||
SignedInt16 = ((int)0X10d8),
|
||||
SignedInt32 = ((int)0X10d9),
|
||||
UnsignedInt8 = ((int)0X10da),
|
||||
UnsignedInt16 = ((int)0X10db),
|
||||
UnsignedInt32 = ((int)0X10dc),
|
||||
HalfFloat = ((int)0X10dd),
|
||||
Float = ((int)0X10de),
|
||||
SnormInt8 = ((int)0x10D0),
|
||||
SnormInt16 = ((int)0x10D1),
|
||||
UnormInt8 = ((int)0x10D2),
|
||||
UnormInt16 = ((int)0x10D3),
|
||||
UnormShort565 = ((int)0x10D4),
|
||||
UnormShort555 = ((int)0x10D5),
|
||||
UnormInt101010 = ((int)0x10D6),
|
||||
SignedInt8 = ((int)0x10D7),
|
||||
SignedInt16 = ((int)0x10D8),
|
||||
SignedInt32 = ((int)0x10D9),
|
||||
UnsignedInt8 = ((int)0x10DA),
|
||||
UnsignedInt16 = ((int)0x10DB),
|
||||
UnsignedInt32 = ((int)0x10DC),
|
||||
HalfFloat = ((int)0x10DD),
|
||||
Float = ((int)0x10DE),
|
||||
}
|
||||
|
||||
public enum CommandExecutionStatus : int
|
||||
{
|
||||
Complete = ((int)0X0),
|
||||
Running = ((int)0X1),
|
||||
Submitted = ((int)0X2),
|
||||
Queued = ((int)0X3),
|
||||
Complete = ((int)0x0),
|
||||
Running = ((int)0x1),
|
||||
Submitted = ((int)0x2),
|
||||
Queued = ((int)0x3),
|
||||
}
|
||||
|
||||
public enum CommandQueueFlags : long
|
||||
|
@ -370,43 +370,43 @@ namespace OpenTK.Compute.CL10
|
|||
|
||||
public enum CommandQueueInfo : int
|
||||
{
|
||||
QueueContext = ((int)0X1090),
|
||||
QueueDevice = ((int)0X1091),
|
||||
QueueReferenceCount = ((int)0X1092),
|
||||
QueueProperties = ((int)0X1093),
|
||||
QueueContext = ((int)0x1090),
|
||||
QueueDevice = ((int)0x1091),
|
||||
QueueReferenceCount = ((int)0x1092),
|
||||
QueueProperties = ((int)0x1093),
|
||||
}
|
||||
|
||||
public enum CommandType : int
|
||||
{
|
||||
CommandNdrangeKernel = ((int)0X11f0),
|
||||
CommandTask = ((int)0X11f1),
|
||||
CommandNativeKernel = ((int)0X11f2),
|
||||
CommandReadBuffer = ((int)0X11f3),
|
||||
CommandWriteBuffer = ((int)0X11f4),
|
||||
CommandCopyBuffer = ((int)0X11f5),
|
||||
CommandReadImage = ((int)0X11f6),
|
||||
CommandWriteImage = ((int)0X11f7),
|
||||
CommandCopyImage = ((int)0X11f8),
|
||||
CommandCopyImageToBuffer = ((int)0X11f9),
|
||||
CommandCopyBufferToImage = ((int)0X11fa),
|
||||
CommandMapBuffer = ((int)0X11fb),
|
||||
CommandMapImage = ((int)0X11fc),
|
||||
CommandUnmapMemObject = ((int)0X11fd),
|
||||
CommandMarker = ((int)0X11fe),
|
||||
CommandAcquireGlObjects = ((int)0X11ff),
|
||||
CommandReleaseGlObjects = ((int)0X1200),
|
||||
CommandNdrangeKernel = ((int)0x11F0),
|
||||
CommandTask = ((int)0x11F1),
|
||||
CommandNativeKernel = ((int)0x11F2),
|
||||
CommandReadBuffer = ((int)0x11F3),
|
||||
CommandWriteBuffer = ((int)0x11F4),
|
||||
CommandCopyBuffer = ((int)0x11F5),
|
||||
CommandReadImage = ((int)0x11F6),
|
||||
CommandWriteImage = ((int)0x11F7),
|
||||
CommandCopyImage = ((int)0x11F8),
|
||||
CommandCopyImageToBuffer = ((int)0x11F9),
|
||||
CommandCopyBufferToImage = ((int)0x11FA),
|
||||
CommandMapBuffer = ((int)0x11FB),
|
||||
CommandMapImage = ((int)0x11FC),
|
||||
CommandUnmapMemObject = ((int)0x11FD),
|
||||
CommandMarker = ((int)0x11FE),
|
||||
CommandAcquireGlObjects = ((int)0x11FF),
|
||||
CommandReleaseGlObjects = ((int)0x1200),
|
||||
}
|
||||
|
||||
public enum ContextInfo : int
|
||||
{
|
||||
ContextReferenceCount = ((int)0X1080),
|
||||
ContextDevices = ((int)0X1081),
|
||||
ContextProperties = ((int)0X1082),
|
||||
ContextReferenceCount = ((int)0x1080),
|
||||
ContextDevices = ((int)0x1081),
|
||||
ContextProperties = ((int)0x1082),
|
||||
}
|
||||
|
||||
public enum ContextProperties : int
|
||||
{
|
||||
ContextPlatform = ((int)0X1084),
|
||||
ContextPlatform = ((int)0x1084),
|
||||
}
|
||||
|
||||
public enum DeviceExecCapabilitiesFlags : long
|
||||
|
@ -427,69 +427,69 @@ namespace OpenTK.Compute.CL10
|
|||
|
||||
public enum DeviceInfo : int
|
||||
{
|
||||
DeviceType = ((int)0X1000),
|
||||
DeviceVendorId = ((int)0X1001),
|
||||
DeviceMaxComputeUnits = ((int)0X1002),
|
||||
DeviceMaxWorkItemDimensions = ((int)0X1003),
|
||||
DeviceMaxWorkGroupSize = ((int)0X1004),
|
||||
DeviceMaxWorkItemSizes = ((int)0X1005),
|
||||
DevicePreferredVectorWidthChar = ((int)0X1006),
|
||||
DevicePreferredVectorWidthShort = ((int)0X1007),
|
||||
DevicePreferredVectorWidthInt = ((int)0X1008),
|
||||
DevicePreferredVectorWidthLong = ((int)0X1009),
|
||||
DevicePreferredVectorWidthFloat = ((int)0X100a),
|
||||
DevicePreferredVectorWidthDouble = ((int)0X100b),
|
||||
DeviceMaxClockFrequency = ((int)0X100c),
|
||||
DeviceAddressBits = ((int)0X100d),
|
||||
DeviceMaxReadImageArgs = ((int)0X100e),
|
||||
DeviceMaxWriteImageArgs = ((int)0X100f),
|
||||
DeviceMaxMemAllocSize = ((int)0X1010),
|
||||
DeviceImage2dMaxWidth = ((int)0X1011),
|
||||
DeviceImage2dMaxHeight = ((int)0X1012),
|
||||
DeviceImage3dMaxWidth = ((int)0X1013),
|
||||
DeviceImage3dMaxHeight = ((int)0X1014),
|
||||
DeviceImage3dMaxDepth = ((int)0X1015),
|
||||
DeviceImageSupport = ((int)0X1016),
|
||||
DeviceMaxParameterSize = ((int)0X1017),
|
||||
DeviceMaxSamplers = ((int)0X1018),
|
||||
DeviceMemBaseAddrAlign = ((int)0X1019),
|
||||
DeviceMinDataTypeAlignSize = ((int)0X101a),
|
||||
DeviceSingleFpConfig = ((int)0X101b),
|
||||
DeviceGlobalMemCacheType = ((int)0X101c),
|
||||
DeviceGlobalMemCachelineSize = ((int)0X101d),
|
||||
DeviceGlobalMemCacheSize = ((int)0X101e),
|
||||
DeviceGlobalMemSize = ((int)0X101f),
|
||||
DeviceMaxConstantBufferSize = ((int)0X1020),
|
||||
DeviceMaxConstantArgs = ((int)0X1021),
|
||||
DeviceLocalMemType = ((int)0X1022),
|
||||
DeviceLocalMemSize = ((int)0X1023),
|
||||
DeviceErrorCorrectionSupport = ((int)0X1024),
|
||||
DeviceProfilingTimerResolution = ((int)0X1025),
|
||||
DeviceEndianLittle = ((int)0X1026),
|
||||
DeviceAvailable = ((int)0X1027),
|
||||
DeviceCompilerAvailable = ((int)0X1028),
|
||||
DeviceExecutionCapabilities = ((int)0X1029),
|
||||
DeviceQueueProperties = ((int)0X102a),
|
||||
DeviceName = ((int)0X102b),
|
||||
DeviceVendor = ((int)0X102c),
|
||||
DriverVersion = ((int)0X102d),
|
||||
DeviceProfile = ((int)0X102e),
|
||||
DeviceVersion = ((int)0X102f),
|
||||
DeviceExtensions = ((int)0X1030),
|
||||
DevicePlatform = ((int)0X1031),
|
||||
DeviceType = ((int)0x1000),
|
||||
DeviceVendorId = ((int)0x1001),
|
||||
DeviceMaxComputeUnits = ((int)0x1002),
|
||||
DeviceMaxWorkItemDimensions = ((int)0x1003),
|
||||
DeviceMaxWorkGroupSize = ((int)0x1004),
|
||||
DeviceMaxWorkItemSizes = ((int)0x1005),
|
||||
DevicePreferredVectorWidthChar = ((int)0x1006),
|
||||
DevicePreferredVectorWidthShort = ((int)0x1007),
|
||||
DevicePreferredVectorWidthInt = ((int)0x1008),
|
||||
DevicePreferredVectorWidthLong = ((int)0x1009),
|
||||
DevicePreferredVectorWidthFloat = ((int)0x100A),
|
||||
DevicePreferredVectorWidthDouble = ((int)0x100B),
|
||||
DeviceMaxClockFrequency = ((int)0x100C),
|
||||
DeviceAddressBits = ((int)0x100D),
|
||||
DeviceMaxReadImageArgs = ((int)0x100E),
|
||||
DeviceMaxWriteImageArgs = ((int)0x100F),
|
||||
DeviceMaxMemAllocSize = ((int)0x1010),
|
||||
DeviceImage2dMaxWidth = ((int)0x1011),
|
||||
DeviceImage2dMaxHeight = ((int)0x1012),
|
||||
DeviceImage3dMaxWidth = ((int)0x1013),
|
||||
DeviceImage3dMaxHeight = ((int)0x1014),
|
||||
DeviceImage3dMaxDepth = ((int)0x1015),
|
||||
DeviceImageSupport = ((int)0x1016),
|
||||
DeviceMaxParameterSize = ((int)0x1017),
|
||||
DeviceMaxSamplers = ((int)0x1018),
|
||||
DeviceMemBaseAddrAlign = ((int)0x1019),
|
||||
DeviceMinDataTypeAlignSize = ((int)0x101A),
|
||||
DeviceSingleFpConfig = ((int)0x101B),
|
||||
DeviceGlobalMemCacheType = ((int)0x101C),
|
||||
DeviceGlobalMemCachelineSize = ((int)0x101D),
|
||||
DeviceGlobalMemCacheSize = ((int)0x101E),
|
||||
DeviceGlobalMemSize = ((int)0x101F),
|
||||
DeviceMaxConstantBufferSize = ((int)0x1020),
|
||||
DeviceMaxConstantArgs = ((int)0x1021),
|
||||
DeviceLocalMemType = ((int)0x1022),
|
||||
DeviceLocalMemSize = ((int)0x1023),
|
||||
DeviceErrorCorrectionSupport = ((int)0x1024),
|
||||
DeviceProfilingTimerResolution = ((int)0x1025),
|
||||
DeviceEndianLittle = ((int)0x1026),
|
||||
DeviceAvailable = ((int)0x1027),
|
||||
DeviceCompilerAvailable = ((int)0x1028),
|
||||
DeviceExecutionCapabilities = ((int)0x1029),
|
||||
DeviceQueueProperties = ((int)0x102A),
|
||||
DeviceName = ((int)0x102B),
|
||||
DeviceVendor = ((int)0x102C),
|
||||
DriverVersion = ((int)0x102D),
|
||||
DeviceProfile = ((int)0x102E),
|
||||
DeviceVersion = ((int)0x102F),
|
||||
DeviceExtensions = ((int)0x1030),
|
||||
DevicePlatform = ((int)0x1031),
|
||||
}
|
||||
|
||||
public enum DeviceLocalMemType : int
|
||||
{
|
||||
Local = ((int)0X1),
|
||||
Global = ((int)0X2),
|
||||
Local = ((int)0x1),
|
||||
Global = ((int)0x2),
|
||||
}
|
||||
|
||||
public enum DeviceMemCacheType : int
|
||||
{
|
||||
None = ((int)0X0),
|
||||
ReadOnlyCache = ((int)0X1),
|
||||
ReadWriteCache = ((int)0X2),
|
||||
None = ((int)0x0),
|
||||
ReadOnlyCache = ((int)0x1),
|
||||
ReadWriteCache = ((int)0x2),
|
||||
}
|
||||
|
||||
public enum DeviceTypeFlags : long
|
||||
|
@ -498,7 +498,7 @@ namespace OpenTK.Compute.CL10
|
|||
DeviceTypeCpu = ((int)(1 << 1)),
|
||||
DeviceTypeGpu = ((int)(1 << 2)),
|
||||
DeviceTypeAccelerator = ((int)(1 << 3)),
|
||||
DeviceTypeAll = unchecked((int)0Xffffffff),
|
||||
DeviceTypeAll = unchecked((int)0xFFFFFFFF),
|
||||
}
|
||||
|
||||
public enum ErrorCode : int
|
||||
|
@ -553,43 +553,43 @@ namespace OpenTK.Compute.CL10
|
|||
|
||||
public enum EventInfo : int
|
||||
{
|
||||
EventCommandQueue = ((int)0X11d0),
|
||||
EventCommandType = ((int)0X11d1),
|
||||
EventReferenceCount = ((int)0X11d2),
|
||||
EventCommandExecutionStatus = ((int)0X11d3),
|
||||
EventCommandQueue = ((int)0x11D0),
|
||||
EventCommandType = ((int)0x11D1),
|
||||
EventReferenceCount = ((int)0x11D2),
|
||||
EventCommandExecutionStatus = ((int)0x11D3),
|
||||
}
|
||||
|
||||
public enum FilterMode : int
|
||||
{
|
||||
FilterNearest = ((int)0X1140),
|
||||
FilterLinear = ((int)0X1141),
|
||||
FilterNearest = ((int)0x1140),
|
||||
FilterLinear = ((int)0x1141),
|
||||
}
|
||||
|
||||
public enum ImageInfo : int
|
||||
{
|
||||
ImageFormat = ((int)0X1110),
|
||||
ImageElementSize = ((int)0X1111),
|
||||
ImageRowPitch = ((int)0X1112),
|
||||
ImageSlicePitch = ((int)0X1113),
|
||||
ImageWidth = ((int)0X1114),
|
||||
ImageHeight = ((int)0X1115),
|
||||
ImageDepth = ((int)0X1116),
|
||||
ImageFormat = ((int)0x1110),
|
||||
ImageElementSize = ((int)0x1111),
|
||||
ImageRowPitch = ((int)0x1112),
|
||||
ImageSlicePitch = ((int)0x1113),
|
||||
ImageWidth = ((int)0x1114),
|
||||
ImageHeight = ((int)0x1115),
|
||||
ImageDepth = ((int)0x1116),
|
||||
}
|
||||
|
||||
public enum KernelInfo : int
|
||||
{
|
||||
KernelFunctionName = ((int)0X1190),
|
||||
KernelNumArgs = ((int)0X1191),
|
||||
KernelReferenceCount = ((int)0X1192),
|
||||
KernelContext = ((int)0X1193),
|
||||
KernelProgram = ((int)0X1194),
|
||||
KernelFunctionName = ((int)0x1190),
|
||||
KernelNumArgs = ((int)0x1191),
|
||||
KernelReferenceCount = ((int)0x1192),
|
||||
KernelContext = ((int)0x1193),
|
||||
KernelProgram = ((int)0x1194),
|
||||
}
|
||||
|
||||
public enum KernelWorkGroupInfo : int
|
||||
{
|
||||
KernelWorkGroupSize = ((int)0X11b0),
|
||||
KernelCompileWorkGroupSize = ((int)0X11b1),
|
||||
KernelLocalMemSize = ((int)0X11b2),
|
||||
KernelWorkGroupSize = ((int)0x11B0),
|
||||
KernelCompileWorkGroupSize = ((int)0x11B1),
|
||||
KernelLocalMemSize = ((int)0x11B2),
|
||||
}
|
||||
|
||||
public enum MapFlags : long
|
||||
|
@ -610,64 +610,64 @@ namespace OpenTK.Compute.CL10
|
|||
|
||||
public enum MemInfo : int
|
||||
{
|
||||
MemType = ((int)0X1100),
|
||||
MemFlags = ((int)0X1101),
|
||||
MemSize = ((int)0X1102),
|
||||
MemHostPtr = ((int)0X1103),
|
||||
MemMapCount = ((int)0X1104),
|
||||
MemReferenceCount = ((int)0X1105),
|
||||
MemContext = ((int)0X1106),
|
||||
MemType = ((int)0x1100),
|
||||
MemFlags = ((int)0x1101),
|
||||
MemSize = ((int)0x1102),
|
||||
MemHostPtr = ((int)0x1103),
|
||||
MemMapCount = ((int)0x1104),
|
||||
MemReferenceCount = ((int)0x1105),
|
||||
MemContext = ((int)0x1106),
|
||||
}
|
||||
|
||||
public enum MemObjectType : int
|
||||
{
|
||||
MemObjectBuffer = ((int)0X10f0),
|
||||
MemObjectImage2d = ((int)0X10f1),
|
||||
MemObjectImage3d = ((int)0X10f2),
|
||||
MemObjectBuffer = ((int)0x10F0),
|
||||
MemObjectImage2d = ((int)0x10F1),
|
||||
MemObjectImage3d = ((int)0x10F2),
|
||||
}
|
||||
|
||||
public enum PlatformInfo : int
|
||||
{
|
||||
PlatformProfile = ((int)0X0900),
|
||||
PlatformVersion = ((int)0X0901),
|
||||
PlatformName = ((int)0X0902),
|
||||
PlatformVendor = ((int)0X0903),
|
||||
PlatformExtensions = ((int)0X0904),
|
||||
PlatformProfile = ((int)0x0900),
|
||||
PlatformVersion = ((int)0x0901),
|
||||
PlatformName = ((int)0x0902),
|
||||
PlatformVendor = ((int)0x0903),
|
||||
PlatformExtensions = ((int)0x0904),
|
||||
}
|
||||
|
||||
public enum ProfilingInfo : int
|
||||
{
|
||||
ProfilingCommandQueued = ((int)0X1280),
|
||||
ProfilingCommandSubmit = ((int)0X1281),
|
||||
ProfilingCommandStart = ((int)0X1282),
|
||||
ProfilingCommandEnd = ((int)0X1283),
|
||||
ProfilingCommandQueued = ((int)0x1280),
|
||||
ProfilingCommandSubmit = ((int)0x1281),
|
||||
ProfilingCommandStart = ((int)0x1282),
|
||||
ProfilingCommandEnd = ((int)0x1283),
|
||||
}
|
||||
|
||||
public enum ProgramBuildInfo : int
|
||||
{
|
||||
ProgramBuildStatus = ((int)0X1181),
|
||||
ProgramBuildOptions = ((int)0X1182),
|
||||
ProgramBuildLog = ((int)0X1183),
|
||||
ProgramBuildStatus = ((int)0x1181),
|
||||
ProgramBuildOptions = ((int)0x1182),
|
||||
ProgramBuildLog = ((int)0x1183),
|
||||
}
|
||||
|
||||
public enum ProgramInfo : int
|
||||
{
|
||||
ProgramReferenceCount = ((int)0X1160),
|
||||
ProgramContext = ((int)0X1161),
|
||||
ProgramNumDevices = ((int)0X1162),
|
||||
ProgramDevices = ((int)0X1163),
|
||||
ProgramSource = ((int)0X1164),
|
||||
ProgramBinarySizes = ((int)0X1165),
|
||||
ProgramBinaries = ((int)0X1166),
|
||||
ProgramReferenceCount = ((int)0x1160),
|
||||
ProgramContext = ((int)0x1161),
|
||||
ProgramNumDevices = ((int)0x1162),
|
||||
ProgramDevices = ((int)0x1163),
|
||||
ProgramSource = ((int)0x1164),
|
||||
ProgramBinarySizes = ((int)0x1165),
|
||||
ProgramBinaries = ((int)0x1166),
|
||||
}
|
||||
|
||||
public enum SamplerInfo : int
|
||||
{
|
||||
SamplerReferenceCount = ((int)0X1150),
|
||||
SamplerContext = ((int)0X1151),
|
||||
SamplerNormalizedCoords = ((int)0X1152),
|
||||
SamplerAddressingMode = ((int)0X1153),
|
||||
SamplerFilterMode = ((int)0X1154),
|
||||
SamplerReferenceCount = ((int)0x1150),
|
||||
SamplerContext = ((int)0x1151),
|
||||
SamplerNormalizedCoords = ((int)0x1152),
|
||||
SamplerAddressingMode = ((int)0x1153),
|
||||
SamplerFilterMode = ((int)0x1154),
|
||||
}
|
||||
|
||||
public enum Unknown : int
|
||||
|
@ -675,7 +675,7 @@ namespace OpenTK.Compute.CL10
|
|||
ScharMin = ((int)(-127-1)),
|
||||
IntMin = ((int)(-2147483647-1)),
|
||||
ShrtMin = ((int)(-32767-1)),
|
||||
UintMax = unchecked((int)0Xffffffff),
|
||||
UintMax = unchecked((int)0xffffffff),
|
||||
DblMinExp = ((int)-1021),
|
||||
FltMinExp = ((int)-125),
|
||||
ScharMax = ((int)127),
|
||||
|
|
|
@ -456,6 +456,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T3)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -702,6 +703,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T7)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -1033,6 +1035,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T8)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -1833,6 +1836,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject());
|
||||
indices = (T3)indices_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -3567,6 +3571,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T2)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -3964,6 +3969,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T6)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -4529,6 +4535,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T3)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -4935,6 +4942,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T8)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -5333,6 +5341,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T8)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -5696,6 +5705,7 @@ namespace OpenTK.Graphics.ES10
|
|||
try
|
||||
{
|
||||
Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T3)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -281,6 +281,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES11.All)usage);
|
||||
data = (T2)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -507,6 +508,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T3)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -1255,6 +1257,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T3)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -1501,6 +1504,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T7)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -1832,6 +1836,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T8)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -2857,6 +2862,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject());
|
||||
indices = (T3)indices_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -4843,6 +4849,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject());
|
||||
@params = (T1)@params_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -6658,6 +6665,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T2)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -7195,6 +7203,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T6)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -7760,6 +7769,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T3)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -8272,6 +8282,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T8)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -8884,6 +8895,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T8)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -9247,6 +9259,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T3)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -11318,6 +11331,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject());
|
||||
@params = (T2)@params_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -12557,6 +12571,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glMatrixIndexPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T3)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -12842,6 +12857,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T2)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -13476,6 +13492,7 @@ namespace OpenTK.Graphics.ES11
|
|||
try
|
||||
{
|
||||
Delegates.glWeightPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T3)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -450,6 +450,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T3)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -557,6 +558,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T3)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -1724,6 +1726,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage);
|
||||
data = (T2)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -1950,6 +1953,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T3)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -2396,6 +2400,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T7)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -2727,6 +2732,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T8)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -4169,6 +4175,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject());
|
||||
indices = (T3)indices_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -9373,6 +9380,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T2)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -9575,6 +9583,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject());
|
||||
pointer = (T2)pointer_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -10213,6 +10222,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T6)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -10520,6 +10530,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
|
||||
binary = (T3)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -10634,6 +10645,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
|
||||
binary = (T3)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -10770,6 +10782,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
|
||||
binary = (T3)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -10907,6 +10920,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
|
||||
binary = (T3)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -11044,6 +11058,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
|
||||
binary = (T3)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -11159,6 +11174,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
|
||||
binary = (T3)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -11919,6 +11935,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T8)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -12482,6 +12499,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T8)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -14986,6 +15004,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject());
|
||||
ptr = (T5)ptr_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -15263,6 +15282,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject());
|
||||
ptr = (T5)ptr_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -16044,6 +16064,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T8)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -16400,6 +16421,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glCompressedTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
|
||||
data = (T10)data_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -16837,6 +16859,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject());
|
||||
@params = (T2)@params_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -16944,6 +16967,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
|
||||
binary = (T4)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -17059,6 +17083,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject());
|
||||
binary = (T4)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -17200,6 +17225,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject());
|
||||
binary = (T4)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -17337,6 +17363,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
|
||||
binary = (T4)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -17453,6 +17480,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject());
|
||||
binary = (T4)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -17599,6 +17627,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject());
|
||||
binary = (T4)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -17768,6 +17797,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
|
||||
binary = (T2)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -17875,6 +17905,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
|
||||
binary = (T2)binary_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -18039,6 +18070,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T9)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -18420,6 +18452,7 @@ namespace OpenTK.Graphics.ES20
|
|||
try
|
||||
{
|
||||
Delegates.glTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject());
|
||||
pixels = (T10)pixels_ptr.Target;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue