Crate spirv_cross_sys

Crate spirv_cross_sys 

Source
Expand description

Raw bindings to the C API of SPIRV-Cross.

Incorrect use of _init functions can cause undefined behaviour.

Always go through MaybeUninit for anything that sets an enum, then check for i32::MAX.

spvc_rs functions are unstable and are meant for consumption by spirv-cross2 only.

Structs§

BufferRange
ConstantId
HlslBindingFlagBits
HlslBindingFlags
HlslResourceBinding
HlslResourceBindingMapping
HlslRootConstants
HlslVertexAttributeRemap
MslConstexprSampler
MslResourceBinding
MslResourceBinding2
MslSamplerYcbcrConversion
MslShaderInterfaceVar
MslShaderInterfaceVar2
MslVertexAttribute
SpvBuiltIn
SpvCapability
SpvDecoration
SpvDim
SpvExecutionMode
SpvExecutionModel
SpvFPRoundingMode
SpvId
SpvImageFormat
SpvStorageClass
TypeId
VariableId
spvc_combined_image_sampler
spvc_compiler_option
spvc_compiler_options_s
spvc_compiler_s
spvc_constant_s
spvc_context_s
spvc_entry_point
spvc_parsed_ir_s
spvc_reflected_builtin_resource
spvc_reflected_resource
spvc_resources_s
spvc_set_s
spvc_specialization_constant
spvc_type_s

Enums§

BaseType
BuiltinResourceType
CompilerBackend
MslChromaLocation
MslComponentSwizzle
MslFormatResolution
MslIndexType
MslPlatform
MslSamplerAddress
MslSamplerBorderColor
MslSamplerCompareFunc
MslSamplerCoord
MslSamplerFilter
MslSamplerMipFilter
MslSamplerYcbcrModelConversion
MslSamplerYcbcrRange
MslShaderInputFormat
MslShaderVariableFormat
MslShaderVariableRate
MslVertexFormat
ResourceType
spvc_capture_mode
spvc_result

Constants§

SpvAccessQualifier_Max
SpvAccessQualifier_ReadOnly
SpvAccessQualifier_ReadWrite
SpvAccessQualifier_WriteOnly

Traits§

FromPrimitive
A generic trait for converting a number to a value.
Pod
Marker trait for “plain old data”.
ToPrimitive
A generic trait for converting a value to a number.
Zeroable
Trait for types that can be safely created with zeroed.

Functions§

spvc_compiler_add_header_line
spvc_compiler_buffer_get_hlsl_counter_buffer
spvc_compiler_buffer_is_hlsl_counter_buffer
spvc_compiler_build_combined_image_samplers
spvc_compiler_build_dummy_sampler_for_combined_images
spvc_compiler_compile
spvc_compiler_create_compiler_options
spvc_compiler_create_shader_resources
spvc_compiler_create_shader_resources_for_active_variables
spvc_compiler_flatten_buffer_block
spvc_compiler_get_active_buffer_ranges
spvc_compiler_get_active_interface_variables
spvc_compiler_get_binary_offset_for_decoration
spvc_compiler_get_buffer_block_decorations
spvc_compiler_get_cleansed_entry_point_name
spvc_compiler_get_combined_image_samplers
spvc_compiler_get_constant_handle
spvc_compiler_get_current_id_bound
spvc_compiler_get_declared_capabilities
spvc_compiler_get_declared_extensions
spvc_compiler_get_declared_struct_member_size
spvc_compiler_get_declared_struct_size
spvc_compiler_get_declared_struct_size_runtime_array
spvc_compiler_get_decoration
spvc_compiler_get_decoration_string
spvc_compiler_get_entry_points
spvc_compiler_get_execution_mode_argument
spvc_compiler_get_execution_mode_argument_by_index
spvc_compiler_get_execution_model
spvc_compiler_get_execution_modes
spvc_compiler_get_member_decoration
spvc_compiler_get_member_decoration_string
spvc_compiler_get_member_name
spvc_compiler_get_name
spvc_compiler_get_num_required_extensions
spvc_compiler_get_remapped_declared_block_name
spvc_compiler_get_required_extension
spvc_compiler_get_specialization_constants
spvc_compiler_get_type_handle
spvc_compiler_get_work_group_size_specialization_constants
spvc_compiler_has_active_builtin
spvc_compiler_has_decoration
spvc_compiler_has_member_decoration
spvc_compiler_hlsl_add_resource_binding
spvc_compiler_hlsl_add_vertex_attribute_remap
spvc_compiler_hlsl_is_resource_used
spvc_compiler_hlsl_remap_num_workgroups_builtin
spvc_compiler_hlsl_set_resource_binding_flags
spvc_compiler_hlsl_set_root_constants_layout
spvc_compiler_install_compiler_options
spvc_compiler_mask_stage_output_by_builtin
spvc_compiler_mask_stage_output_by_location
spvc_compiler_msl_add_discrete_descriptor_set
spvc_compiler_msl_add_dynamic_buffer
spvc_compiler_msl_add_inline_uniform_block
spvc_compiler_msl_add_resource_binding
spvc_compiler_msl_add_resource_binding_2
spvc_compiler_msl_add_shader_input
spvc_compiler_msl_add_shader_input_2
spvc_compiler_msl_add_shader_output
spvc_compiler_msl_add_shader_output_2
spvc_compiler_msl_add_vertex_attribute
spvc_compiler_msl_get_automatic_resource_binding
spvc_compiler_msl_get_automatic_resource_binding_secondary
spvc_compiler_msl_get_combined_sampler_suffix
spvc_compiler_msl_is_rasterization_disabled
spvc_compiler_msl_is_resource_used
spvc_compiler_msl_is_shader_input_used
spvc_compiler_msl_is_shader_output_used
spvc_compiler_msl_is_vertex_attribute_used
spvc_compiler_msl_needs_aux_buffer
spvc_compiler_msl_needs_buffer_size_buffer
spvc_compiler_msl_needs_input_threadgroup_mem
spvc_compiler_msl_needs_output_buffer
spvc_compiler_msl_needs_patch_output_buffer
spvc_compiler_msl_needs_swizzle_buffer
spvc_compiler_msl_remap_constexpr_sampler
spvc_compiler_msl_remap_constexpr_sampler_by_binding
spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr
spvc_compiler_msl_remap_constexpr_sampler_ycbcr
spvc_compiler_msl_set_argument_buffer_device_address_space
spvc_compiler_msl_set_combined_sampler_suffix
spvc_compiler_msl_set_fragment_output_components
spvc_compiler_options_set_bool
spvc_compiler_options_set_uint
spvc_compiler_rename_entry_point
spvc_compiler_require_extension
spvc_compiler_set_decoration
spvc_compiler_set_decoration_string
spvc_compiler_set_enabled_interface_variables
spvc_compiler_set_entry_point
spvc_compiler_set_execution_mode
spvc_compiler_set_execution_mode_with_arguments
spvc_compiler_set_member_decoration
spvc_compiler_set_member_decoration_string
spvc_compiler_set_member_name
spvc_compiler_set_name
spvc_compiler_type_struct_member_array_stride
spvc_compiler_type_struct_member_matrix_stride
spvc_compiler_type_struct_member_offset
spvc_compiler_unset_decoration
spvc_compiler_unset_execution_mode
spvc_compiler_unset_member_decoration
spvc_compiler_update_active_builtins
spvc_compiler_variable_is_depth_or_compare
spvc_constant_get_scalar_fp16
spvc_constant_get_scalar_fp32
spvc_constant_get_scalar_fp64
spvc_constant_get_scalar_i8
spvc_constant_get_scalar_i16
spvc_constant_get_scalar_i32
spvc_constant_get_scalar_i64
spvc_constant_get_scalar_u8
spvc_constant_get_scalar_u16
spvc_constant_get_scalar_u32
spvc_constant_get_scalar_u64
spvc_constant_get_subconstants
spvc_constant_get_type
spvc_constant_set_scalar_fp16
spvc_constant_set_scalar_fp32
spvc_constant_set_scalar_fp64
spvc_constant_set_scalar_i8
spvc_constant_set_scalar_i16
spvc_constant_set_scalar_i32
spvc_constant_set_scalar_i64
spvc_constant_set_scalar_u8
spvc_constant_set_scalar_u16
spvc_constant_set_scalar_u32
spvc_constant_set_scalar_u64
spvc_context_create
spvc_context_create_compiler
spvc_context_destroy
spvc_context_get_last_error_string
spvc_context_parse_spirv
spvc_context_release_allocations
spvc_context_set_error_callback
spvc_get_commit_revision_and_timestamp
spvc_get_version
spvc_hlsl_resource_binding_init
spvc_msl_constexpr_sampler_init
spvc_msl_get_aux_buffer_struct_version
spvc_msl_resource_binding_init
spvc_msl_resource_binding_init_2
spvc_msl_sampler_ycbcr_conversion_init
spvc_msl_shader_input_init
spvc_msl_shader_interface_var_init
spvc_msl_shader_interface_var_init_2
spvc_msl_vertex_attribute_init
spvc_resources_get_builtin_resource_list_for_type
spvc_resources_get_resource_list_for_type
spvc_rs_compiler_get_execution_model_indirect
spvc_rs_compiler_variable_get_type
spvc_rs_constant_get_matrix_colsize
spvc_rs_constant_get_vecsize
spvc_rs_constant_is_scalar
spvc_rs_expose_set
spvc_rs_type_is_forward_pointer
spvc_rs_type_is_pointer
spvc_type_array_dimension_is_literal
spvc_type_get_array_dimension
spvc_type_get_base_type_id
spvc_type_get_basetype
spvc_type_get_bit_width
spvc_type_get_columns
spvc_type_get_image_access_qualifier
spvc_type_get_image_arrayed
spvc_type_get_image_dimension
spvc_type_get_image_is_depth
spvc_type_get_image_is_storage
spvc_type_get_image_multisampled
spvc_type_get_image_sampled_type
spvc_type_get_image_storage_format
spvc_type_get_member_type
spvc_type_get_num_array_dimensions
spvc_type_get_num_member_types
spvc_type_get_storage_class
spvc_type_get_vector_size

Type Aliases§

MslShaderInput
SpvAccessQualifier
spvc_compiler
spvc_compiler_options
spvc_constant
spvc_context
spvc_error_callback
spvc_parsed_ir
spvc_resources
spvc_set
spvc_type