spirv_to_dxil_sys/
lib.rs

1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4
5mod bindings;
6mod native;
7
8pub use bindings::*;
9use bytemuck::NoUninit;
10
11impl Default for dxil_spirv_yz_flip_mode {
12    fn default() -> Self {
13        dxil_spirv_yz_flip_mode::YZ_FLIP_NONE
14    }
15}
16
17// runtime cbv
18impl Default for dxil_spirv_runtime_conf_runtime_cbv {
19    fn default() -> Self {
20        Self {
21            register_space: 0,
22            base_shader_register: 0,
23        }
24    }
25}
26
27// push cbv
28impl Default for dxil_spirv_runtime_conf_push_cbv {
29    fn default() -> Self {
30        Self {
31            register_space: 0,
32            base_shader_register: 0,
33        }
34    }
35}
36
37// flip options
38impl Default for dxil_spirv_runtime_conf_flip_conf {
39    fn default() -> Self {
40        Self {
41            mode: Default::default(),
42            y_mask: 0,
43            z_mask: 0,
44        }
45    }
46}
47
48impl Default for dxil_spirv_runtime_conf {
49    fn default() -> Self {
50        Self {
51            runtime_data_cbv: Default::default(),
52            push_constant_cbv: Default::default(),
53            zero_based_vertex_instance_id: true,
54            zero_based_compute_workgroup_id: false,
55            yz_flip: Default::default(),
56            declared_read_only_images_as_srvs: false,
57            inferred_read_only_images_as_srvs: false,
58            force_sample_rate_shading: false,
59            lower_view_index: false,
60            lower_view_index_to_rt_layer: false,
61            shader_model_max: dxil_shader_model::ShaderModel6_0,
62        }
63    }
64}
65
66unsafe impl NoUninit for dxil_spirv_vertex_runtime_data {}
67unsafe impl NoUninit for dxil_spirv_vertex_runtime_data__bindgen_ty_1 {}
68unsafe impl NoUninit for dxil_spirv_vertex_runtime_data__bindgen_ty_1__bindgen_ty_1 {}
69unsafe impl NoUninit for dxil_spirv_compute_runtime_data {}