rspirv/grammar/
autogen_tables.rs1include!("autogen_table.rs");
6pub mod arm_motion_engine_100 {
7 use super::*;
8 include!("autogen_arm_motion_engine_100.rs");
9}
10pub use arm_motion_engine_100::ARM_MOTION_ENGINE_100_INSTRUCTION_TABLE;
11pub mod debuginfo {
12 use super::*;
13 include!("autogen_debuginfo.rs");
14}
15pub use debuginfo::DEBUGINFO_INSTRUCTION_TABLE;
16pub mod glsl_std_450 {
17 use super::*;
18 include!("autogen_glsl_std_450.rs");
19}
20pub use glsl_std_450::GLSL_STD_450_INSTRUCTION_TABLE;
21pub mod nonsemantic_clspvreflection {
22 use super::*;
23 include!("autogen_nonsemantic_clspvreflection.rs");
24}
25pub use nonsemantic_clspvreflection::NONSEMANTIC_CLSPVREFLECTION_INSTRUCTION_TABLE;
26pub mod nonsemantic_debugbreak {
27 use super::*;
28 include!("autogen_nonsemantic_debugbreak.rs");
29}
30pub use nonsemantic_debugbreak::NONSEMANTIC_DEBUGBREAK_INSTRUCTION_TABLE;
31pub mod nonsemantic_debugprintf {
32 use super::*;
33 include!("autogen_nonsemantic_debugprintf.rs");
34}
35pub use nonsemantic_debugprintf::NONSEMANTIC_DEBUGPRINTF_INSTRUCTION_TABLE;
36pub mod nonsemantic_shader_debuginfo_100 {
37 use super::*;
38 include!("autogen_nonsemantic_shader_debuginfo_100.rs");
39}
40pub use nonsemantic_shader_debuginfo_100::NONSEMANTIC_SHADER_DEBUGINFO_100_INSTRUCTION_TABLE;
41pub mod nonsemantic_vkspreflection {
42 use super::*;
43 include!("autogen_nonsemantic_vkspreflection.rs");
44}
45pub use nonsemantic_vkspreflection::NONSEMANTIC_VKSPREFLECTION_INSTRUCTION_TABLE;
46pub mod opencl_debuginfo_100 {
47 use super::*;
48 include!("autogen_opencl_debuginfo_100.rs");
49}
50pub use opencl_debuginfo_100::OPENCL_DEBUGINFO_100_INSTRUCTION_TABLE;
51pub mod opencl_std_100 {
52 use super::*;
53 include!("autogen_opencl_std_100.rs");
54}
55pub use opencl_std_100::OPENCL_STD_100_INSTRUCTION_TABLE;
56pub mod spv_amd_gcn_shader {
57 use super::*;
58 include!("autogen_spv_amd_gcn_shader.rs");
59}
60pub use spv_amd_gcn_shader::SPV_AMD_GCN_SHADER_INSTRUCTION_TABLE;
61pub mod spv_amd_shader_ballot {
62 use super::*;
63 include!("autogen_spv_amd_shader_ballot.rs");
64}
65pub use spv_amd_shader_ballot::SPV_AMD_SHADER_BALLOT_INSTRUCTION_TABLE;
66pub mod spv_amd_shader_explicit_vertex_parameter {
67 use super::*;
68 include!("autogen_spv_amd_shader_explicit_vertex_parameter.rs");
69}
70pub use spv_amd_shader_explicit_vertex_parameter::SPV_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_INSTRUCTION_TABLE;
71pub mod spv_amd_shader_trinary_minmax {
72 use super::*;
73 include!("autogen_spv_amd_shader_trinary_minmax.rs");
74}
75pub use spv_amd_shader_trinary_minmax::SPV_AMD_SHADER_TRINARY_MINMAX_INSTRUCTION_TABLE;
76pub mod tosa_001000_1 {
77 use super::*;
78 include!("autogen_tosa_001000_1.rs");
79}
80pub use tosa_001000_1::TOSA_001000_1_INSTRUCTION_TABLE;
81
82pub fn ext_inst_table(set: &str) -> Option<&'static InstructionTable<ExtInstOp>> {
83 Some(match set {
84 "Arm.MotionEngine.100" => &ARM_MOTION_ENGINE_100_INSTRUCTION_TABLE,
85 "DebugInfo" => &DEBUGINFO_INSTRUCTION_TABLE,
86 "GLSL.std.450" => &GLSL_STD_450_INSTRUCTION_TABLE,
87 "NonSemantic.ClspvReflection" => &NONSEMANTIC_CLSPVREFLECTION_INSTRUCTION_TABLE,
88 "NonSemantic.DebugBreak" => &NONSEMANTIC_DEBUGBREAK_INSTRUCTION_TABLE,
89 "NonSemantic.DebugPrintf" => &NONSEMANTIC_DEBUGPRINTF_INSTRUCTION_TABLE,
90 "NonSemantic.Shader.DebugInfo.100" => &NONSEMANTIC_SHADER_DEBUGINFO_100_INSTRUCTION_TABLE,
91 "NonSemantic.VkspReflection" => &NONSEMANTIC_VKSPREFLECTION_INSTRUCTION_TABLE,
92 "OpenCL.DebugInfo.100" => &OPENCL_DEBUGINFO_100_INSTRUCTION_TABLE,
93 "OpenCL.std" => &OPENCL_STD_100_INSTRUCTION_TABLE,
94 "SPV_AMD_gcn_shader" => &SPV_AMD_GCN_SHADER_INSTRUCTION_TABLE,
95 "SPV_AMD_shader_ballot" => &SPV_AMD_SHADER_BALLOT_INSTRUCTION_TABLE,
96 "SPV_AMD_shader_explicit_vertex_parameter" => {
97 &SPV_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_INSTRUCTION_TABLE
98 }
99 "SPV_AMD_shader_trinary_minmax" => &SPV_AMD_SHADER_TRINARY_MINMAX_INSTRUCTION_TABLE,
100 "TOSA.001000.1" => &TOSA_001000_1_INSTRUCTION_TABLE,
101 _ => return None,
102 })
103}