SPIRV-Cross is a tool designed for parsing and converting SPIR-V to other shader languages.
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.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Spvc.
Contains the function pointers loaded from the spvc |
| Modifier and Type | Field and Description |
|---|---|
| private static final SharedLibrary | |
| public static final int | SPVC_BACKEND_CPP
|
| public static final int | SPVC_BACKEND_GLSL
|
| public static final int | SPVC_BACKEND_HLSL
|
| public static final int | SPVC_BACKEND_JSON
|
| public static final int | SPVC_BACKEND_MSL
|
| public static final int | SPVC_BACKEND_NONE
|
| public static final int | SPVC_BASETYPE_ACCELERATION_STRUCTURE
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_ATOMIC_COUNTER
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_BOOLEAN
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_FP16
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_FP32
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_FP64
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_IMAGE
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_INT16
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_INT32
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_INT64
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_INT8
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_SAMPLED_IMAGE
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_SAMPLER
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_STRUCT
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_UINT16
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_UINT32
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_UINT64
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_UINT8
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_UNKNOWN
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BASETYPE_VOID
Maps to spirv_cross::SPIRType::BaseType. |
| public static final int | SPVC_BUILTIN_RESOURCE_TYPE_STAGE_INPUT
|
| public static final int | SPVC_BUILTIN_RESOURCE_TYPE_STAGE_OUTPUT
|
| public static final int | SPVC_BUILTIN_RESOURCE_TYPE_UNKNOWN
|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | SPVC_CAPTURE_MODE_COPY
|
| public static final int | SPVC_CAPTURE_MODE_TAKE_OWNERSHIP
|
| public static final int | |
| public static final int | SPVC_COMPILER_OPTION_EMIT_LINE_DIRECTIVES
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_ENABLE_STORAGE_IMAGE_QUALIFIER_DEDUCTION
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | |
| public static final int | SPVC_COMPILER_OPTION_FIXUP_DEPTH_CONVENTION
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_FLATTEN_MULTIDIMENSIONAL_ARRAYS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_FLIP_VERTEX_Y
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_FORCE_TEMPORARY
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_FORCE_ZERO_INITIALIZED_VARIABLES
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | |
| public static final int | SPVC_COMPILER_OPTION_GLSL_EMIT_PUSH_CONSTANT_AS_UNIFORM_BUFFER
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_EMIT_UNIFORM_BUFFER_AS_PLAIN_UNIFORMS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_ENABLE_420PACK_EXTENSION
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_ENABLE_ROW_MAJOR_LOAD_WORKAROUND
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_ES
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_FLOAT_PRECISION_HIGHP
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_INT_PRECISION_HIGHP
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_FORCE_FLATTENED_IO_BLOCKS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_OVR_MULTIVIEW_VIEW_COUNT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_SEPARATE_SHADER_OBJECTS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_SUPPORT_NONZERO_BASE_INSTANCE
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_VERSION
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_GLSL_VULKAN_SEMANTICS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | |
| public static final int | SPVC_COMPILER_OPTION_HLSL_ENABLE_16BIT_TYPES
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_HLSL_FLATTEN_MATRIX_VERTEX_INPUT_SEMANTICS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_HLSL_FORCE_STORAGE_BUFFER_AS_UAV
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_HLSL_NONWRITABLE_UAV_TEXTURE_AS_SRV
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_HLSL_POINT_COORD_COMPAT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_HLSL_POINT_SIZE_COMPAT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_HLSL_SHADER_MODEL
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_HLSL_SUPPORT_NONZERO_BASE_VERTEX_BASE_INSTANCE
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | |
| public static final int | SPVC_COMPILER_OPTION_MSL_ARGUMENT_BUFFERS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_ARGUMENT_BUFFERS_TIER
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_ARRAYED_SUBPASS_INPUT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_AUX_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | |
| public static final int | SPVC_COMPILER_OPTION_MSL_BUFFER_SIZE_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_CAPTURE_OUTPUT_TO_BUFFER
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_CHECK_DISCARDED_FRAG_STORES
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_DEVICE_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_DISABLE_RASTERIZATION
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_DISPATCH_BASE
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_DYNAMIC_OFFSETS_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_EMULATE_CUBEMAP_ARRAY
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_EMULATE_SUBGROUPS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_ENABLE_BASE_INDEX_ZERO
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_ENABLE_CLIP_DISTANCE_USER_VARYING
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_ENABLE_DECORATION_BINDING
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_DEPTH_BUILTIN
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_OUTPUT_MASK
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_STENCIL_REF_BUILTIN
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_ENABLE_POINT_SIZE_BUILTIN
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_FIXED_SUBGROUP_SIZE
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_FORCE_ACTIVE_ARGUMENT_BUFFER_RESOURCES
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_FORCE_NATIVE_ARRAYS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_FORCE_SAMPLE_RATE_SHADING
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_FRAMEBUFFER_FETCH_SUBPASS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_INDIRECT_PARAMS_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_INVARIANT_FP_MATH
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_IOS_FRAMEBUFFER_FETCH_SUBPASS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCE
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_IOS_USE_SIMDGROUP_FUNCTIONS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_MANUAL_HELPER_INVOCATION_UPDATES
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_MULTI_PATCH_WORKGROUP
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_MULTIVIEW
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_MULTIVIEW_LAYERED_RENDERING
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_PAD_FRAGMENT_OUTPUT_COMPONENTS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_PLATFORM
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_R32UI_ALIGNMENT_CONSTANT_ID
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_R32UI_LINEAR_TEXTURE_ALIGNMENT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_RAW_BUFFER_TESE_INPUT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SAMPLE_DREF_LOD_ARRAY_AS_GRAD
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SHADER_INDEX_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SHADER_INPUT_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SHADER_INPUT_WORKGROUP_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SHADER_OUTPUT_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_INPUT_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_OUTPUT_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SHADER_TESS_FACTOR_OUTPUT_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SWIZZLE_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_SWIZZLE_TEXTURE_SAMPLES
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_TESS_DOMAIN_ORIGIN_LOWER_LEFT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_TEXEL_BUFFER_TEXTURE_WIDTH
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_TEXTURE_1D_AS_2D
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_TEXTURE_BUFFER_NATIVE
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_VERSION
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_VERTEX_FOR_TESSELLATION
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_VERTEX_INDEX_TYPE
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_VIEW_INDEX_FROM_DEVICE_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_MSL_VIEW_MASK_BUFFER_INDEX
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_RELAX_NAN_CHECKS
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_COMPILER_OPTION_UNKNOWN
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_ERROR_INVALID_ARGUMENT
|
| public static final int | SPVC_ERROR_INVALID_SPIRV
|
| public static final int | SPVC_ERROR_OUT_OF_MEMORY
|
| public static final int | SPVC_ERROR_UNSUPPORTED_SPIRV
|
| public static final int | SPVC_HLSL_BINDING_AUTO_ALL
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_HLSL_BINDING_AUTO_CBV_BIT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_HLSL_BINDING_AUTO_NONE_BIT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_HLSL_BINDING_AUTO_PUSH_CONSTANT_BIT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_HLSL_BINDING_AUTO_SAMPLER_BIT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_HLSL_BINDING_AUTO_SRV_BIT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_HLSL_BINDING_AUTO_UAV_BIT
Maps to the various spirv_cross::Compiler*::Option structures. |
| public static final int | SPVC_HLSL_PUSH_CONSTANT_BINDING
Special constant used in an HLSL |
| public static final int | SPVC_HLSL_PUSH_CONSTANT_DESC_SET
Special constant used in an HLSL |
| public static final int | SPVC_MSL_ARGUMENT_BUFFER_BINDING
Special constant used in a |
| public static final int | |
| public static final int | SPVC_MSL_BUFFER_SIZE_BUFFER_BINDING
Special constant used in a |
| public static final int | SPVC_MSL_CHROMA_LOCATION_COSITED_EVEN
Maps to C++ API. |
| public static final int | SPVC_MSL_CHROMA_LOCATION_MIDPOINT
Maps to C++ API. |
| public static final int | SPVC_MSL_COMPONENT_SWIZZLE_A
Maps to C++ API. |
| public static final int | SPVC_MSL_COMPONENT_SWIZZLE_B
Maps to C++ API. |
| public static final int | SPVC_MSL_COMPONENT_SWIZZLE_G
Maps to C++ API. |
| public static final int | SPVC_MSL_COMPONENT_SWIZZLE_IDENTITY
Maps to C++ API. |
| public static final int | SPVC_MSL_COMPONENT_SWIZZLE_ONE
Maps to C++ API. |
| public static final int | SPVC_MSL_COMPONENT_SWIZZLE_R
Maps to C++ API. |
| public static final int | SPVC_MSL_COMPONENT_SWIZZLE_ZERO
Maps to C++ API. |
| public static final int | SPVC_MSL_FORMAT_RESOLUTION_420
Maps to C++ API. |
| public static final int | SPVC_MSL_FORMAT_RESOLUTION_422
Maps to C++ API. |
| public static final int | SPVC_MSL_FORMAT_RESOLUTION_444
Maps to C++ API. |
| public static final int | SPVC_MSL_INDEX_TYPE_NONE
The type of index in the index buffer, if present. |
| public static final int | SPVC_MSL_INDEX_TYPE_UINT16
The type of index in the index buffer, if present. |
| public static final int | SPVC_MSL_INDEX_TYPE_UINT32
The type of index in the index buffer, if present. |
| public static final int | SPVC_MSL_PLATFORM_IOS
Maps to C++ API. |
| public static final int | SPVC_MSL_PLATFORM_MACOS
Maps to C++ API. |
| public static final int | SPVC_MSL_PUSH_CONSTANT_BINDING
Special constant used in a |
| public static final int | SPVC_MSL_PUSH_CONSTANT_DESC_SET
Special constant used in a |
| public static final int | SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_BORDER
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_EDGE
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_ZERO
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_ADDRESS_MIRRORED_REPEAT
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_ADDRESS_REPEAT
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_BLACK
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_WHITE
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_BORDER_COLOR_TRANSPARENT_BLACK
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COMPARE_FUNC_ALWAYS
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COMPARE_FUNC_EQUAL
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER_EQUAL
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS_EQUAL
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COMPARE_FUNC_NEVER
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COMPARE_FUNC_NOT_EQUAL
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COORD_NORMALIZED
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_COORD_PIXEL
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_FILTER_LINEAR
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_FILTER_NEAREST
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_MIP_FILTER_LINEAR
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_MIP_FILTER_NEAREST
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_MIP_FILTER_NONE
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_2020
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_601
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_709
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY
Maps to C++ API. |
| public static final int | SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_FULL
Maps to C+ API. |
| public static final int | SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_NARROW
Maps to C+ API. |
| public static final int | SPVC_MSL_SHADER_INPUT_FORMAT_ANY16
Deprecated. |
| public static final int | SPVC_MSL_SHADER_INPUT_FORMAT_ANY32
Deprecated. |
| public static final int | SPVC_MSL_SHADER_INPUT_FORMAT_OTHER
Deprecated. |
| public static final int | SPVC_MSL_SHADER_INPUT_FORMAT_UINT16
Deprecated. |
| public static final int | SPVC_MSL_SHADER_INPUT_FORMAT_UINT8
Deprecated. |
| public static final int | SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY16
Indicates the format of a shader input. |
| public static final int | SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY32
Indicates the format of a shader input. |
| public static final int | SPVC_MSL_SHADER_VARIABLE_FORMAT_OTHER
Indicates the format of a shader input. |
| public static final int | SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT16
Indicates the format of a shader input. |
| public static final int | SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT8
Indicates the format of a shader input. |
| public static final int | SPVC_MSL_SHADER_VARIABLE_RATE_PER_PATCH
|
| public static final int | SPVC_MSL_SHADER_VARIABLE_RATE_PER_PRIMITIVE
|
| public static final int | SPVC_MSL_SHADER_VARIABLE_RATE_PER_VERTEX
|
| public static final int | SPVC_MSL_SWIZZLE_BUFFER_BINDING
Special constant used in a |
| public static final int | SPVC_MSL_VERTEX_FORMAT_OTHER
Deprecated. |
| public static final int | SPVC_MSL_VERTEX_FORMAT_UINT16
Deprecated. |
| public static final int | SPVC_MSL_VERTEX_FORMAT_UINT8
Deprecated. |
| public static final int | SPVC_RESOURCE_TYPE_ACCELERATION_STRUCTURE
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_ATOMIC_COUNTER
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_PUSH_CONSTANT
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_RAY_QUERY
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_SAMPLED_IMAGE
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_SEPARATE_IMAGE
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_SEPARATE_SAMPLERS
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_SHADER_RECORD_BUFFER
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_STAGE_INPUT
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_STAGE_OUTPUT
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_STORAGE_BUFFER
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_STORAGE_IMAGE
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_SUBPASS_INPUT
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_UNIFORM_BUFFER
Maps to C++ API. |
| public static final int | SPVC_RESOURCE_TYPE_UNKNOWN
Maps to C++ API. |
| public static final int | SPVC_SUCCESS
|
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static SharedLibrary | |
| public static int | |
| public static boolean | |
| public static int | nspvc_compiler_build_dummy_sampler_for_combined_images(long compiler, long id)
Unsafe version of: |
| public static int | |
| public static int | nspvc_compiler_create_compiler_options(long compiler, long options)
Unsafe version of: |
| public static int | |
| public static int | nspvc_compiler_create_shader_resources_for_active_variables(long compiler, long resources, long active)
|
| public static int | nspvc_compiler_get_active_buffer_ranges(long compiler, int id, long ranges, long num_ranges)
Unsafe version of: |
| public static int | nspvc_compiler_get_active_interface_variables(long compiler, long set)
Unsafe version of: |
| public static boolean | nspvc_compiler_get_binary_offset_for_decoration(long compiler, int id, int decoration, long word_offset)
Unsafe version of: |
| public static int | nspvc_compiler_get_buffer_block_decorations(long compiler, int id, long decorations, long num_decorations)
|
| public static long | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | nspvc_compiler_get_declared_struct_size(long compiler, long struct_type, long size)
Unsafe version of: |
| public static int | nspvc_compiler_get_declared_struct_size_runtime_array(long compiler, long struct_type, long array_size, long size)
|
| public static long | |
| public static int | nspvc_compiler_get_entry_points(long compiler, long entry_points, long num_entry_points)
Unsafe version of: |
| public static int | |
| public static long | nspvc_compiler_get_member_decoration_string(long compiler, int id, int member_index, int decoration)
|
| public static long | |
| public static long | |
| public static long | |
| public static long | |
| public static int | nspvc_compiler_get_specialization_constants(long compiler, long constants, long num_constants)
Unsafe version of: |
| public static int | |
| public static int | |
| public static int | |
| public static int | nspvc_compiler_hlsl_set_root_constants_layout(long compiler, long constant_info, long count)
Unsafe version of: |
| public static int | |
| public static int | nspvc_compiler_msl_add_shader_input(long compiler, long input)
Unsafe version of: |
| public static int | |
| public static int | nspvc_compiler_msl_add_shader_output(long compiler, long output)
Unsafe version of: |
| public static int | |
| public static int | |
| public static long | |
| public static int | |
| public static int | nspvc_compiler_msl_remap_constexpr_sampler_by_binding(long compiler, int desc_set, int binding, long sampler)
|
| public static int | nspvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr(long compiler, int desc_set, int binding, long sampler, long conv)
|
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static void | |
| public static int | |
| public static void | nspvc_compiler_set_member_decoration_string(long compiler, int id, int member_index, int decoration, long argument)
|
| public static void | |
| public static void | |
| public static int | |
| public static int | |
| public static int | |
| public static void | |
| public static int | |
| public static int | nspvc_context_create_compiler(long context, int backend, long parsed_ir, int mode, long compiler)
Unsafe version of: |
| public static long | |
| public static int | nspvc_context_parse_spirv(long context, long spirv, long word_count, long parsed_ir)
Unsafe version of: |
| public static void | nspvc_context_set_error_callback(long context, long cb, long userdata)
Unsafe version of: |
| public static long | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | nspvc_msl_sampler_ycbcr_conversion_init(long conv)
Unsafe version of: |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static int | nspvc_resources_get_builtin_resource_list_for_type(long resources, int type, long resource_list, long resource_size)
|
| public static int | nspvc_resources_get_resource_list_for_type(long resources, int type, long resource_list, long resource_size)
|
| public static int | |
| public static int | |
| public static boolean | |
| public static boolean | |
| public static int | |
| public static int | spvc_compiler_build_dummy_sampler_for_combined_images(long compiler, IntBuffer id)
Workaround helper functions. |
| public static int | spvc_compiler_compile(long compiler, PointerBuffer
owned by the context, and caller must not free it themselves source)Compile IR into a string. |
| public static int | spvc_compiler_create_compiler_options(long compiler, PointerBuffer options)
Create compiler options, which will initialize defaults. |
| public static int | |
| public static int | spvc_compiler_create_shader_resources_for_active_variables(long compiler, PointerBuffer resources, long active)
|
| public static int | |
| public static int | spvc_compiler_get_active_buffer_ranges(long compiler, int id, PointerBuffer ranges, PointerBuffer num_ranges)
Buffer ranges Maps to C++ API. |
| public static int | |
| public static boolean | spvc_compiler_get_binary_offset_for_decoration(long compiler, int id, int decoration, IntBuffer word_offset)
Misc reflection Maps to C++ API. |
| public static int | spvc_compiler_get_buffer_block_decorations(long compiler, int id, PointerBuffer decorations, PointerBuffer num_decorations)
|
| public static String | |
| public static String | |
| public static int | spvc_compiler_get_combined_image_samplers(long compiler, PointerBuffer samplers, PointerBuffer num_samplers)
|
| public static long | |
| public static int | |
| public static int | spvc_compiler_get_declared_capabilities(long compiler, PointerBuffer capabilities, PointerBuffer num_capabilities)
|
| public static int | spvc_compiler_get_declared_extensions(long compiler, PointerBuffer extensions, PointerBuffer num_extensions)
|
| public static int | spvc_compiler_get_declared_struct_member_size(long compiler, long type, int index, PointerBuffer size)
|
| public static int | spvc_compiler_get_declared_struct_size(long compiler, long struct_type, PointerBuffer size)
Buffer layout query. |
| public static int | spvc_compiler_get_declared_struct_size_runtime_array(long compiler, long struct_type, long array_size, PointerBuffer size)
|
| public static int | |
| public static String | |
| public static int | spvc_compiler_get_entry_points(long compiler, PointerBuffer entry_points, PointerBuffer num_entry_points)
Entry points. |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static String | |
| public static String | |
| public static String | |
| public static long | |
| public static String | |
| public static String | |
| public static int | spvc_compiler_get_specialization_constants(long compiler, PointerBuffer constants, PointerBuffer num_constants)
Constants Maps to C++ API. |
| public static long | |
| public static int | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static int | |
| public static int | spvc_compiler_hlsl_add_vertex_attribute_remap(long compiler, SpvcHlslVertexAttributeRemap remap, long remaps)
|
| public static boolean | |
| public static int | |
| public static int | |
| public static int | spvc_compiler_hlsl_set_root_constants_layout(long compiler, SpvcHlslRootConstants constant_info, long count)
HLSL specifics. |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | spvc_compiler_msl_add_shader_input(long compiler, SpvcMslShaderInterfaceVar input)
Deprecated; use |
| public static int | |
| public static int | spvc_compiler_msl_add_shader_output(long compiler, SpvcMslShaderInterfaceVar output)
Deprecated; use |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static String | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | spvc_compiler_msl_is_vertex_attribute_used(long compiler, int location)
Obsolete, use |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static int | |
| public static int | spvc_compiler_msl_remap_constexpr_sampler_by_binding(long compiler, int desc_set, int binding, SpvcMslConstexprSampler sampler)
|
| public static int | spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr(long compiler, int desc_set, int binding, SpvcMslConstexprSampler sampler, SpvcMslSamplerYcbcrConversion conv)
|
| public static int | spvc_compiler_msl_remap_constexpr_sampler_ycbcr(long compiler, int id, SpvcMslConstexprSampler sampler, SpvcMslSamplerYcbcrConversion conv)
|
| public static int | spvc_compiler_msl_set_argument_buffer_device_address_space(long compiler, int desc_set, boolean device_address)
|
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | spvc_compiler_rename_entry_point(long compiler, ByteBuffer old_name, ByteBuffer new_name, int model)
|
| public static int | spvc_compiler_rename_entry_point(long compiler, CharSequence old_name, CharSequence new_name, int model)
|
| public static int | |
| public static int | |
| public static void | |
| public static void | |
| public static void | |
| public static int | |
| public static int | |
| public static int | |
| public static void | |
| public static void | spvc_compiler_set_execution_mode_with_arguments(long compiler, int mode, int arg0, int arg1, int arg2)
|
| public static void | spvc_compiler_set_member_decoration(long compiler, int id, int member_index, int decoration, int argument)
|
| public static void | spvc_compiler_set_member_decoration_string(long compiler, int id, int member_index, int decoration, ByteBuffer argument)
|
| public static void | spvc_compiler_set_member_decoration_string(long compiler, int id, int member_index, int decoration, CharSequence argument)
|
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static int | spvc_compiler_type_struct_member_array_stride(long compiler, long type, int index, IntBuffer stride)
|
| public static int | spvc_compiler_type_struct_member_matrix_stride(long compiler, long type, int index, IntBuffer stride)
|
| public static int | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static boolean | |
| 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. |
| public static float | |
| public static double | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static int | |
| public static int | spvc_context_create_compiler(long context, int backend, long parsed_ir, int mode, PointerBuffer compiler)
Create a compiler backend. |
| public static void | spvc_context_destroy(long context)
Frees all memory allocations and objects associated with the context and its child objects. |
| public static String | |
| public static int | spvc_context_parse_spirv(long context, IntBuffer spirv, long word_count, PointerBuffer parsed_ir)
SPIR-V parsing interface. |
| 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. |
| public static void | spvc_context_set_error_callback(long context, SpvcErrorCallbackI cb, long userdata)
Get notified in a callback when an error triggers. |
| public static String | spvc_get_commit_revision_and_timestamp()
Gets a human readable version string to identify which commit a particular binary was created from. |
| public static void | spvc_get_version(IntBuffer major, IntBuffer minor, IntBuffer patch)
Gets the |
| public static void | spvc_hlsl_resource_binding_init(SpvcHLSLResourceBinding binding)
Initializes the resource binding struct. |
| public static void | spvc_msl_constexpr_sampler_init(SpvcMslConstexprSampler sampler)
Initializes the |
| public static int | |
| public static void | spvc_msl_resource_binding_init(SpvcMslResourceBinding binding)
Initializes the resource binding struct. |
| public static void | spvc_msl_sampler_ycbcr_conversion_init(SpvcMslSamplerYcbcrConversion conv)
Initializes the |
| public static void | |
| public static void | spvc_msl_shader_interface_var_init(SpvcMslShaderInterfaceVar var)
Initializes the shader input struct. |
| public static void | spvc_msl_shader_interface_var_init_2(SpvcMslShaderInterfaceVar2 var)
Initializes the shader interface variable struct. |
| public static void | |
| public static int | spvc_resources_get_builtin_resource_list_for_type(long resources, int type, PointerBuffer resource_list, PointerBuffer resource_size)
|
| public static int | spvc_resources_get_resource_list_for_type(long resources, int type, PointerBuffer resource_list, PointerBuffer resource_size)
|
| public static boolean | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static boolean | |
| public static int | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int |