Class Spvc
- java.lang.Object
-
- org.lwjgl.util.spvc.Spvc
-
public class Spvc extends java.lang.ObjectNative bindings to the C API of SPIRV-Cross.SPIRV-Cross is a tool designed for parsing and converting SPIR-V to other shader languages.
- Convert SPIR-V to readable, usable and efficient GLSL
- Convert SPIR-V to readable, usable and efficient Metal Shading Language (MSL)
- Convert SPIR-V to readable, usable and efficient HLSL
- Convert SPIR-V to debuggable C++ [DEPRECATED]
- Convert SPIR-V to a JSON reflection format [EXPERIMENTAL]
- Reflection API to simplify the creation of Vulkan pipeline layouts
- Reflection API to modify and tweak OpDecorations
- Supports "all" of vertex, fragment, tessellation, geometry and compute shaders.
SPIRV-Cross tries hard to emit readable and clean output from the SPIR-V. The goal is to emit GLSL or MSL that looks like it was written by a human and not awkward IR/assembly-like code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpvc.FunctionsContains the function pointers loaded from the spvcSharedLibrary.
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.lwjgl.system.SharedLibrarygetLibrary()Returns the spvcSharedLibrary.static intnspvc_compiler_add_header_line(long compiler, long line)Unsafe version of:compiler_add_header_linestatic booleannspvc_compiler_buffer_get_hlsl_counter_buffer(long compiler, int id, long counter_id)static intnspvc_compiler_build_dummy_sampler_for_combined_images(long compiler, long id)Unsafe version of:compiler_build_dummy_sampler_for_combined_imagesstatic intnspvc_compiler_compile(long compiler, long source)Unsafe version of:compiler_compilestatic intnspvc_compiler_create_compiler_options(long compiler, long options)Unsafe version of:compiler_create_compiler_optionsstatic intnspvc_compiler_create_shader_resources(long compiler, long resources)static intnspvc_compiler_create_shader_resources_for_active_variables(long compiler, long resources, long active)static intnspvc_compiler_get_active_buffer_ranges(long compiler, int id, long ranges, long num_ranges)Unsafe version of:compiler_get_active_buffer_rangesstatic intnspvc_compiler_get_active_interface_variables(long compiler, long set)Unsafe version of:compiler_get_active_interface_variablesstatic booleannspvc_compiler_get_binary_offset_for_decoration(long compiler, int id, int decoration, long word_offset)Unsafe version of:compiler_get_binary_offset_for_decorationstatic intnspvc_compiler_get_buffer_block_decorations(long compiler, int id, long decorations, long num_decorations)static longnspvc_compiler_get_cleansed_entry_point_name(long compiler, long name, int model)static intnspvc_compiler_get_combined_image_samplers(long compiler, long samplers, long num_samplers)static intnspvc_compiler_get_declared_capabilities(long compiler, long capabilities, long num_capabilities)static intnspvc_compiler_get_declared_extensions(long compiler, long extensions, long num_extensions)static intnspvc_compiler_get_declared_struct_member_size(long compiler, long type, int index, long size)static intnspvc_compiler_get_declared_struct_size(long compiler, long struct_type, long size)Unsafe version of:compiler_get_declared_struct_sizestatic intnspvc_compiler_get_declared_struct_size_runtime_array(long compiler, long struct_type, long array_size, long size)static longnspvc_compiler_get_decoration_string(long compiler, int id, int decoration)static intnspvc_compiler_get_entry_points(long compiler, long entry_points, long num_entry_points)Unsafe version of:compiler_get_entry_pointsstatic intnspvc_compiler_get_execution_modes(long compiler, long modes, long num_modes)static longnspvc_compiler_get_member_decoration_string(long compiler, int id, int member_index, int decoration)static longnspvc_compiler_get_member_name(long compiler, int id, int member_index)static longnspvc_compiler_get_name(long compiler, int id)static longnspvc_compiler_get_remapped_declared_block_name(long compiler, int id)static intnspvc_compiler_get_specialization_constants(long compiler, long constants, long num_constants)Unsafe version of:compiler_get_specialization_constantsstatic intnspvc_compiler_get_work_group_size_specialization_constants(long compiler, long x, long y, long z)static intnspvc_compiler_hlsl_add_resource_binding(long compiler, long binding)static intnspvc_compiler_hlsl_add_vertex_attribute_remap(long compiler, long remap, long remaps)static intnspvc_compiler_hlsl_set_root_constants_layout(long compiler, long constant_info, long count)Unsafe version of:compiler_hlsl_set_root_constants_layoutstatic intnspvc_compiler_msl_add_resource_binding(long compiler, long binding)static intnspvc_compiler_msl_add_shader_input(long compiler, long input)static intnspvc_compiler_msl_add_vertex_attribute(long compiler, long attrs)static longnspvc_compiler_msl_get_combined_sampler_suffix(long compiler)static intnspvc_compiler_msl_remap_constexpr_sampler(long compiler, int id, long sampler)static intnspvc_compiler_msl_remap_constexpr_sampler_by_binding(long compiler, int desc_set, int binding, long sampler)static intnspvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr(long compiler, int desc_set, int binding, long sampler, long conv)static intnspvc_compiler_msl_remap_constexpr_sampler_ycbcr(long compiler, int id, long sampler, long conv)static intnspvc_compiler_msl_set_combined_sampler_suffix(long compiler, long suffix)static intnspvc_compiler_rename_entry_point(long compiler, long old_name, long new_name, int model)static intnspvc_compiler_require_extension(long compiler, long ext)static voidnspvc_compiler_set_decoration_string(long compiler, int id, int decoration, long argument)static intnspvc_compiler_set_entry_point(long compiler, long name, int model)static voidnspvc_compiler_set_member_decoration_string(long compiler, int id, int member_index, int decoration, long argument)static voidnspvc_compiler_set_member_name(long compiler, int id, int member_index, long argument)static voidnspvc_compiler_set_name(long compiler, int id, long argument)static intnspvc_compiler_type_struct_member_array_stride(long compiler, long type, int index, long stride)static intnspvc_compiler_type_struct_member_matrix_stride(long compiler, long type, int index, long stride)static intnspvc_compiler_type_struct_member_offset(long compiler, long type, int index, long offset)static voidnspvc_constant_get_subconstants(long constant, long constituents, long count)static intnspvc_context_create(long context)Unsafe version of:context_createstatic intnspvc_context_create_compiler(long context, int backend, long parsed_ir, int mode, long compiler)Unsafe version of:context_create_compilerstatic longnspvc_context_get_last_error_string(long context)Unsafe version of:context_get_last_error_stringstatic intnspvc_context_parse_spirv(long context, long spirv, long word_count, long parsed_ir)Unsafe version of:context_parse_spirvstatic voidnspvc_context_set_error_callback(long context, long cb, long userdata)Unsafe version of:context_set_error_callbackstatic longnspvc_get_commit_revision_and_timestamp()Unsafe version of:get_commit_revision_and_timestampstatic voidnspvc_get_version(long major, long minor, long patch)Unsafe version of:get_versionstatic voidnspvc_hlsl_resource_binding_init(long binding)Unsafe version of:hlsl_resource_binding_initstatic voidnspvc_msl_constexpr_sampler_init(long sampler)Unsafe version of:msl_constexpr_sampler_initstatic voidnspvc_msl_resource_binding_init(long binding)Unsafe version of:msl_resource_binding_initstatic voidnspvc_msl_sampler_ycbcr_conversion_init(long conv)Unsafe version of:msl_sampler_ycbcr_conversion_initstatic voidnspvc_msl_shader_input_init(long input)Unsafe version of:msl_shader_input_initstatic voidnspvc_msl_vertex_attribute_init(long attr)Unsafe version of:msl_vertex_attribute_initstatic intnspvc_resources_get_builtin_resource_list_for_type(long resources, int type, long resource_list, long resource_size)static intnspvc_resources_get_resource_list_for_type(long resources, int type, long resource_list, long resource_size)static intspvc_compiler_add_header_line(long compiler, java.lang.CharSequence line)Maps to C++ API.static intspvc_compiler_add_header_line(long compiler, java.nio.ByteBuffer line)Maps to C++ API.static booleanspvc_compiler_buffer_get_hlsl_counter_buffer(long compiler, int id, java.nio.IntBuffer counter_id)static booleanspvc_compiler_buffer_is_hlsl_counter_buffer(long compiler, int id)static intspvc_compiler_build_combined_image_samplers(long compiler)static intspvc_compiler_build_dummy_sampler_for_combined_images(long compiler, java.nio.IntBuffer id)Workaround helper functions.static intspvc_compiler_compile(long compiler, org.lwjgl.PointerBuffer source)Compile IR into a string.static intspvc_compiler_create_compiler_options(long compiler, org.lwjgl.PointerBuffer options)Create compiler options, which will initialize defaults.static intspvc_compiler_create_shader_resources(long compiler, org.lwjgl.PointerBuffer resources)static intspvc_compiler_create_shader_resources_for_active_variables(long compiler, org.lwjgl.PointerBuffer resources, long active)static intspvc_compiler_flatten_buffer_block(long compiler, int id)static intspvc_compiler_get_active_buffer_ranges(long compiler, int id, org.lwjgl.PointerBuffer ranges, org.lwjgl.PointerBuffer num_ranges)Buffer ranges Maps to C++ API.static intspvc_compiler_get_active_interface_variables(long compiler, org.lwjgl.PointerBuffer set)Reflect resources.static booleanspvc_compiler_get_binary_offset_for_decoration(long compiler, int id, int decoration, java.nio.IntBuffer word_offset)Misc reflection Maps to C++ API.static intspvc_compiler_get_buffer_block_decorations(long compiler, int id, org.lwjgl.PointerBuffer decorations, org.lwjgl.PointerBuffer num_decorations)static java.lang.Stringspvc_compiler_get_cleansed_entry_point_name(long compiler, java.lang.CharSequence name, int model)static java.lang.Stringspvc_compiler_get_cleansed_entry_point_name(long compiler, java.nio.ByteBuffer name, int model)static intspvc_compiler_get_combined_image_samplers(long compiler, org.lwjgl.PointerBuffer samplers, org.lwjgl.PointerBuffer num_samplers)static longspvc_compiler_get_constant_handle(long compiler, int id)static intspvc_compiler_get_current_id_bound(long compiler)Maps directly to C++ API.static intspvc_compiler_get_declared_capabilities(long compiler, org.lwjgl.PointerBuffer capabilities, org.lwjgl.PointerBuffer num_capabilities)static intspvc_compiler_get_declared_extensions(long compiler, org.lwjgl.PointerBuffer extensions, org.lwjgl.PointerBuffer num_extensions)static intspvc_compiler_get_declared_struct_member_size(long compiler, long type, int index, org.lwjgl.PointerBuffer size)static intspvc_compiler_get_declared_struct_size(long compiler, long struct_type, org.lwjgl.PointerBuffer size)Buffer layout query.static intspvc_compiler_get_declared_struct_size_runtime_array(long compiler, long struct_type, long array_size, org.lwjgl.PointerBuffer size)static intspvc_compiler_get_decoration(long compiler, int id, int decoration)static java.lang.Stringspvc_compiler_get_decoration_string(long compiler, int id, int decoration)static intspvc_compiler_get_entry_points(long compiler, org.lwjgl.PointerBuffer entry_points, org.lwjgl.PointerBuffer num_entry_points)Entry points.static intspvc_compiler_get_execution_mode_argument(long compiler, int mode)static intspvc_compiler_get_execution_mode_argument_by_index(long compiler, int mode, int index)static intspvc_compiler_get_execution_model(long compiler)static intspvc_compiler_get_execution_modes(long compiler, org.lwjgl.PointerBuffer modes, org.lwjgl.PointerBuffer num_modes)static intspvc_compiler_get_member_decoration(long compiler, int id, int member_index, int decoration)static java.lang.Stringspvc_compiler_get_member_decoration_string(long compiler, int id, int member_index, int decoration)static java.lang.Stringspvc_compiler_get_member_name(long compiler, int id, int member_index)static java.lang.Stringspvc_compiler_get_name(long compiler, int id)static java.lang.Stringspvc_compiler_get_remapped_declared_block_name(long compiler, int id)static intspvc_compiler_get_specialization_constants(long compiler, org.lwjgl.PointerBuffer constants, org.lwjgl.PointerBuffer num_constants)Constants Maps to C++ API.static longspvc_compiler_get_type_handle(long compiler, int id)Type query interface.static intspvc_compiler_get_work_group_size_specialization_constants(long compiler, SpvcSpecializationConstant x, SpvcSpecializationConstant y, SpvcSpecializationConstant z)static booleanspvc_compiler_has_active_builtin(long compiler, int builtin, int storage)static booleanspvc_compiler_has_decoration(long compiler, int id, int decoration)static booleanspvc_compiler_has_member_decoration(long compiler, int id, int member_index, int decoration)static intspvc_compiler_hlsl_add_resource_binding(long compiler, SpvcHLSLResourceBinding binding)static intspvc_compiler_hlsl_add_vertex_attribute_remap(long compiler, SpvcHlslVertexAttributeRemap remap, long remaps)static booleanspvc_compiler_hlsl_is_resource_used(long compiler, int model, int set, int binding)static intspvc_compiler_hlsl_remap_num_workgroups_builtin(long compiler)static intspvc_compiler_hlsl_set_resource_binding_flags(long compiler, int flags)static intspvc_compiler_hlsl_set_root_constants_layout(long compiler, SpvcHlslRootConstants constant_info, long count)HLSL specifics.static intspvc_compiler_install_compiler_options(long compiler, long options)Set compiler options.static intspvc_compiler_mask_stage_output_by_builtin(long compiler, int builtin)static intspvc_compiler_mask_stage_output_by_location(long compiler, int location, int component)static intspvc_compiler_msl_add_discrete_descriptor_set(long compiler, int desc_set)static intspvc_compiler_msl_add_dynamic_buffer(long compiler, int desc_set, int binding, int index)static intspvc_compiler_msl_add_inline_uniform_block(long compiler, int desc_set, int binding)static intspvc_compiler_msl_add_resource_binding(long compiler, SpvcMslResourceBinding binding)static intspvc_compiler_msl_add_shader_input(long compiler, SpvcMslShaderInput input)static intspvc_compiler_msl_add_vertex_attribute(long compiler, SpvcMslVertexAttribute attrs)static intspvc_compiler_msl_get_automatic_resource_binding(long compiler, int id)static intspvc_compiler_msl_get_automatic_resource_binding_secondary(long compiler, int id)static java.lang.Stringspvc_compiler_msl_get_combined_sampler_suffix(long compiler)static booleanspvc_compiler_msl_is_rasterization_disabled(long compiler)MSL specifics.static booleanspvc_compiler_msl_is_resource_used(long compiler, int model, int set, int binding)static booleanspvc_compiler_msl_is_shader_input_used(long compiler, int location)static booleanspvc_compiler_msl_is_vertex_attribute_used(long compiler, int location)Obsolete, usecompiler_msl_is_shader_input_used.static booleanspvc_compiler_msl_needs_buffer_size_buffer(long compiler)static booleanspvc_compiler_msl_needs_input_threadgroup_mem(long compiler)static booleanspvc_compiler_msl_needs_output_buffer(long compiler)static booleanspvc_compiler_msl_needs_patch_output_buffer(long compiler)static booleanspvc_compiler_msl_needs_swizzle_buffer(long compiler)static intspvc_compiler_msl_remap_constexpr_sampler(long compiler, int id, SpvcMslConstexprSampler sampler)static intspvc_compiler_msl_remap_constexpr_sampler_by_binding(long compiler, int desc_set, int binding, SpvcMslConstexprSampler sampler)static intspvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr(long compiler, int desc_set, int binding, SpvcMslConstexprSampler sampler, SpvcMslSamplerYcbcrConversion conv)static intspvc_compiler_msl_remap_constexpr_sampler_ycbcr(long compiler, int id, SpvcMslConstexprSampler sampler, SpvcMslSamplerYcbcrConversion conv)static intspvc_compiler_msl_set_argument_buffer_device_address_space(long compiler, int desc_set, boolean device_address)static intspvc_compiler_msl_set_combined_sampler_suffix(long compiler, java.lang.CharSequence suffix)static intspvc_compiler_msl_set_combined_sampler_suffix(long compiler, java.nio.ByteBuffer suffix)static intspvc_compiler_msl_set_fragment_output_components(long compiler, int location, int components)static intspvc_compiler_options_set_bool(long options, int option, boolean value)Override options.static intspvc_compiler_options_set_uint(long options, int option, int value)static intspvc_compiler_rename_entry_point(long compiler, java.lang.CharSequence old_name, java.lang.CharSequence new_name, int model)static intspvc_compiler_rename_entry_point(long compiler, java.nio.ByteBuffer old_name, java.nio.ByteBuffer new_name, int model)static intspvc_compiler_require_extension(long compiler, java.lang.CharSequence ext)static intspvc_compiler_require_extension(long compiler, java.nio.ByteBuffer ext)static voidspvc_compiler_set_decoration(long compiler, int id, int decoration, int argument)Decorations.static voidspvc_compiler_set_decoration_string(long compiler, int id, int decoration, java.lang.CharSequence argument)static voidspvc_compiler_set_decoration_string(long compiler, int id, int decoration, java.nio.ByteBuffer argument)static intspvc_compiler_set_enabled_interface_variables(long compiler, long set)static intspvc_compiler_set_entry_point(long compiler, java.lang.CharSequence name, int model)static intspvc_compiler_set_entry_point(long compiler, java.nio.ByteBuffer name, int model)static voidspvc_compiler_set_execution_mode(long compiler, int mode)static voidspvc_compiler_set_execution_mode_with_arguments(long compiler, int mode, int arg0, int arg1, int arg2)static voidspvc_compiler_set_member_decoration(long compiler, int id, int member_index, int decoration, int argument)static voidspvc_compiler_set_member_decoration_string(long compiler, int id, int member_index, int decoration, java.lang.CharSequence argument)static voidspvc_compiler_set_member_decoration_string(long compiler, int id, int member_index, int decoration, java.nio.ByteBuffer argument)static voidspvc_compiler_set_member_name(long compiler, int id, int member_index, java.lang.CharSequence argument)static voidspvc_compiler_set_member_name(long compiler, int id, int member_index, java.nio.ByteBuffer argument)static voidspvc_compiler_set_name(long compiler, int id, java.lang.CharSequence argument)static voidspvc_compiler_set_name(long compiler, int id, java.nio.ByteBuffer argument)static intspvc_compiler_type_struct_member_array_stride(long compiler, long type, int index, java.nio.IntBuffer stride)static intspvc_compiler_type_struct_member_matrix_stride(long compiler, long type, int index, java.nio.IntBuffer stride)static intspvc_compiler_type_struct_member_offset(long compiler, long type, int index, java.nio.IntBuffer offset)static voidspvc_compiler_unset_decoration(long compiler, int id, int decoration)static voidspvc_compiler_unset_execution_mode(long compiler, int mode)static voidspvc_compiler_unset_member_decoration(long compiler, int id, int member_index, int decoration)static voidspvc_compiler_update_active_builtins(long compiler)static booleanspvc_compiler_variable_is_depth_or_compare(long compiler, int id)static floatspvc_constant_get_scalar_fp16(long constant, int column, int row)No stdint.h until C99, sigh :( For smaller types, the result is sign or zero-extended as appropriate.static floatspvc_constant_get_scalar_fp32(long constant, int column, int row)static doublespvc_constant_get_scalar_fp64(long constant, int column, int row)static intspvc_constant_get_scalar_i16(long constant, int column, int row)static intspvc_constant_get_scalar_i32(long constant, int column, int row)static intspvc_constant_get_scalar_i8(long constant, int column, int row)static intspvc_constant_get_scalar_u16(long constant, int column, int row)static intspvc_constant_get_scalar_u32(long constant, int column, int row)static intspvc_constant_get_scalar_u8(long constant, int column, int row)static voidspvc_constant_get_subconstants(long constant, org.lwjgl.PointerBuffer constituents, org.lwjgl.PointerBuffer count)static intspvc_constant_get_type(long constant)static intspvc_context_create(org.lwjgl.PointerBuffer context)Context is the highest-level API construct.static intspvc_context_create_compiler(long context, int backend, long parsed_ir, int mode, org.lwjgl.PointerBuffer compiler)Create a compiler backend.static voidspvc_context_destroy(long context)Frees all memory allocations and objects associated with the context and its child objects.static java.lang.Stringspvc_context_get_last_error_string(long context)Get the string for the last error which was logged.static intspvc_context_parse_spirv(long context, java.nio.IntBuffer spirv, long word_count, org.lwjgl.PointerBuffer parsed_ir)SPIR-V parsing interface.static voidspvc_context_release_allocations(long context)Frees all memory allocations and objects associated with the context and its child objects, but keeps the context alive.static voidspvc_context_set_error_callback(long context, SpvcErrorCallbackI cb, long userdata)Get notified in a callback when an error triggers.static java.lang.Stringspvc_get_commit_revision_and_timestamp()Gets a human readable version string to identify which commit a particular binary was created from.static voidspvc_get_version(java.nio.IntBuffer major, java.nio.IntBuffer minor, java.nio.IntBuffer patch)Gets theSPVC_C_API_VERSION_*used to build this library.static voidspvc_hlsl_resource_binding_init(SpvcHLSLResourceBinding binding)Initializes the resource binding struct.static voidspvc_msl_constexpr_sampler_init(SpvcMslConstexprSampler sampler)Initializes theconstexprsampler struct.static intspvc_msl_get_aux_buffer_struct_version()Runtime check for incompatibility.static voidspvc_msl_resource_binding_init(SpvcMslResourceBinding binding)Initializes the resource binding struct.static voidspvc_msl_sampler_ycbcr_conversion_init(SpvcMslSamplerYcbcrConversion conv)Initializes theconstexprsampler struct.static voidspvc_msl_shader_input_init(SpvcMslShaderInput input)Initializes the shader input struct.static voidspvc_msl_vertex_attribute_init(SpvcMslVertexAttribute attr)Initializes the vertex attribute struct.static intspvc_resources_get_builtin_resource_list_for_type(long resources, int type, org.lwjgl.PointerBuffer resource_list, org.lwjgl.PointerBuffer resource_size)static intspvc_resources_get_resource_list_for_type(long resources, int type, org.lwjgl.PointerBuffer resource_list, org.lwjgl.PointerBuffer resource_size)static booleanspvc_type_array_dimension_is_literal(long type, int dimension)static intspvc_type_get_array_dimension(long type, int dimension)static intspvc_type_get_base_type_id(long type)Pulls outSPIRType::self.static intspvc_type_get_basetype(long type)static intspvc_type_get_bit_width(long type)static intspvc_type_get_columns(long type)static intspvc_type_get_image_access_qualifier(long type)static booleanspvc_type_get_image_arrayed(long type)static intspvc_type_get_image_dimension(long type)static booleanspvc_type_get_image_is_depth(long type)static booleanspvc_type_get_image_is_storage(long type)static booleanspvc_type_get_image_multisampled(long type)static intspvc_type_get_image_sampled_type(long type)Image type query.static intspvc_type_get_image_storage_format(long type)static intspvc_type_get_member_type(long type, int index)static intspvc_type_get_num_array_dimensions(long type)static intspvc_type_get_num_member_types(long type)static intspvc_type_get_storage_class(long type)static intspvc_type_get_vector_size(long type)
-
-
-
Field Detail
-
SPVC_C_API_VERSION_MAJOR
- See Also:
- Constant Field Values
-
SPVC_C_API_VERSION_MINOR
- See Also:
- Constant Field Values
-
SPVC_C_API_VERSION_PATCH
- See Also:
- Constant Field Values
-
SPVC_COMPILER_OPTION_COMMON_BIT
- See Also:
- Constant Field Values
-
SPVC_COMPILER_OPTION_GLSL_BIT
- See Also:
- Constant Field Values
-
SPVC_COMPILER_OPTION_HLSL_BIT
- See Also:
- Constant Field Values
-
SPVC_COMPILER_OPTION_MSL_BIT
- See Also:
- Constant Field Values
-
SPVC_COMPILER_OPTION_LANG_BITS
- See Also:
- Constant Field Values
-
SPVC_COMPILER_OPTION_ENUM_BITS
- See Also:
- Constant Field Values
-
SPVC_MSL_PUSH_CONSTANT_DESC_SET
Special constant used in aMSLResourceBindingdesc_setelement to indicate the bindings for the push constants.
-
SPVC_MSL_PUSH_CONSTANT_BINDING
Special constant used in aMSLResourceBindingbinding element to indicate the bindings for the push constants.
-
SPVC_MSL_SWIZZLE_BUFFER_BINDING
Special constant used in aMSLResourceBindingbinding element to indicate the buffer binding for swizzle buffers.
-
SPVC_MSL_BUFFER_SIZE_BUFFER_BINDING
Special constant used in aMSLResourceBindingbinding element to indicate the buffer binding for buffer size buffers to supportOpArrayLength.
-
SPVC_MSL_ARGUMENT_BUFFER_BINDING
Special constant used in aMSLResourceBindingbinding element to indicate the buffer binding used for the argument buffer itself.This buffer binding should be kept as small as possible as all automatic bindings for buffers will start at
max(kArgumentBufferBinding) + 1.
-
SPVC_MSL_AUX_BUFFER_STRUCT_VERSION
- See Also:
- Constant Field Values
-
SPVC_SUCCESS, SPVC_ERROR_INVALID_SPIRV, SPVC_ERROR_UNSUPPORTED_SPIRV, SPVC_ERROR_OUT_OF_MEMORY, SPVC_ERROR_INVALID_ARGUMENT
spvc_resultEnum values:
SUCCESS- Success.ERROR_INVALID_SPIRV- The SPIR-V is invalid. Should have been caught by validation ideally.ERROR_UNSUPPORTED_SPIRV- The SPIR-V might be valid or invalid, but SPIRV-Cross currently cannot correctly translate this to your target language.ERROR_OUT_OF_MEMORY- If for some reason we hit this, new or malloc failed.ERROR_INVALID_ARGUMENT- Invalid API argument.
-
SPVC_CAPTURE_MODE_COPY, SPVC_CAPTURE_MODE_TAKE_OWNERSHIP
spvc_capture_modeEnum values:
CAPTURE_MODE_COPY- The Parsed IR payload will be copied, and the handle can be reused to create other compiler instances.CAPTURE_MODE_TAKE_OWNERSHIP- The payload will now be owned by the compiler. parsed_ir should now be considered a dead blob and must not be used further. This is optimal for performance and should be the go-to option.
-
SPVC_BACKEND_NONE, SPVC_BACKEND_GLSL, SPVC_BACKEND_HLSL, SPVC_BACKEND_MSL, SPVC_BACKEND_CPP, SPVC_BACKEND_JSON
spvc_backendEnum values:
BACKEND_NONE- This backend can only perform reflection, no compiler options are supported. Maps to spirv_cross::Compiler.BACKEND_GLSL- spirv_cross::CompilerGLSLBACKEND_HLSL- CompilerHLSLBACKEND_MSL- CompilerMSLBACKEND_CPP- CompilerCPPBACKEND_JSON- CompilerReflection w/ JSON backend
-
SPVC_RESOURCE_TYPE_UNKNOWN, SPVC_RESOURCE_TYPE_UNIFORM_BUFFER, SPVC_RESOURCE_TYPE_STORAGE_BUFFER, SPVC_RESOURCE_TYPE_STAGE_INPUT, SPVC_RESOURCE_TYPE_STAGE_OUTPUT, SPVC_RESOURCE_TYPE_SUBPASS_INPUT, SPVC_RESOURCE_TYPE_STORAGE_IMAGE, SPVC_RESOURCE_TYPE_SAMPLED_IMAGE, SPVC_RESOURCE_TYPE_ATOMIC_COUNTER, SPVC_RESOURCE_TYPE_PUSH_CONSTANT, SPVC_RESOURCE_TYPE_SEPARATE_IMAGE, SPVC_RESOURCE_TYPE_SEPARATE_SAMPLERS, SPVC_RESOURCE_TYPE_ACCELERATION_STRUCTURE, SPVC_RESOURCE_TYPE_RAY_QUERY
Maps to C++ API.(
spvc_resource_type)Enum values:
RESOURCE_TYPE_UNKNOWNRESOURCE_TYPE_UNIFORM_BUFFERRESOURCE_TYPE_STORAGE_BUFFERRESOURCE_TYPE_STAGE_INPUTRESOURCE_TYPE_STAGE_OUTPUTRESOURCE_TYPE_SUBPASS_INPUTRESOURCE_TYPE_STORAGE_IMAGERESOURCE_TYPE_SAMPLED_IMAGERESOURCE_TYPE_ATOMIC_COUNTERRESOURCE_TYPE_PUSH_CONSTANTRESOURCE_TYPE_SEPARATE_IMAGERESOURCE_TYPE_SEPARATE_SAMPLERSRESOURCE_TYPE_ACCELERATION_STRUCTURERESOURCE_TYPE_RAY_QUERY
-
SPVC_BUILTIN_RESOURCE_TYPE_UNKNOWN, SPVC_BUILTIN_RESOURCE_TYPE_STAGE_INPUT, SPVC_BUILTIN_RESOURCE_TYPE_STAGE_OUTPUT
spvc_builtin_resource_typeEnum values:
-
SPVC_BASETYPE_UNKNOWN, SPVC_BASETYPE_VOID, SPVC_BASETYPE_BOOLEAN, SPVC_BASETYPE_INT8, SPVC_BASETYPE_UINT8, SPVC_BASETYPE_INT16, SPVC_BASETYPE_UINT16, SPVC_BASETYPE_INT32, SPVC_BASETYPE_UINT32, SPVC_BASETYPE_INT64, SPVC_BASETYPE_UINT64, SPVC_BASETYPE_ATOMIC_COUNTER, SPVC_BASETYPE_FP16, SPVC_BASETYPE_FP32, SPVC_BASETYPE_FP64, SPVC_BASETYPE_STRUCT, SPVC_BASETYPE_IMAGE, SPVC_BASETYPE_SAMPLED_IMAGE, SPVC_BASETYPE_SAMPLER, SPVC_BASETYPE_ACCELERATION_STRUCTURE
Maps to spirv_cross::SPIRType::BaseType.(
spvc_basetype)Enum values:
BASETYPE_UNKNOWNBASETYPE_VOIDBASETYPE_BOOLEANBASETYPE_INT8BASETYPE_UINT8BASETYPE_INT16BASETYPE_UINT16BASETYPE_INT32BASETYPE_UINT32BASETYPE_INT64BASETYPE_UINT64BASETYPE_ATOMIC_COUNTERBASETYPE_FP16BASETYPE_FP32BASETYPE_FP64BASETYPE_STRUCTBASETYPE_IMAGEBASETYPE_SAMPLED_IMAGEBASETYPE_SAMPLERBASETYPE_ACCELERATION_STRUCTURE
-
SPVC_MSL_INDEX_TYPE_NONE, SPVC_MSL_INDEX_TYPE_UINT16, SPVC_MSL_INDEX_TYPE_UINT32
The type of index in the index buffer, if present.(
spvc_msl_index_type)Enum values:
-
SPVC_MSL_SHADER_INPUT_FORMAT_OTHER, SPVC_MSL_SHADER_INPUT_FORMAT_UINT8, SPVC_MSL_SHADER_INPUT_FORMAT_UINT16, SPVC_MSL_SHADER_INPUT_FORMAT_ANY16, SPVC_MSL_SHADER_INPUT_FORMAT_ANY32
Indicates the format of a shader input.Currently limited to specifying if the input is an 8-bit unsigned integer, 16-bit unsigned integer, or some other format.
(
spvc_msl_shader_input_format)Enum values:
-
SPVC_MSL_VERTEX_FORMAT_OTHER, SPVC_MSL_VERTEX_FORMAT_UINT8, SPVC_MSL_VERTEX_FORMAT_UINT16
Deprecated.(
spvc_msl_vertex_format)Enum values:
-
SPVC_MSL_SAMPLER_COORD_NORMALIZED, SPVC_MSL_SAMPLER_COORD_PIXEL
Maps to C++ API.(
spvc_msl_sampler_coord)Enum values:
-
SPVC_MSL_SAMPLER_FILTER_NEAREST, SPVC_MSL_SAMPLER_FILTER_LINEAR
Maps to C++ API.(
spvc_msl_sampler_filter)Enum values:
-
SPVC_MSL_SAMPLER_MIP_FILTER_NONE, SPVC_MSL_SAMPLER_MIP_FILTER_NEAREST, SPVC_MSL_SAMPLER_MIP_FILTER_LINEAR
Maps to C++ API.(
spvc_msl_sampler_mip_filter)Enum values:
-
SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_ZERO, SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_EDGE, SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_BORDER, SPVC_MSL_SAMPLER_ADDRESS_REPEAT, SPVC_MSL_SAMPLER_ADDRESS_MIRRORED_REPEAT
Maps to C++ API.(
spvc_msl_sampler_address)Enum values:
-
SPVC_MSL_SAMPLER_COMPARE_FUNC_NEVER, SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS, SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS_EQUAL, SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER, SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER_EQUAL, SPVC_MSL_SAMPLER_COMPARE_FUNC_EQUAL, SPVC_MSL_SAMPLER_COMPARE_FUNC_NOT_EQUAL, SPVC_MSL_SAMPLER_COMPARE_FUNC_ALWAYS
Maps to C++ API.(
spvc_msl_sampler_compare_func)Enum values:
-
SPVC_MSL_SAMPLER_BORDER_COLOR_TRANSPARENT_BLACK, SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_BLACK, SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_WHITE
Maps to C++ API.(
spvc_msl_sampler_border_color)Enum values:
-
SPVC_MSL_FORMAT_RESOLUTION_444, SPVC_MSL_FORMAT_RESOLUTION_422, SPVC_MSL_FORMAT_RESOLUTION_420
Maps to C++ API.(
spvc_msl_format_resolution)Enum values:
-
SPVC_MSL_CHROMA_LOCATION_COSITED_EVEN, SPVC_MSL_CHROMA_LOCATION_MIDPOINT
Maps to C++ API.(
spvc_msl_chroma_location)Enum values:
-
SPVC_MSL_COMPONENT_SWIZZLE_IDENTITY, SPVC_MSL_COMPONENT_SWIZZLE_ZERO, SPVC_MSL_COMPONENT_SWIZZLE_ONE, SPVC_MSL_COMPONENT_SWIZZLE_R, SPVC_MSL_COMPONENT_SWIZZLE_G, SPVC_MSL_COMPONENT_SWIZZLE_B, SPVC_MSL_COMPONENT_SWIZZLE_A
Maps to C++ API.(
spvc_msl_component_swizzle)Enum values:
-
SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY, SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY, SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_709, SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_601, SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_2020
Maps to C++ API.(
spvc_msl_sampler_ycbcr_model_conversion)Enum values:
-
SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_FULL, SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_NARROW
Maps to C+ API.(
spvc_msl_sampler_ycbcr_range)Enum values:
-
SPVC_HLSL_BINDING_AUTO_NONE_BIT, SPVC_HLSL_BINDING_AUTO_PUSH_CONSTANT_BIT, SPVC_HLSL_BINDING_AUTO_CBV_BIT, SPVC_HLSL_BINDING_AUTO_SRV_BIT, SPVC_HLSL_BINDING_AUTO_UAV_BIT, SPVC_HLSL_BINDING_AUTO_SAMPLER_BIT, SPVC_HLSL_BINDING_AUTO_ALL
Maps to the various spirv_cross::Compiler*::Option structures. See C++ API for defaults and details.(
spvc_hlsl_binding_flags)Enum values:
HLSL_BINDING_AUTO_NONE_BITHLSL_BINDING_AUTO_PUSH_CONSTANT_BIT- Push constant (root constant) resources will be declared as CBVs (b-space) without a register() declaration.A register will be automatically assigned by the D3D compiler, but must therefore be reflected in D3D-land. Push constants do not normally have a
DecorationBindingset, but if they do, this can be used to ignore it.HLSL_BINDING_AUTO_CBV_BIT-cbufferresources will be declared as CBVs (b-space) without a register() declaration.A register will be automatically assigned, but must be reflected in D3D-land.
HLSL_BINDING_AUTO_SRV_BIT- All SRVs (t-space) will be declared without aregister()declaration.HLSL_BINDING_AUTO_UAV_BIT- All UAVs (u-space) will be declared without aregister()declaration.HLSL_BINDING_AUTO_SAMPLER_BIT- All samplers (s-space) will be declared without aregister()declaration.HLSL_BINDING_AUTO_ALL- No resources will be declared withregister().
-
SPVC_HLSL_PUSH_CONSTANT_DESC_SET
Special constant used in an HLSLResourceBindingdesc_setelement to indicate the bindings for the push constants.
-
SPVC_HLSL_PUSH_CONSTANT_BINDING
Special constant used in an HLSLResourceBindingbinding element to indicate the bindings for the push constants.
-
SPVC_COMPILER_OPTION_UNKNOWN, SPVC_COMPILER_OPTION_FORCE_TEMPORARY, SPVC_COMPILER_OPTION_FLATTEN_MULTIDIMENSIONAL_ARRAYS, SPVC_COMPILER_OPTION_FIXUP_DEPTH_CONVENTION, SPVC_COMPILER_OPTION_FLIP_VERTEX_Y, SPVC_COMPILER_OPTION_GLSL_SUPPORT_NONZERO_BASE_INSTANCE, SPVC_COMPILER_OPTION_GLSL_SEPARATE_SHADER_OBJECTS, SPVC_COMPILER_OPTION_GLSL_ENABLE_420PACK_EXTENSION, SPVC_COMPILER_OPTION_GLSL_VERSION, SPVC_COMPILER_OPTION_GLSL_ES, SPVC_COMPILER_OPTION_GLSL_VULKAN_SEMANTICS, SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_FLOAT_PRECISION_HIGHP, SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_INT_PRECISION_HIGHP, SPVC_COMPILER_OPTION_HLSL_SHADER_MODEL, SPVC_COMPILER_OPTION_HLSL_POINT_SIZE_COMPAT, SPVC_COMPILER_OPTION_HLSL_POINT_COORD_COMPAT, SPVC_COMPILER_OPTION_HLSL_SUPPORT_NONZERO_BASE_VERTEX_BASE_INSTANCE, SPVC_COMPILER_OPTION_MSL_VERSION, SPVC_COMPILER_OPTION_MSL_TEXEL_BUFFER_TEXTURE_WIDTH, SPVC_COMPILER_OPTION_MSL_AUX_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_SWIZZLE_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_INDIRECT_PARAMS_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_SHADER_OUTPUT_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_OUTPUT_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_SHADER_TESS_FACTOR_OUTPUT_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_SHADER_INPUT_WORKGROUP_INDEX, SPVC_COMPILER_OPTION_MSL_ENABLE_POINT_SIZE_BUILTIN, SPVC_COMPILER_OPTION_MSL_DISABLE_RASTERIZATION, SPVC_COMPILER_OPTION_MSL_CAPTURE_OUTPUT_TO_BUFFER, SPVC_COMPILER_OPTION_MSL_SWIZZLE_TEXTURE_SAMPLES, SPVC_COMPILER_OPTION_MSL_PAD_FRAGMENT_OUTPUT_COMPONENTS, SPVC_COMPILER_OPTION_MSL_TESS_DOMAIN_ORIGIN_LOWER_LEFT, SPVC_COMPILER_OPTION_MSL_PLATFORM, SPVC_COMPILER_OPTION_MSL_ARGUMENT_BUFFERS, SPVC_COMPILER_OPTION_GLSL_EMIT_PUSH_CONSTANT_AS_UNIFORM_BUFFER, SPVC_COMPILER_OPTION_MSL_TEXTURE_BUFFER_NATIVE, SPVC_COMPILER_OPTION_GLSL_EMIT_UNIFORM_BUFFER_AS_PLAIN_UNIFORMS, SPVC_COMPILER_OPTION_MSL_BUFFER_SIZE_BUFFER_INDEX, SPVC_COMPILER_OPTION_EMIT_LINE_DIRECTIVES, SPVC_COMPILER_OPTION_MSL_MULTIVIEW, SPVC_COMPILER_OPTION_MSL_VIEW_MASK_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_DEVICE_INDEX, SPVC_COMPILER_OPTION_MSL_VIEW_INDEX_FROM_DEVICE_INDEX, SPVC_COMPILER_OPTION_MSL_DISPATCH_BASE, SPVC_COMPILER_OPTION_MSL_DYNAMIC_OFFSETS_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_TEXTURE_1D_AS_2D, SPVC_COMPILER_OPTION_MSL_ENABLE_BASE_INDEX_ZERO, SPVC_COMPILER_OPTION_MSL_IOS_FRAMEBUFFER_FETCH_SUBPASS, SPVC_COMPILER_OPTION_MSL_FRAMEBUFFER_FETCH_SUBPASS, SPVC_COMPILER_OPTION_MSL_INVARIANT_FP_MATH, SPVC_COMPILER_OPTION_MSL_EMULATE_CUBEMAP_ARRAY, SPVC_COMPILER_OPTION_MSL_ENABLE_DECORATION_BINDING, SPVC_COMPILER_OPTION_MSL_FORCE_ACTIVE_ARGUMENT_BUFFER_RESOURCES, SPVC_COMPILER_OPTION_MSL_FORCE_NATIVE_ARRAYS, SPVC_COMPILER_OPTION_ENABLE_STORAGE_IMAGE_QUALIFIER_DEDUCTION, SPVC_COMPILER_OPTION_HLSL_FORCE_STORAGE_BUFFER_AS_UAV, SPVC_COMPILER_OPTION_FORCE_ZERO_INITIALIZED_VARIABLES, SPVC_COMPILER_OPTION_HLSL_NONWRITABLE_UAV_TEXTURE_AS_SRV, SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_OUTPUT_MASK, SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_DEPTH_BUILTIN, SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_STENCIL_REF_BUILTIN, SPVC_COMPILER_OPTION_MSL_ENABLE_CLIP_DISTANCE_USER_VARYING, SPVC_COMPILER_OPTION_HLSL_ENABLE_16BIT_TYPES, SPVC_COMPILER_OPTION_MSL_MULTI_PATCH_WORKGROUP, SPVC_COMPILER_OPTION_MSL_SHADER_INPUT_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_SHADER_INDEX_BUFFER_INDEX, SPVC_COMPILER_OPTION_MSL_VERTEX_FOR_TESSELLATION, SPVC_COMPILER_OPTION_MSL_VERTEX_INDEX_TYPE, SPVC_COMPILER_OPTION_GLSL_FORCE_FLATTENED_IO_BLOCKS, SPVC_COMPILER_OPTION_MSL_MULTIVIEW_LAYERED_RENDERING, SPVC_COMPILER_OPTION_MSL_ARRAYED_SUBPASS_INPUT, SPVC_COMPILER_OPTION_MSL_R32UI_LINEAR_TEXTURE_ALIGNMENT, SPVC_COMPILER_OPTION_MSL_R32UI_ALIGNMENT_CONSTANT_ID, SPVC_COMPILER_OPTION_HLSL_FLATTEN_MATRIX_VERTEX_INPUT_SEMANTICS, SPVC_COMPILER_OPTION_MSL_IOS_USE_SIMDGROUP_FUNCTIONS, SPVC_COMPILER_OPTION_MSL_EMULATE_SUBGROUPS, SPVC_COMPILER_OPTION_MSL_FIXED_SUBGROUP_SIZE, SPVC_COMPILER_OPTION_MSL_FORCE_SAMPLE_RATE_SHADING, SPVC_COMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCE, SPVC_COMPILER_OPTION_GLSL_OVR_MULTIVIEW_VIEW_COUNT
Maps to the various spirv_cross::Compiler*::Option structures. See C++ API for defaults and details.(
spvc_compiler_option)Enum values:
COMPILER_OPTION_UNKNOWNCOMPILER_OPTION_FORCE_TEMPORARYCOMPILER_OPTION_FLATTEN_MULTIDIMENSIONAL_ARRAYSCOMPILER_OPTION_FIXUP_DEPTH_CONVENTIONCOMPILER_OPTION_FLIP_VERTEX_YCOMPILER_OPTION_GLSL_SUPPORT_NONZERO_BASE_INSTANCECOMPILER_OPTION_GLSL_SEPARATE_SHADER_OBJECTSCOMPILER_OPTION_GLSL_ENABLE_420PACK_EXTENSIONCOMPILER_OPTION_GLSL_VERSIONCOMPILER_OPTION_GLSL_ESCOMPILER_OPTION_GLSL_VULKAN_SEMANTICSCOMPILER_OPTION_GLSL_ES_DEFAULT_FLOAT_PRECISION_HIGHPCOMPILER_OPTION_GLSL_ES_DEFAULT_INT_PRECISION_HIGHPCOMPILER_OPTION_HLSL_SHADER_MODELCOMPILER_OPTION_HLSL_POINT_SIZE_COMPATCOMPILER_OPTION_HLSL_POINT_COORD_COMPATCOMPILER_OPTION_HLSL_SUPPORT_NONZERO_BASE_VERTEX_BASE_INSTANCECOMPILER_OPTION_MSL_VERSIONCOMPILER_OPTION_MSL_TEXEL_BUFFER_TEXTURE_WIDTHCOMPILER_OPTION_MSL_AUX_BUFFER_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_SWIZZLE_BUFFER_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_INDIRECT_PARAMS_BUFFER_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_SHADER_OUTPUT_BUFFER_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_SHADER_PATCH_OUTPUT_BUFFER_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_SHADER_TESS_FACTOR_OUTPUT_BUFFER_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_SHADER_INPUT_WORKGROUP_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_ENABLE_POINT_SIZE_BUILTIN- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_DISABLE_RASTERIZATION- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_CAPTURE_OUTPUT_TO_BUFFER- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_SWIZZLE_TEXTURE_SAMPLES- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_PAD_FRAGMENT_OUTPUT_COMPONENTS- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_TESS_DOMAIN_ORIGIN_LOWER_LEFT- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_PLATFORM- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_ARGUMENT_BUFFERS- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_GLSL_EMIT_PUSH_CONSTANT_AS_UNIFORM_BUFFER- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_TEXTURE_BUFFER_NATIVE- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_GLSL_EMIT_UNIFORM_BUFFER_AS_PLAIN_UNIFORMS- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_BUFFER_SIZE_BUFFER_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_EMIT_LINE_DIRECTIVES- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_MULTIVIEW- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_VIEW_MASK_BUFFER_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_DEVICE_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_VIEW_INDEX_FROM_DEVICE_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_DISPATCH_BASE- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_DYNAMIC_OFFSETS_BUFFER_INDEX- Obsolete, use SWIZZLE_BUFFER_INDEX instead.COMPILER_OPTION_MSL_TEXTURE_1D_AS_2DCOMPILER_OPTION_MSL_ENABLE_BASE_INDEX_ZEROCOMPILER_OPTION_MSL_IOS_FRAMEBUFFER_FETCH_SUBPASSCOMPILER_OPTION_MSL_FRAMEBUFFER_FETCH_SUBPASSCOMPILER_OPTION_MSL_INVARIANT_FP_MATHCOMPILER_OPTION_MSL_EMULATE_CUBEMAP_ARRAYCOMPILER_OPTION_MSL_ENABLE_DECORATION_BINDINGCOMPILER_OPTION_MSL_FORCE_ACTIVE_ARGUMENT_BUFFER_RESOURCESCOMPILER_OPTION_MSL_FORCE_NATIVE_ARRAYSCOMPILER_OPTION_ENABLE_STORAGE_IMAGE_QUALIFIER_DEDUCTIONCOMPILER_OPTION_HLSL_FORCE_STORAGE_BUFFER_AS_UAVCOMPILER_OPTION_FORCE_ZERO_INITIALIZED_VARIABLESCOMPILER_OPTION_HLSL_NONWRITABLE_UAV_TEXTURE_AS_SRVCOMPILER_OPTION_MSL_ENABLE_FRAG_OUTPUT_MASKCOMPILER_OPTION_MSL_ENABLE_FRAG_DEPTH_BUILTINCOMPILER_OPTION_MSL_ENABLE_FRAG_STENCIL_REF_BUILTINCOMPILER_OPTION_MSL_ENABLE_CLIP_DISTANCE_USER_VARYINGCOMPILER_OPTION_HLSL_ENABLE_16BIT_TYPESCOMPILER_OPTION_MSL_MULTI_PATCH_WORKGROUPCOMPILER_OPTION_MSL_SHADER_INPUT_BUFFER_INDEXCOMPILER_OPTION_MSL_SHADER_INDEX_BUFFER_INDEXCOMPILER_OPTION_MSL_VERTEX_FOR_TESSELLATIONCOMPILER_OPTION_MSL_VERTEX_INDEX_TYPECOMPILER_OPTION_GLSL_FORCE_FLATTENED_IO_BLOCKSCOMPILER_OPTION_MSL_MULTIVIEW_LAYERED_RENDERINGCOMPILER_OPTION_MSL_ARRAYED_SUBPASS_INPUTCOMPILER_OPTION_MSL_R32UI_LINEAR_TEXTURE_ALIGNMENTCOMPILER_OPTION_MSL_R32UI_ALIGNMENT_CONSTANT_IDCOMPILER_OPTION_HLSL_FLATTEN_MATRIX_VERTEX_INPUT_SEMANTICSCOMPILER_OPTION_MSL_IOS_USE_SIMDGROUP_FUNCTIONSCOMPILER_OPTION_MSL_EMULATE_SUBGROUPSCOMPILER_OPTION_MSL_FIXED_SUBGROUP_SIZECOMPILER_OPTION_MSL_FORCE_SAMPLE_RATE_SHADINGCOMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCECOMPILER_OPTION_GLSL_OVR_MULTIVIEW_VIEW_COUNT
-
-
Method Detail
-
getLibrary
public static org.lwjgl.system.SharedLibrary getLibrary()
Returns the spvcSharedLibrary.
-
nspvc_get_version
public static void nspvc_get_version(long major, long minor, long patch)Unsafe version of:get_version
-
spvc_get_version
public static void spvc_get_version(java.nio.IntBuffer major, java.nio.IntBuffer minor, java.nio.IntBuffer patch)Gets theSPVC_C_API_VERSION_*used to build this library. Can be used to check for ABI mismatch if so-versioning did not catch it.
-
nspvc_get_commit_revision_and_timestamp
public static long nspvc_get_commit_revision_and_timestamp()
Unsafe version of:get_commit_revision_and_timestamp
-
spvc_get_commit_revision_and_timestamp
@Nullable public static java.lang.String spvc_get_commit_revision_and_timestamp()
Gets a human readable version string to identify which commit a particular binary was created from.
-
nspvc_msl_vertex_attribute_init
public static void nspvc_msl_vertex_attribute_init(long attr)
Unsafe version of:msl_vertex_attribute_init
-
spvc_msl_vertex_attribute_init
public static void spvc_msl_vertex_attribute_init(SpvcMslVertexAttribute attr)
Initializes the vertex attribute struct.
-
nspvc_msl_shader_input_init
public static void nspvc_msl_shader_input_init(long input)
Unsafe version of:msl_shader_input_init
-
spvc_msl_shader_input_init
public static void spvc_msl_shader_input_init(SpvcMslShaderInput input)
Initializes the shader input struct.
-
nspvc_msl_resource_binding_init
public static void nspvc_msl_resource_binding_init(long binding)
Unsafe version of:msl_resource_binding_init
-
spvc_msl_resource_binding_init
public static void spvc_msl_resource_binding_init(SpvcMslResourceBinding binding)
Initializes the resource binding struct. The defaults are non-zero.
-
spvc_msl_get_aux_buffer_struct_version
public static int spvc_msl_get_aux_buffer_struct_version()
Runtime check for incompatibility. Obsolete.
-
nspvc_msl_constexpr_sampler_init
public static void nspvc_msl_constexpr_sampler_init(long sampler)
Unsafe version of:msl_constexpr_sampler_init
-
spvc_msl_constexpr_sampler_init
public static void spvc_msl_constexpr_sampler_init(SpvcMslConstexprSampler sampler)
Initializes theconstexprsampler struct. The defaults are non-zero.
-
nspvc_msl_sampler_ycbcr_conversion_init
public static void nspvc_msl_sampler_ycbcr_conversion_init(long conv)
Unsafe version of:msl_sampler_ycbcr_conversion_init
-
spvc_msl_sampler_ycbcr_conversion_init
public static void spvc_msl_sampler_ycbcr_conversion_init(SpvcMslSamplerYcbcrConversion conv)
Initializes theconstexprsampler struct. The defaults are non-zero.
-
nspvc_hlsl_resource_binding_init
public static void nspvc_hlsl_resource_binding_init(long binding)
Unsafe version of:hlsl_resource_binding_init
-
spvc_hlsl_resource_binding_init
public static void spvc_hlsl_resource_binding_init(SpvcHLSLResourceBinding binding)
Initializes the resource binding struct.The defaults are non-zero.
-
nspvc_context_create
public static int nspvc_context_create(long context)
Unsafe version of:context_create
-
spvc_context_create
public static int spvc_context_create(org.lwjgl.PointerBuffer context)
Context is the highest-level API construct.The context owns all memory allocations made by its child object hierarchy, including various non-opaque structs and strings. This means that the API user only has to care about one "destroy" call ever when using the C API. All pointers handed out by the APIs are only valid as long as the context is alive and
context_release_allocationshas not been called.
-
spvc_context_destroy
public static void spvc_context_destroy(long context)
Frees all memory allocations and objects associated with the context and its child objects.
-
spvc_context_release_allocations
public static void spvc_context_release_allocations(long context)
Frees all memory allocations and objects associated with the context and its child objects, but keeps the context alive.
-
nspvc_context_get_last_error_string
public static long nspvc_context_get_last_error_string(long context)
Unsafe version of:context_get_last_error_string
-
spvc_context_get_last_error_string
@Nullable public static java.lang.String spvc_context_get_last_error_string(long context)
Get the string for the last error which was logged.
-
nspvc_context_set_error_callback
public static void nspvc_context_set_error_callback(long context, long cb, long userdata)Unsafe version of:context_set_error_callback
-
spvc_context_set_error_callback
public static void spvc_context_set_error_callback(long context, SpvcErrorCallbackI cb, long userdata)Get notified in a callback when an error triggers. Useful for debugging.
-
nspvc_context_parse_spirv
public static int nspvc_context_parse_spirv(long context, long spirv, long word_count, long parsed_ir)Unsafe version of:context_parse_spirv
-
spvc_context_parse_spirv
public static int spvc_context_parse_spirv(long context, java.nio.IntBuffer spirv, long word_count, org.lwjgl.PointerBuffer parsed_ir)SPIR-V parsing interface. Maps toParserwhich then creates aParsedIR, and that IR is extracted into the handle.
-
nspvc_context_create_compiler
public static int nspvc_context_create_compiler(long context, int backend, long parsed_ir, int mode, long compiler)Unsafe version of:context_create_compiler
-
spvc_context_create_compiler
public static int spvc_context_create_compiler(long context, int backend, long parsed_ir, int mode, org.lwjgl.PointerBuffer compiler)Create a compiler backend.Capture mode controls if we construct by copy or move semantics. It is always recommended to use
CAPTURE_MODE_TAKE_OWNERSHIPif you only intend to cross-compile the IR once.
-
spvc_compiler_get_current_id_bound
public static int spvc_compiler_get_current_id_bound(long compiler)
Maps directly to C++ API.
-
nspvc_compiler_create_compiler_options
public static int nspvc_compiler_create_compiler_options(long compiler, long options)Unsafe version of:compiler_create_compiler_options
-
spvc_compiler_create_compiler_options
public static int spvc_compiler_create_compiler_options(long compiler, org.lwjgl.PointerBuffer options)Create compiler options, which will initialize defaults.
-
spvc_compiler_options_set_bool
public static int spvc_compiler_options_set_bool(long options, int option, boolean value)Override options. Will return error if e.g. MSL options are used for the HLSL backend, etc.
-
spvc_compiler_options_set_uint
public static int spvc_compiler_options_set_uint(long options, int option, int value)
-
spvc_compiler_install_compiler_options
public static int spvc_compiler_install_compiler_options(long compiler, long options)Set compiler options.
-
nspvc_compiler_compile
public static int nspvc_compiler_compile(long compiler, long source)Unsafe version of:compiler_compile
-
spvc_compiler_compile
public static int spvc_compiler_compile(long compiler, org.lwjgl.PointerBuffer source)Compile IR into a string.- Parameters:
source- owned by the context, and caller must not free it themselves
-
nspvc_compiler_add_header_line
public static int nspvc_compiler_add_header_line(long compiler, long line)Unsafe version of:compiler_add_header_line
-
spvc_compiler_add_header_line
public static int spvc_compiler_add_header_line(long compiler, java.nio.ByteBuffer line) public static int spvc_compiler_add_header_line(long compiler, java.lang.CharSequence line)Maps to C++ API.
-
nspvc_compiler_require_extension
public static int nspvc_compiler_require_extension(long compiler, long ext)
-
spvc_compiler_require_extension
public static int spvc_compiler_require_extension(long compiler, java.nio.ByteBuffer ext)
-
spvc_compiler_require_extension
public static int spvc_compiler_require_extension(long compiler, java.lang.CharSequence ext)
-
spvc_compiler_flatten_buffer_block
public static int spvc_compiler_flatten_buffer_block(long compiler, int id)
-
spvc_compiler_variable_is_depth_or_compare
public static boolean spvc_compiler_variable_is_depth_or_compare(long compiler, int id)
-
spvc_compiler_mask_stage_output_by_location
public static int spvc_compiler_mask_stage_output_by_location(long compiler, int location, int component)
-
spvc_compiler_mask_stage_output_by_builtin
public static int spvc_compiler_mask_stage_output_by_builtin(long compiler, int builtin)
-
nspvc_compiler_hlsl_set_root_constants_layout
public static int nspvc_compiler_hlsl_set_root_constants_layout(long compiler, long constant_info, long count)Unsafe version of:compiler_hlsl_set_root_constants_layout
-
spvc_compiler_hlsl_set_root_constants_layout
public static int spvc_compiler_hlsl_set_root_constants_layout(long compiler, SpvcHlslRootConstants constant_info, long count)HLSL specifics. Maps to C++ API.
-
nspvc_compiler_hlsl_add_vertex_attribute_remap
public static int nspvc_compiler_hlsl_add_vertex_attribute_remap(long compiler, long remap, long remaps)
-
spvc_compiler_hlsl_add_vertex_attribute_remap
public static int spvc_compiler_hlsl_add_vertex_attribute_remap(long compiler, SpvcHlslVertexAttributeRemap remap, long remaps)
-
spvc_compiler_hlsl_remap_num_workgroups_builtin
public static int spvc_compiler_hlsl_remap_num_workgroups_builtin(long compiler)
-
spvc_compiler_hlsl_set_resource_binding_flags
public static int spvc_compiler_hlsl_set_resource_binding_flags(long compiler, int flags)
-
nspvc_compiler_hlsl_add_resource_binding
public static int nspvc_compiler_hlsl_add_resource_binding(long compiler, long binding)
-
spvc_compiler_hlsl_add_resource_binding
public static int spvc_compiler_hlsl_add_resource_binding(long compiler, SpvcHLSLResourceBinding binding)
-
spvc_compiler_hlsl_is_resource_used
public static boolean spvc_compiler_hlsl_is_resource_used(long compiler, int model, int set, int binding)
-
spvc_compiler_msl_is_rasterization_disabled
public static boolean spvc_compiler_msl_is_rasterization_disabled(long compiler)
MSL specifics. Maps to C++ API.
-
spvc_compiler_msl_needs_swizzle_buffer
public static boolean spvc_compiler_msl_needs_swizzle_buffer(long compiler)
-
spvc_compiler_msl_needs_buffer_size_buffer
public static boolean spvc_compiler_msl_needs_buffer_size_buffer(long compiler)
-
spvc_compiler_msl_needs_output_buffer
public static boolean spvc_compiler_msl_needs_output_buffer(long compiler)
-
spvc_compiler_msl_needs_patch_output_buffer
public static boolean spvc_compiler_msl_needs_patch_output_buffer(long compiler)
-
spvc_compiler_msl_needs_input_threadgroup_mem
public static boolean spvc_compiler_msl_needs_input_threadgroup_mem(long compiler)
-
nspvc_compiler_msl_add_vertex_attribute
public static int nspvc_compiler_msl_add_vertex_attribute(long compiler, long attrs)
-
spvc_compiler_msl_add_vertex_attribute
public static int spvc_compiler_msl_add_vertex_attribute(long compiler, SpvcMslVertexAttribute attrs)
-
nspvc_compiler_msl_add_resource_binding
public static int nspvc_compiler_msl_add_resource_binding(long compiler, long binding)
-
spvc_compiler_msl_add_resource_binding
public static int spvc_compiler_msl_add_resource_binding(long compiler, SpvcMslResourceBinding binding)
-
nspvc_compiler_msl_add_shader_input
public static int nspvc_compiler_msl_add_shader_input(long compiler, long input)
-
spvc_compiler_msl_add_shader_input
public static int spvc_compiler_msl_add_shader_input(long compiler, SpvcMslShaderInput input)
-
spvc_compiler_msl_add_discrete_descriptor_set
public static int spvc_compiler_msl_add_discrete_descriptor_set(long compiler, int desc_set)
-
spvc_compiler_msl_set_argument_buffer_device_address_space
public static int spvc_compiler_msl_set_argument_buffer_device_address_space(long compiler, int desc_set, boolean device_address)
-
spvc_compiler_msl_is_vertex_attribute_used
public static boolean spvc_compiler_msl_is_vertex_attribute_used(long compiler, int location)Obsolete, usecompiler_msl_is_shader_input_used.
-
spvc_compiler_msl_is_shader_input_used
public static boolean spvc_compiler_msl_is_shader_input_used(long compiler, int location)
-
spvc_compiler_msl_is_resource_used
public static boolean spvc_compiler_msl_is_resource_used(long compiler, int model, int set, int binding)
-
nspvc_compiler_msl_remap_constexpr_sampler
public static int nspvc_compiler_msl_remap_constexpr_sampler(long compiler, int id, long sampler)
-
spvc_compiler_msl_remap_constexpr_sampler
public static int spvc_compiler_msl_remap_constexpr_sampler(long compiler, int id, SpvcMslConstexprSampler sampler)
-
nspvc_compiler_msl_remap_constexpr_sampler_by_binding
public static int nspvc_compiler_msl_remap_constexpr_sampler_by_binding(long compiler, int desc_set, int binding, long sampler)
-
spvc_compiler_msl_remap_constexpr_sampler_by_binding
public static int spvc_compiler_msl_remap_constexpr_sampler_by_binding(long compiler, int desc_set, int binding, SpvcMslConstexprSampler sampler)
-
nspvc_compiler_msl_remap_constexpr_sampler_ycbcr
public static int nspvc_compiler_msl_remap_constexpr_sampler_ycbcr(long compiler, int id, long sampler, long conv)
-
spvc_compiler_msl_remap_constexpr_sampler_ycbcr
public static int spvc_compiler_msl_remap_constexpr_sampler_ycbcr(long compiler, int id, SpvcMslConstexprSampler sampler, SpvcMslSamplerYcbcrConversion conv)
-
nspvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr
public static int nspvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr(long compiler, int desc_set, int binding, long sampler, long conv)
-
spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr
public static int spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr(long compiler, int desc_set, int binding, SpvcMslConstexprSampler sampler, SpvcMslSamplerYcbcrConversion conv)
-
spvc_compiler_msl_set_fragment_output_components
public static int spvc_compiler_msl_set_fragment_output_components(long compiler, int location, int components)
-
spvc_compiler_msl_get_automatic_resource_binding
public static int spvc_compiler_msl_get_automatic_resource_binding(long compiler, int id)
-
spvc_compiler_msl_get_automatic_resource_binding_secondary
public static int spvc_compiler_msl_get_automatic_resource_binding_secondary(long compiler, int id)
-
spvc_compiler_msl_add_dynamic_buffer
public static int spvc_compiler_msl_add_dynamic_buffer(long compiler, int desc_set, int binding, int index)
-
spvc_compiler_msl_add_inline_uniform_block
public static int spvc_compiler_msl_add_inline_uniform_block(long compiler, int desc_set, int binding)
-
nspvc_compiler_msl_set_combined_sampler_suffix
public static int nspvc_compiler_msl_set_combined_sampler_suffix(long compiler, long suffix)
-
spvc_compiler_msl_set_combined_sampler_suffix
public static int spvc_compiler_msl_set_combined_sampler_suffix(long compiler, java.nio.ByteBuffer suffix)
-
spvc_compiler_msl_set_combined_sampler_suffix
public static int spvc_compiler_msl_set_combined_sampler_suffix(long compiler, java.lang.CharSequence suffix)
-
nspvc_compiler_msl_get_combined_sampler_suffix
public static long nspvc_compiler_msl_get_combined_sampler_suffix(long compiler)
-
spvc_compiler_msl_get_combined_sampler_suffix
@Nullable public static java.lang.String spvc_compiler_msl_get_combined_sampler_suffix(long compiler)
-
nspvc_compiler_get_active_interface_variables
public static int nspvc_compiler_get_active_interface_variables(long compiler, long set)Unsafe version of:compiler_get_active_interface_variables
-
spvc_compiler_get_active_interface_variables
public static int spvc_compiler_get_active_interface_variables(long compiler, org.lwjgl.PointerBuffer set)Reflect resources. Maps almost 1:1 to C++ API.
-
spvc_compiler_set_enabled_interface_variables
public static int spvc_compiler_set_enabled_interface_variables(long compiler, long set)
-
nspvc_compiler_create_shader_resources
public static int nspvc_compiler_create_shader_resources(long compiler, long resources)
-
spvc_compiler_create_shader_resources
public static int spvc_compiler_create_shader_resources(long compiler, org.lwjgl.PointerBuffer resources)
-
nspvc_compiler_create_shader_resources_for_active_variables
public static int nspvc_compiler_create_shader_resources_for_active_variables(long compiler, long resources, long active)
-
spvc_compiler_create_shader_resources_for_active_variables
public static int spvc_compiler_create_shader_resources_for_active_variables(long compiler, org.lwjgl.PointerBuffer resources, long active)
-
nspvc_resources_get_resource_list_for_type
public static int nspvc_resources_get_resource_list_for_type(long resources, int type, long resource_list, long resource_size)
-
spvc_resources_get_resource_list_for_type
public static int spvc_resources_get_resource_list_for_type(long resources, int type, org.lwjgl.PointerBuffer resource_list, org.lwjgl.PointerBuffer resource_size)
-
nspvc_resources_get_builtin_resource_list_for_type
public static int nspvc_resources_get_builtin_resource_list_for_type(long resources, int type, long resource_list, long resource_size)
-
spvc_resources_get_builtin_resource_list_for_type
public static int spvc_resources_get_builtin_resource_list_for_type(long resources, int type, org.lwjgl.PointerBuffer resource_list, org.lwjgl.PointerBuffer resource_size)
-
spvc_compiler_set_decoration
public static void spvc_compiler_set_decoration(long compiler, int id, int decoration, int argument)Decorations. Maps to C++ API.
-
nspvc_compiler_set_decoration_string
public static void nspvc_compiler_set_decoration_string(long compiler, int id, int decoration, long argument)
-
spvc_compiler_set_decoration_string
public static void spvc_compiler_set_decoration_string(long compiler, int id, int decoration, java.nio.ByteBuffer argument)
-
spvc_compiler_set_decoration_string
public static void spvc_compiler_set_decoration_string(long compiler, int id, int decoration, java.lang.CharSequence argument)
-
nspvc_compiler_set_name
public static void nspvc_compiler_set_name(long compiler, int id, long argument)
-
spvc_compiler_set_name
public static void spvc_compiler_set_name(long compiler, int id, java.nio.ByteBuffer argument)
-
spvc_compiler_set_name
public static void spvc_compiler_set_name(long compiler, int id, java.lang.CharSequence argument)
-
spvc_compiler_set_member_decoration
public static void spvc_compiler_set_member_decoration(long compiler, int id, int member_index, int decoration, int argument)
-
nspvc_compiler_set_member_decoration_string
public static void nspvc_compiler_set_member_decoration_string(long compiler, int id, int member_index, int decoration, long argument)
-
spvc_compiler_set_member_decoration_string
public static void spvc_compiler_set_member_decoration_string(long compiler, int id, int member_index, int decoration, java.nio.ByteBuffer argument)
-
spvc_compiler_set_member_decoration_string
public static void spvc_compiler_set_member_decoration_string(long compiler, int id, int member_index, int decoration, java.lang.CharSequence argument)
-
nspvc_compiler_set_member_name
public static void nspvc_compiler_set_member_name(long compiler, int id, int member_index, long argument)
-
spvc_compiler_set_member_name
public static void spvc_compiler_set_member_name(long compiler, int id, int member_index, java.nio.ByteBuffer argument)
-
spvc_compiler_set_member_name
public static void spvc_compiler_set_member_name(long compiler, int id, int member_index, java.lang.CharSequence argument)
-
spvc_compiler_unset_decoration
public static void spvc_compiler_unset_decoration(long compiler, int id, int decoration)
-
spvc_compiler_unset_member_decoration
public static void spvc_compiler_unset_member_decoration(long compiler, int id, int member_index, int decoration)
-
spvc_compiler_has_decoration
public static boolean spvc_compiler_has_decoration(long compiler, int id, int decoration)
-
spvc_compiler_has_member_decoration
public static boolean spvc_compiler_has_member_decoration(long compiler, int id, int member_index, int decoration)
-
nspvc_compiler_get_name
public static long nspvc_compiler_get_name(long compiler, int id)
-
spvc_compiler_get_name
@Nullable public static java.lang.String spvc_compiler_get_name(long compiler, int id)
-
spvc_compiler_get_decoration
public static int spvc_compiler_get_decoration(long compiler, int id, int decoration)
-
nspvc_compiler_get_decoration_string
public static long nspvc_compiler_get_decoration_string(long compiler, int id, int decoration)
-
spvc_compiler_get_decoration_string
@Nullable public static java.lang.String spvc_compiler_get_decoration_string(long compiler, int id, int decoration)
-
spvc_compiler_get_member_decoration
public static int spvc_compiler_get_member_decoration(long compiler, int id, int member_index, int decoration)
-
nspvc_compiler_get_member_decoration_string
public static long nspvc_compiler_get_member_decoration_string(long compiler, int id, int member_index, int decoration)
-
spvc_compiler_get_member_decoration_string
@Nullable public static java.lang.String spvc_compiler_get_member_decoration_string(long compiler, int id, int member_index, int decoration)
-
nspvc_compiler_get_member_name
public static long nspvc_compiler_get_member_name(long compiler, int id, int member_index)
-
spvc_compiler_get_member_name
@Nullable public static java.lang.String spvc_compiler_get_member_name(long compiler, int id, int member_index)
-
nspvc_compiler_get_entry_points
public static int nspvc_compiler_get_entry_points(long compiler, long entry_points, long num_entry_points)Unsafe version of:compiler_get_entry_points
-
spvc_compiler_get_entry_points
public static int spvc_compiler_get_entry_points(long compiler, org.lwjgl.PointerBuffer entry_points, org.lwjgl.PointerBuffer num_entry_points)Entry points. Maps to C++ API.
-
nspvc_compiler_set_entry_point
public static int nspvc_compiler_set_entry_point(long compiler, long name, int model)
-
spvc_compiler_set_entry_point
public static int spvc_compiler_set_entry_point(long compiler, java.nio.ByteBuffer name, int model)
-
spvc_compiler_set_entry_point
public static int spvc_compiler_set_entry_point(long compiler, java.lang.CharSequence name, int model)
-
nspvc_compiler_rename_entry_point
public static int nspvc_compiler_rename_entry_point(long compiler, long old_name, long new_name, int model)
-
spvc_compiler_rename_entry_point
public static int spvc_compiler_rename_entry_point(long compiler, java.nio.ByteBuffer old_name, java.nio.ByteBuffer new_name, int model)
-
spvc_compiler_rename_entry_point
public static int spvc_compiler_rename_entry_point(long compiler, java.lang.CharSequence old_name, java.lang.CharSequence new_name, int model)
-
nspvc_compiler_get_cleansed_entry_point_name
public static long nspvc_compiler_get_cleansed_entry_point_name(long compiler, long name, int model)
-
spvc_compiler_get_cleansed_entry_point_name
@Nullable public static java.lang.String spvc_compiler_get_cleansed_entry_point_name(long compiler, java.nio.ByteBuffer name, int model)
-
spvc_compiler_get_cleansed_entry_point_name
@Nullable public static java.lang.String spvc_compiler_get_cleansed_entry_point_name(long compiler, java.lang.CharSequence name, int model)
-
spvc_compiler_set_execution_mode
public static void spvc_compiler_set_execution_mode(long compiler, int mode)
-
spvc_compiler_unset_execution_mode
public static void spvc_compiler_unset_execution_mode(long compiler, int mode)
-
spvc_compiler_set_execution_mode_with_arguments
public static void spvc_compiler_set_execution_mode_with_arguments(long compiler, int mode, int arg0, int arg1, int arg2)
-
nspvc_compiler_get_execution_modes
public static int nspvc_compiler_get_execution_modes(long compiler, long modes, long num_modes)
-
spvc_compiler_get_execution_modes
public static int spvc_compiler_get_execution_modes(long compiler, org.lwjgl.PointerBuffer modes, org.lwjgl.PointerBuffer num_modes)
-
spvc_compiler_get_execution_mode_argument
public static int spvc_compiler_get_execution_mode_argument(long compiler, int mode)
-
spvc_compiler_get_execution_mode_argument_by_index
public static int spvc_compiler_get_execution_mode_argument_by_index(long compiler, int mode, int index)
-
spvc_compiler_get_execution_model
public static int spvc_compiler_get_execution_model(long compiler)
-
spvc_compiler_update_active_builtins
public static void spvc_compiler_update_active_builtins(long compiler)
-
spvc_compiler_has_active_builtin
public static boolean spvc_compiler_has_active_builtin(long compiler, int builtin, int storage)
-
spvc_compiler_get_type_handle
public static long spvc_compiler_get_type_handle(long compiler, int id)Type query interface. Maps to C++ API, except it's read-only.
-
spvc_type_get_base_type_id
public static int spvc_type_get_base_type_id(long type)
Pulls outSPIRType::self.This effectively gives the type ID without array or pointer qualifiers. This is necessary when reflecting decoration/name information on members of a struct, which are placed in the base type, not the qualified type. This is similar to
spvc_reflected_resource::base_type_id.
-
spvc_type_get_basetype
public static int spvc_type_get_basetype(long type)
-
spvc_type_get_bit_width
public static int spvc_type_get_bit_width(long type)
-
spvc_type_get_vector_size
public static int spvc_type_get_vector_size(long type)
-
spvc_type_get_columns
public static int spvc_type_get_columns(long type)
-
spvc_type_get_num_array_dimensions
public static int spvc_type_get_num_array_dimensions(long type)
-
spvc_type_array_dimension_is_literal
public static boolean spvc_type_array_dimension_is_literal(long type, int dimension)
-
spvc_type_get_array_dimension
public static int spvc_type_get_array_dimension(long type, int dimension)
-
spvc_type_get_num_member_types
public static int spvc_type_get_num_member_types(long type)
-
spvc_type_get_member_type
public static int spvc_type_get_member_type(long type, int index)
-
spvc_type_get_storage_class
public static int spvc_type_get_storage_class(long type)
-
spvc_type_get_image_sampled_type
public static int spvc_type_get_image_sampled_type(long type)
Image type query.
-
spvc_type_get_image_dimension
public static int spvc_type_get_image_dimension(long type)
-
spvc_type_get_image_is_depth
public static boolean spvc_type_get_image_is_depth(long type)
-
spvc_type_get_image_arrayed
public static boolean spvc_type_get_image_arrayed(long type)
-
spvc_type_get_image_multisampled
public static boolean spvc_type_get_image_multisampled(long type)
-
spvc_type_get_image_is_storage
public static boolean spvc_type_get_image_is_storage(long type)
-
spvc_type_get_image_storage_format
public static int spvc_type_get_image_storage_format(long type)
-
spvc_type_get_image_access_qualifier
public static int spvc_type_get_image_access_qualifier(long type)
-
nspvc_compiler_get_declared_struct_size
public static int nspvc_compiler_get_declared_struct_size(long compiler, long struct_type, long size)Unsafe version of:compiler_get_declared_struct_size
-
spvc_compiler_get_declared_struct_size
public static int spvc_compiler_get_declared_struct_size(long compiler, long struct_type, org.lwjgl.PointerBuffer size)Buffer layout query. Maps to C++ API.
-
nspvc_compiler_get_declared_struct_size_runtime_array
public static int nspvc_compiler_get_declared_struct_size_runtime_array(long compiler, long struct_type, long array_size, long size)
-
spvc_compiler_get_declared_struct_size_runtime_array
public static int spvc_compiler_get_declared_struct_size_runtime_array(long compiler, long struct_type, long array_size, org.lwjgl.PointerBuffer size)
-
nspvc_compiler_get_declared_struct_member_size
public static int nspvc_compiler_get_declared_struct_member_size(long compiler, long type, int index, long size)
-
spvc_compiler_get_declared_struct_member_size
public static int spvc_compiler_get_declared_struct_member_size(long compiler, long type, int index, org.lwjgl.PointerBuffer size)
-
nspvc_compiler_type_struct_member_offset
public static int nspvc_compiler_type_struct_member_offset(long compiler, long type, int index, long offset)
-
spvc_compiler_type_struct_member_offset
public static int spvc_compiler_type_struct_member_offset(long compiler, long type, int index, java.nio.IntBuffer offset)
-
nspvc_compiler_type_struct_member_array_stride
public static int nspvc_compiler_type_struct_member_array_stride(long compiler, long type, int index, long stride)
-
spvc_compiler_type_struct_member_array_stride
public static int spvc_compiler_type_struct_member_array_stride(long compiler, long type, int index, java.nio.IntBuffer stride)
-
nspvc_compiler_type_struct_member_matrix_stride
public static int nspvc_compiler_type_struct_member_matrix_stride(long compiler, long type, int index, long stride)
-
spvc_compiler_type_struct_member_matrix_stride
public static int spvc_compiler_type_struct_member_matrix_stride(long compiler, long type, int index, java.nio.IntBuffer stride)
-
nspvc_compiler_build_dummy_sampler_for_combined_images
public static int nspvc_compiler_build_dummy_sampler_for_combined_images(long compiler, long id)Unsafe version of:compiler_build_dummy_sampler_for_combined_images
-
spvc_compiler_build_dummy_sampler_for_combined_images
public static int spvc_compiler_build_dummy_sampler_for_combined_images(long compiler, java.nio.IntBuffer id)Workaround helper functions. Maps to C++ API.
-
spvc_compiler_build_combined_image_samplers
public static int spvc_compiler_build_combined_image_samplers(long compiler)
-
nspvc_compiler_get_combined_image_samplers
public static int nspvc_compiler_get_combined_image_samplers(long compiler, long samplers, long num_samplers)
-
spvc_compiler_get_combined_image_samplers
public static int spvc_compiler_get_combined_image_samplers(long compiler, org.lwjgl.PointerBuffer samplers, org.lwjgl.PointerBuffer num_samplers)
-
nspvc_compiler_get_specialization_constants
public static int nspvc_compiler_get_specialization_constants(long compiler, long constants, long num_constants)Unsafe version of:compiler_get_specialization_constants
-
spvc_compiler_get_specialization_constants
public static int spvc_compiler_get_specialization_constants(long compiler, org.lwjgl.PointerBuffer constants, org.lwjgl.PointerBuffer num_constants)Constants Maps to C++ API.
-
spvc_compiler_get_constant_handle
public static long spvc_compiler_get_constant_handle(long compiler, int id)
-
nspvc_compiler_get_work_group_size_specialization_constants
public static int nspvc_compiler_get_work_group_size_specialization_constants(long compiler, long x, long y, long z)
-
spvc_compiler_get_work_group_size_specialization_constants
public static int spvc_compiler_get_work_group_size_specialization_constants(long compiler, SpvcSpecializationConstant x, SpvcSpecializationConstant y, SpvcSpecializationConstant z)
-
nspvc_compiler_get_active_buffer_ranges
public static int nspvc_compiler_get_active_buffer_ranges(long compiler, int id, long ranges, long num_ranges)Unsafe version of:compiler_get_active_buffer_ranges
-
spvc_compiler_get_active_buffer_ranges
public static int spvc_compiler_get_active_buffer_ranges(long compiler, int id, org.lwjgl.PointerBuffer ranges, org.lwjgl.PointerBuffer num_ranges)Buffer ranges Maps to C++ API.
-
spvc_constant_get_scalar_fp16
public static float spvc_constant_get_scalar_fp16(long constant, int column, int row)No stdint.h until C99, sigh :( For smaller types, the result is sign or zero-extended as appropriate. Maps to C++ API. TODO: The SPIRConstant query interface and modification interface is not quite complete.
-
spvc_constant_get_scalar_fp32
public static float spvc_constant_get_scalar_fp32(long constant, int column, int row)
-
spvc_constant_get_scalar_fp64
public static double spvc_constant_get_scalar_fp64(long constant, int column, int row)
-
spvc_constant_get_scalar_u32
public static int spvc_constant_get_scalar_u32(long constant, int column, int row)
-
spvc_constant_get_scalar_i32
public static int spvc_constant_get_scalar_i32(long constant, int column, int row)
-
spvc_constant_get_scalar_u16
public static int spvc_constant_get_scalar_u16(long constant, int column, int row)
-
spvc_constant_get_scalar_i16
public static int spvc_constant_get_scalar_i16(long constant, int column, int row)
-
spvc_constant_get_scalar_u8
public static int spvc_constant_get_scalar_u8(long constant, int column, int row)
-
spvc_constant_get_scalar_i8
public static int spvc_constant_get_scalar_i8(long constant, int column, int row)
-
nspvc_constant_get_subconstants
public static void nspvc_constant_get_subconstants(long constant, long constituents, long count)
-
spvc_constant_get_subconstants
public static void spvc_constant_get_subconstants(long constant, org.lwjgl.PointerBuffer constituents, org.lwjgl.PointerBuffer count)
-
spvc_constant_get_type
public static int spvc_constant_get_type(long constant)
-
nspvc_compiler_get_binary_offset_for_decoration
public static boolean nspvc_compiler_get_binary_offset_for_decoration(long compiler, int id, int decoration, long word_offset)Unsafe version of:compiler_get_binary_offset_for_decoration
-
spvc_compiler_get_binary_offset_for_decoration
public static boolean spvc_compiler_get_binary_offset_for_decoration(long compiler, int id, int decoration, java.nio.IntBuffer word_offset)Misc reflection Maps to C++ API.
-
spvc_compiler_buffer_is_hlsl_counter_buffer
public static boolean spvc_compiler_buffer_is_hlsl_counter_buffer(long compiler, int id)
-
nspvc_compiler_buffer_get_hlsl_counter_buffer
public static boolean nspvc_compiler_buffer_get_hlsl_counter_buffer(long compiler, int id, long counter_id)
-
spvc_compiler_buffer_get_hlsl_counter_buffer
public static boolean spvc_compiler_buffer_get_hlsl_counter_buffer(long compiler, int id, java.nio.IntBuffer counter_id)
-
nspvc_compiler_get_declared_capabilities
public static int nspvc_compiler_get_declared_capabilities(long compiler, long capabilities, long num_capabilities)
-
spvc_compiler_get_declared_capabilities
public static int spvc_compiler_get_declared_capabilities(long compiler, org.lwjgl.PointerBuffer capabilities, org.lwjgl.PointerBuffer num_capabilities)
-
nspvc_compiler_get_declared_extensions
public static int nspvc_compiler_get_declared_extensions(long compiler, long extensions, long num_extensions)
-
spvc_compiler_get_declared_extensions
public static int spvc_compiler_get_declared_extensions(long compiler, org.lwjgl.PointerBuffer extensions, org.lwjgl.PointerBuffer num_extensions)
-
nspvc_compiler_get_remapped_declared_block_name
public static long nspvc_compiler_get_remapped_declared_block_name(long compiler, int id)
-
spvc_compiler_get_remapped_declared_block_name
@Nullable public static java.lang.String spvc_compiler_get_remapped_declared_block_name(long compiler, int id)
-
nspvc_compiler_get_buffer_block_decorations
public static int nspvc_compiler_get_buffer_block_decorations(long compiler, int id, long decorations, long num_decorations)
-
spvc_compiler_get_buffer_block_decorations
public static int spvc_compiler_get_buffer_block_decorations(long compiler, int id, org.lwjgl.PointerBuffer decorations, org.lwjgl.PointerBuffer num_decorations)
-
-