OpenCL bitfields are not mapped to 'long', not 'int'. Fixes issue [#964] ([OpenCL] Bitfields should be mapped to 'long' not 'int').

This commit is contained in:
the_fiddler 2009-06-25 10:56:29 +00:00
parent 3a8dc10caa
commit f2a96af6bc

View file

@ -94,7 +94,7 @@ namespace OpenTK.Compute
} }
[Flags] [Flags]
public enum DeviceType public enum DeviceType : long
{ {
DeviceTypeDefault = (1 << 0), DeviceTypeDefault = (1 << 0),
DeviceTypeCpu = (1 << 1), DeviceTypeCpu = (1 << 1),
@ -157,14 +157,14 @@ namespace OpenTK.Compute
} }
[Flags] [Flags]
public enum DeviceAddressInfo public enum DeviceAddressInfo : long
{ {
DeviceAddress32Bits = (1 << 0), DeviceAddress32Bits = (1 << 0),
DeviceAddress64Bits = (1 << 1), DeviceAddress64Bits = (1 << 1),
} }
[Flags] [Flags]
public enum DeviceFpConfig public enum DeviceFpConfig : long
{ {
FpDenorm = (1 << 0), FpDenorm = (1 << 0),
FpInfNan = (1 << 1), FpInfNan = (1 << 1),
@ -188,14 +188,14 @@ namespace OpenTK.Compute
} }
[Flags] [Flags]
public enum DeviceExecCapabilities public enum DeviceExecCapabilities : long
{ {
ExecKernel = (1 << 0), ExecKernel = (1 << 0),
ExecNativeFnAsKernel = (1 << 1), ExecNativeFnAsKernel = (1 << 1),
} }
[Flags] [Flags]
public enum CommandQueueProperties public enum CommandQueueProperties : long
{ {
QueueOutOfOrderExecModeEnable = (1 << 0), QueueOutOfOrderExecModeEnable = (1 << 0),
QueueProfilingEnable = (1 << 1), QueueProfilingEnable = (1 << 1),
@ -218,7 +218,7 @@ namespace OpenTK.Compute
} }
[Flags] [Flags]
public enum MemFlags public enum MemFlags : long
{ {
MemReadWrite = (1 << 0), MemReadWrite = (1 << 0),
MemWriteOnly = (1 << 1), MemWriteOnly = (1 << 1),
@ -312,7 +312,7 @@ namespace OpenTK.Compute
} }
[Flags] [Flags]
public enum MapFlags public enum MapFlags : long
{ {
MapRead = (1 << 0), MapRead = (1 << 0),
MapWrite = (1 << 1), MapWrite = (1 << 1),