opencl_sys/cl_platform.rs
1// Copyright (c) 2022 Via Technology Ltd.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! FFI bindings for [cl_platform.h](https://github.com/KhronosGroup/OpenCL-Headers/blob/main/CL/cl_platform.h)
16
17#![allow(non_camel_case_types)]
18
19pub type cl_char = i8;
20pub type cl_uchar = u8;
21pub type cl_short = i16;
22pub type cl_ushort = u16;
23pub type cl_int = i32;
24pub type cl_uint = u32;
25pub type cl_long = i64;
26pub type cl_ulong = u64;
27
28pub type cl_half = u16;
29pub type cl_float = f32;
30pub type cl_double = f64;
31
32pub type DXGI_FORMAT = u32;