2022-12-04 10:32:10 +11:00
|
|
|
language = "C"
|
|
|
|
cpp_compat = true
|
|
|
|
include_guard = "__LIBRASHADER_H__"
|
|
|
|
pragma_once = true
|
|
|
|
usize_is_size_t = true
|
2022-12-05 14:37:03 +11:00
|
|
|
documentation_style = "c++"
|
2023-01-14 09:59:22 +11:00
|
|
|
after_includes = "#if defined(_WIN32) && defined(LIBRA_RUNTIME_D3D11)\n#include <d3d11.h>\n#else\ntypedef void ID3D11Device;typedef void ID3D11RenderTargetView;typedef void ID3D1ShaderResourceView;\n#endif\n#if defined(LIBRA_RUNTIME_VULKAN)\n#include <vulkan\\vulkan.h>\n#endif"
|
2023-01-14 08:05:13 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[defines]
|
|
|
|
"feature = runtime-opengl" = "LIBRA_RUNTIME_OPENGL"
|
|
|
|
"feature = runtime-d3d11" = "LIBRA_RUNTIME_D3D11"
|
2023-01-14 09:59:22 +11:00
|
|
|
"feature = runtime-vulkan" = "LIBRA_RUNTIME_VULKAN"
|
2023-01-14 08:05:13 +11:00
|
|
|
|
2022-12-04 10:32:10 +11:00
|
|
|
[parse]
|
|
|
|
parse_deps = true
|
|
|
|
include = ["librashader",
|
|
|
|
"librashader-presets",
|
|
|
|
"librashader-preprocess",
|
|
|
|
"librashader-reflect",
|
2022-12-05 15:54:47 +11:00
|
|
|
"librashader-runtime-gl",
|
2023-01-14 09:59:22 +11:00
|
|
|
"librashader-runtime-d3d11",
|
|
|
|
"librashader-runtime-vk",
|
2022-12-04 10:32:10 +11:00
|
|
|
]
|
2023-01-14 08:05:13 +11:00
|
|
|
expand = ["librashader-capi"]
|
2022-12-04 10:32:10 +11:00
|
|
|
|
|
|
|
[struct]
|
|
|
|
|
|
|
|
[enum]
|
|
|
|
rename_variants = "ScreamingSnakeCase"
|
|
|
|
prefix_with_name = true
|
|
|
|
|
|
|
|
[export]
|
|
|
|
include = [
|
2022-12-05 14:37:03 +11:00
|
|
|
# preset
|
2023-01-14 11:17:57 +11:00
|
|
|
"PFN_libra_preset_create",
|
2023-01-14 08:05:13 +11:00
|
|
|
"PFN_libra_preset_free",
|
|
|
|
"PFN_libra_preset_set_param",
|
|
|
|
"PFN_libra_preset_get_param",
|
|
|
|
"PFN_libra_preset_print",
|
|
|
|
"PFN_libra_preset_get_runtime_param_names",
|
2022-12-05 14:37:03 +11:00
|
|
|
|
|
|
|
# error
|
2023-01-14 08:05:13 +11:00
|
|
|
"PFN_libra_error_errno",
|
|
|
|
"PFN_libra_error_print",
|
|
|
|
"PFN_libra_error_free",
|
|
|
|
"PFN_libra_error_write",
|
|
|
|
"PFN_libra_error_free_string",
|
2022-12-05 16:06:37 +11:00
|
|
|
|
|
|
|
# gl
|
2023-01-14 08:05:13 +11:00
|
|
|
"PFN_libra_gl_init_context",
|
|
|
|
"PFN_libra_gl_filter_chain_create",
|
|
|
|
"PFN_libra_gl_filter_chain_frame",
|
|
|
|
"PFN_libra_gl_filter_chain_free",
|
2022-12-05 16:06:37 +11:00
|
|
|
|
|
|
|
# d3d11
|
2023-01-14 08:05:13 +11:00
|
|
|
"PFN_libra_d3d11_filter_chain_create",
|
|
|
|
"PFN_libra_d3d11_filter_chain_frame",
|
|
|
|
"PFN_libra_d3d11_filter_chain_free",
|
2023-01-14 11:17:57 +11:00
|
|
|
|
|
|
|
# d3d11
|
|
|
|
"PFN_libra_vk_filter_chain_create",
|
|
|
|
"PFN_libra_vk_filter_chain_frame",
|
|
|
|
"PFN_libra_vk_filter_chain_free",
|
2022-12-04 10:32:10 +11:00
|
|
|
]
|
|
|
|
|
|
|
|
[export.rename]
|
|
|
|
"LibrashaderError" = "_libra_error"
|
|
|
|
"ShaderPreset" = "_shader_preset"
|
2022-12-04 10:56:57 +11:00
|
|
|
"FilterChainGL" = "_filter_chain_gl"
|
|
|
|
"FilterChainOptionsGL" = "filter_chain_gl_opt_t"
|
2022-12-05 14:37:03 +11:00
|
|
|
"FrameOptionsGL" = "frame_gl_opt_t"
|
2022-12-05 15:54:47 +11:00
|
|
|
"FilterChainD3D11" = "_filter_chain_d3d11"
|
|
|
|
"FilterChainOptionsD3D11" = "filter_chain_d3d11_opt_t"
|
2023-01-14 09:59:22 +11:00
|
|
|
"FrameOptionsD3D11" = "frame_vk_opt_t"
|
|
|
|
"FilterChainVulkan" = "_filter_chain_vk"
|
|
|
|
"FilterChainOptionsVulkan" = "filter_chain_vk_opt_t"
|
|
|
|
"FrameOptionsVullam" = "frame_vk_opt_t"
|
|
|
|
|
|
|
|
# vulkan renames
|
|
|
|
"PhysicalDevice" = "VkPhysicalDevice"
|
|
|
|
"Instance" = "VkInstance"
|
|
|
|
"Device" = "VkDevice"
|
|
|
|
"CommandBuffer" = "VkCommandBuffer"
|
|
|
|
"Format" = "VkFormat"
|
|
|
|
"Image" = "VkImage"
|