Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1452 | chris | 1 | #region License |
| 2 | // |
||
| 3 | // The Open Toolkit Library License |
||
| 4 | // |
||
| 5 | // Copyright (c) 2006 - 2009 the Open Toolkit library. |
||
| 6 | // |
||
| 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy |
||
| 8 | // of this software and associated documentation files (the "Software"), to deal |
||
| 9 | // in the Software without restriction, including without limitation the rights to |
||
| 10 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
||
| 11 | // the Software, and to permit persons to whom the Software is furnished to do |
||
| 12 | // so, subject to the following conditions: |
||
| 13 | // |
||
| 14 | // The above copyright notice and this permission notice shall be included in all |
||
| 15 | // copies or substantial portions of the Software. |
||
| 16 | // |
||
| 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||
| 18 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
||
| 19 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
||
| 20 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
||
| 21 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||
| 22 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||
| 23 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
||
| 24 | // OTHER DEALINGS IN THE SOFTWARE. |
||
| 25 | // |
||
| 26 | #endregion |
||
| 27 | |||
| 28 | #if EXPERIMENTAL |
||
| 29 | |||
| 30 | using System; |
||
| 31 | using System.Collections.Generic; |
||
| 32 | using System.Text; |
||
| 33 | using System.Runtime.InteropServices; |
||
| 34 | |||
| 35 | namespace OpenTK.Compute.CL10 |
||
| 36 | { |
||
| 37 | /// <summary> |
||
| 38 | /// Defines the format of an OpenCL image. |
||
| 39 | /// </summary> |
||
| 40 | [StructLayout(LayoutKind.Sequential)] |
||
| 41 | public struct ImageFormat |
||
| 42 | { |
||
| 43 | ChannelOrder image_channel_order; |
||
| 44 | ChannelType image_channel_data_type; |
||
| 45 | |||
| 46 | /// <summary> |
||
| 47 | /// Gets or sets a <see cref="ChannelOrder"/> value, which indicates the order of the image channels. |
||
| 48 | /// </summary> |
||
| 49 | public ChannelOrder ChannelOrder { get { return image_channel_order; } set { image_channel_order = value; } } |
||
| 50 | |||
| 51 | /// <summary> |
||
| 52 | /// Gets or sets a <see cref="ChannelType"/> value, which indicates the data type of each image channel. |
||
| 53 | /// </summary> |
||
| 54 | public ChannelType ChannelType { get { return image_channel_data_type; } set { image_channel_data_type = value; } } |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | #endif |