intel_tex_2/opt/rustwide/workdir/src/ispc/
kernel.rs

1#[allow(non_camel_case_types,dead_code,non_upper_case_globals,non_snake_case,improper_ctypes)]
2pub mod kernel {
3/* automatically generated by rust-bindgen 0.71.1 */
4
5#[repr(C)]
6#[derive(Debug, Copy, Clone)]
7pub struct rgba_surface {
8    pub ptr: *mut u8,
9    pub width: i32,
10    pub height: i32,
11    pub stride: i32,
12}
13#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14const _: () = {
15    ["Size of rgba_surface"][::std::mem::size_of::<rgba_surface>() - 24usize];
16    ["Alignment of rgba_surface"][::std::mem::align_of::<rgba_surface>() - 8usize];
17    ["Offset of field: rgba_surface::ptr"][::std::mem::offset_of!(rgba_surface, ptr) - 0usize];
18    ["Offset of field: rgba_surface::width"][::std::mem::offset_of!(rgba_surface, width) - 8usize];
19    ["Offset of field: rgba_surface::height"]
20        [::std::mem::offset_of!(rgba_surface, height) - 12usize];
21    ["Offset of field: rgba_surface::stride"]
22        [::std::mem::offset_of!(rgba_surface, stride) - 16usize];
23};
24#[repr(C)]
25#[derive(Debug, Copy, Clone)]
26pub struct bc6h_enc_settings {
27    pub slow_mode: bool,
28    pub fast_mode: bool,
29    pub refineIterations_1p: i32,
30    pub refineIterations_2p: i32,
31    pub fastSkipTreshold: i32,
32}
33#[allow(clippy::unnecessary_operation, clippy::identity_op)]
34const _: () = {
35    ["Size of bc6h_enc_settings"][::std::mem::size_of::<bc6h_enc_settings>() - 16usize];
36    ["Alignment of bc6h_enc_settings"][::std::mem::align_of::<bc6h_enc_settings>() - 4usize];
37    ["Offset of field: bc6h_enc_settings::slow_mode"]
38        [::std::mem::offset_of!(bc6h_enc_settings, slow_mode) - 0usize];
39    ["Offset of field: bc6h_enc_settings::fast_mode"]
40        [::std::mem::offset_of!(bc6h_enc_settings, fast_mode) - 1usize];
41    ["Offset of field: bc6h_enc_settings::refineIterations_1p"]
42        [::std::mem::offset_of!(bc6h_enc_settings, refineIterations_1p) - 4usize];
43    ["Offset of field: bc6h_enc_settings::refineIterations_2p"]
44        [::std::mem::offset_of!(bc6h_enc_settings, refineIterations_2p) - 8usize];
45    ["Offset of field: bc6h_enc_settings::fastSkipTreshold"]
46        [::std::mem::offset_of!(bc6h_enc_settings, fastSkipTreshold) - 12usize];
47};
48#[repr(C)]
49#[derive(Debug, Copy, Clone)]
50pub struct bc7_enc_settings {
51    pub mode_selection: [bool; 4usize],
52    pub refineIterations: [i32; 8usize],
53    pub skip_mode2: bool,
54    pub fastSkipTreshold_mode1: i32,
55    pub fastSkipTreshold_mode3: i32,
56    pub fastSkipTreshold_mode7: i32,
57    pub mode45_channel0: i32,
58    pub refineIterations_channel: i32,
59    pub channels: i32,
60}
61#[allow(clippy::unnecessary_operation, clippy::identity_op)]
62const _: () = {
63    ["Size of bc7_enc_settings"][::std::mem::size_of::<bc7_enc_settings>() - 64usize];
64    ["Alignment of bc7_enc_settings"][::std::mem::align_of::<bc7_enc_settings>() - 4usize];
65    ["Offset of field: bc7_enc_settings::mode_selection"]
66        [::std::mem::offset_of!(bc7_enc_settings, mode_selection) - 0usize];
67    ["Offset of field: bc7_enc_settings::refineIterations"]
68        [::std::mem::offset_of!(bc7_enc_settings, refineIterations) - 4usize];
69    ["Offset of field: bc7_enc_settings::skip_mode2"]
70        [::std::mem::offset_of!(bc7_enc_settings, skip_mode2) - 36usize];
71    ["Offset of field: bc7_enc_settings::fastSkipTreshold_mode1"]
72        [::std::mem::offset_of!(bc7_enc_settings, fastSkipTreshold_mode1) - 40usize];
73    ["Offset of field: bc7_enc_settings::fastSkipTreshold_mode3"]
74        [::std::mem::offset_of!(bc7_enc_settings, fastSkipTreshold_mode3) - 44usize];
75    ["Offset of field: bc7_enc_settings::fastSkipTreshold_mode7"]
76        [::std::mem::offset_of!(bc7_enc_settings, fastSkipTreshold_mode7) - 48usize];
77    ["Offset of field: bc7_enc_settings::mode45_channel0"]
78        [::std::mem::offset_of!(bc7_enc_settings, mode45_channel0) - 52usize];
79    ["Offset of field: bc7_enc_settings::refineIterations_channel"]
80        [::std::mem::offset_of!(bc7_enc_settings, refineIterations_channel) - 56usize];
81    ["Offset of field: bc7_enc_settings::channels"]
82        [::std::mem::offset_of!(bc7_enc_settings, channels) - 60usize];
83};
84#[repr(C)]
85#[derive(Debug, Copy, Clone)]
86pub struct etc_enc_settings {
87    pub fastSkipTreshold: i32,
88}
89#[allow(clippy::unnecessary_operation, clippy::identity_op)]
90const _: () = {
91    ["Size of etc_enc_settings"][::std::mem::size_of::<etc_enc_settings>() - 4usize];
92    ["Alignment of etc_enc_settings"][::std::mem::align_of::<etc_enc_settings>() - 4usize];
93    ["Offset of field: etc_enc_settings::fastSkipTreshold"]
94        [::std::mem::offset_of!(etc_enc_settings, fastSkipTreshold) - 0usize];
95};
96unsafe extern "C" {
97    pub fn CompressBlocksBC1_ispc(src: *mut rgba_surface, dst: *mut u8);
98}
99unsafe extern "C" {
100    pub fn CompressBlocksBC3_ispc(src: *mut rgba_surface, dst: *mut u8);
101}
102unsafe extern "C" {
103    pub fn CompressBlocksBC4_ispc(src: *mut rgba_surface, dst: *mut u8);
104}
105unsafe extern "C" {
106    pub fn CompressBlocksBC5_ispc(src: *mut rgba_surface, dst: *mut u8);
107}
108unsafe extern "C" {
109    pub fn CompressBlocksBC6H_ispc(
110        src: *mut rgba_surface,
111        dst: *mut u8,
112        settings: *mut bc6h_enc_settings,
113    );
114}
115unsafe extern "C" {
116    pub fn CompressBlocksBC7_ispc(
117        src: *mut rgba_surface,
118        dst: *mut u8,
119        settings: *mut bc7_enc_settings,
120    );
121}
122unsafe extern "C" {
123    pub fn CompressBlocksETC1_ispc(
124        src: *mut rgba_surface,
125        dst: *mut u8,
126        settings: *mut etc_enc_settings,
127    );
128}
129}