@@ -54,6 +54,7 @@ private Functions() {}
54
54
msl_vertex_attribute_init = apiGetFunctionAddress (SPVC , "spvc_msl_vertex_attribute_init" ),
55
55
msl_shader_interface_var_init = apiGetFunctionAddress (SPVC , "spvc_msl_shader_interface_var_init" ),
56
56
msl_shader_input_init = apiGetFunctionAddress (SPVC , "spvc_msl_shader_input_init" ),
57
+ msl_shader_interface_var_init_2 = apiGetFunctionAddress (SPVC , "spvc_msl_shader_interface_var_init_2" ),
57
58
msl_resource_binding_init = apiGetFunctionAddress (SPVC , "spvc_msl_resource_binding_init" ),
58
59
msl_get_aux_buffer_struct_version = apiGetFunctionAddress (SPVC , "spvc_msl_get_aux_buffer_struct_version" ),
59
60
msl_constexpr_sampler_init = apiGetFunctionAddress (SPVC , "spvc_msl_constexpr_sampler_init" ),
@@ -93,7 +94,9 @@ private Functions() {}
93
94
compiler_msl_add_vertex_attribute = apiGetFunctionAddress (SPVC , "spvc_compiler_msl_add_vertex_attribute" ),
94
95
compiler_msl_add_resource_binding = apiGetFunctionAddress (SPVC , "spvc_compiler_msl_add_resource_binding" ),
95
96
compiler_msl_add_shader_input = apiGetFunctionAddress (SPVC , "spvc_compiler_msl_add_shader_input" ),
97
+ compiler_msl_add_shader_input_2 = apiGetFunctionAddress (SPVC , "spvc_compiler_msl_add_shader_input_2" ),
96
98
compiler_msl_add_shader_output = apiGetFunctionAddress (SPVC , "spvc_compiler_msl_add_shader_output" ),
99
+ compiler_msl_add_shader_output_2 = apiGetFunctionAddress (SPVC , "spvc_compiler_msl_add_shader_output_2" ),
97
100
compiler_msl_add_discrete_descriptor_set = apiGetFunctionAddress (SPVC , "spvc_compiler_msl_add_discrete_descriptor_set" ),
98
101
compiler_msl_set_argument_buffer_device_address_space = apiGetFunctionAddress (SPVC , "spvc_compiler_msl_set_argument_buffer_device_address_space" ),
99
102
compiler_msl_is_vertex_attribute_used = apiGetFunctionAddress (SPVC , "spvc_compiler_msl_is_vertex_attribute_used" ),
@@ -207,7 +210,7 @@ public static SharedLibrary getLibrary() {
207
210
208
211
public static final int SPVC_C_API_VERSION_MAJOR = 0 ;
209
212
210
- public static final int SPVC_C_API_VERSION_MINOR = 49 ;
213
+ public static final int SPVC_C_API_VERSION_MINOR = 51 ;
211
214
212
215
public static final int SPVC_C_API_VERSION_PATCH = 0 ;
213
216
@@ -328,6 +331,7 @@ public static SharedLibrary getLibrary() {
328
331
* <li>{@link #SPVC_RESOURCE_TYPE_SEPARATE_SAMPLERS RESOURCE_TYPE_SEPARATE_SAMPLERS}</li>
329
332
* <li>{@link #SPVC_RESOURCE_TYPE_ACCELERATION_STRUCTURE RESOURCE_TYPE_ACCELERATION_STRUCTURE}</li>
330
333
* <li>{@link #SPVC_RESOURCE_TYPE_RAY_QUERY RESOURCE_TYPE_RAY_QUERY}</li>
334
+ * <li>{@link #SPVC_RESOURCE_TYPE_SHADER_RECORD_BUFFER RESOURCE_TYPE_SHADER_RECORD_BUFFER}</li>
331
335
* </ul>
332
336
*/
333
337
public static final int
@@ -344,7 +348,8 @@ public static SharedLibrary getLibrary() {
344
348
SPVC_RESOURCE_TYPE_SEPARATE_IMAGE = 10 ,
345
349
SPVC_RESOURCE_TYPE_SEPARATE_SAMPLERS = 11 ,
346
350
SPVC_RESOURCE_TYPE_ACCELERATION_STRUCTURE = 12 ,
347
- SPVC_RESOURCE_TYPE_RAY_QUERY = 13 ;
351
+ SPVC_RESOURCE_TYPE_RAY_QUERY = 13 ,
352
+ SPVC_RESOURCE_TYPE_SHADER_RECORD_BUFFER = 14 ;
348
353
349
354
/**
350
355
* {@code spvc_builtin_resource_type}
@@ -508,6 +513,22 @@ public static SharedLibrary getLibrary() {
508
513
SPVC_MSL_SHADER_INPUT_FORMAT_ANY16 = SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY16 ,
509
514
SPVC_MSL_SHADER_INPUT_FORMAT_ANY32 = SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY32 ;
510
515
516
+ /**
517
+ * {@code spvc_msl_shader_variable_rate}
518
+ *
519
+ * <h5>Enum values:</h5>
520
+ *
521
+ * <ul>
522
+ * <li>{@link #SPVC_MSL_SHADER_VARIABLE_RATE_PER_VERTEX MSL_SHADER_VARIABLE_RATE_PER_VERTEX}</li>
523
+ * <li>{@link #SPVC_MSL_SHADER_VARIABLE_RATE_PER_PRIMITIVE MSL_SHADER_VARIABLE_RATE_PER_PRIMITIVE}</li>
524
+ * <li>{@link #SPVC_MSL_SHADER_VARIABLE_RATE_PER_PATCH MSL_SHADER_VARIABLE_RATE_PER_PATCH}</li>
525
+ * </ul>
526
+ */
527
+ public static final int
528
+ SPVC_MSL_SHADER_VARIABLE_RATE_PER_VERTEX = 0 ,
529
+ SPVC_MSL_SHADER_VARIABLE_RATE_PER_PRIMITIVE = 1 ,
530
+ SPVC_MSL_SHADER_VARIABLE_RATE_PER_PATCH = 2 ;
531
+
511
532
/**
512
533
* Maps to C++ API.
513
534
*
@@ -854,6 +875,8 @@ public static SharedLibrary getLibrary() {
854
875
* <li>{@link #SPVC_COMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCE COMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCE}</li>
855
876
* <li>{@link #SPVC_COMPILER_OPTION_GLSL_OVR_MULTIVIEW_VIEW_COUNT COMPILER_OPTION_GLSL_OVR_MULTIVIEW_VIEW_COUNT}</li>
856
877
* <li>{@link #SPVC_COMPILER_OPTION_RELAX_NAN_CHECKS COMPILER_OPTION_RELAX_NAN_CHECKS}</li>
878
+ * <li>{@link #SPVC_COMPILER_OPTION_MSL_RAW_BUFFER_TESE_INPUT COMPILER_OPTION_MSL_RAW_BUFFER_TESE_INPUT}</li>
879
+ * <li>{@link #SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_INPUT_BUFFER_INDEX COMPILER_OPTION_MSL_SHADER_PATCH_INPUT_BUFFER_INDEX}</li>
857
880
* </ul>
858
881
*/
859
882
public static final int
@@ -937,7 +960,9 @@ public static SharedLibrary getLibrary() {
937
960
SPVC_COMPILER_OPTION_MSL_FORCE_SAMPLE_RATE_SHADING = 75 | SPVC_COMPILER_OPTION_MSL_BIT ,
938
961
SPVC_COMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCE = 76 | SPVC_COMPILER_OPTION_MSL_BIT ,
939
962
SPVC_COMPILER_OPTION_GLSL_OVR_MULTIVIEW_VIEW_COUNT = 77 | SPVC_COMPILER_OPTION_GLSL_BIT ,
940
- SPVC_COMPILER_OPTION_RELAX_NAN_CHECKS = 78 | SPVC_COMPILER_OPTION_COMMON_BIT ;
963
+ SPVC_COMPILER_OPTION_RELAX_NAN_CHECKS = 78 | SPVC_COMPILER_OPTION_COMMON_BIT ,
964
+ SPVC_COMPILER_OPTION_MSL_RAW_BUFFER_TESE_INPUT = 79 | SPVC_COMPILER_OPTION_MSL_BIT ,
965
+ SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_INPUT_BUFFER_INDEX = 80 | SPVC_COMPILER_OPTION_MSL_BIT ;
941
966
942
967
protected Spvc () {
943
968
throw new UnsupportedOperationException ();
@@ -998,7 +1023,11 @@ public static void nspvc_msl_shader_interface_var_init(long var) {
998
1023
invokePV (var , __functionAddress );
999
1024
}
1000
1025
1001
- /** Initializes the shader input struct. */
1026
+ /**
1027
+ * Initializes the shader input struct.
1028
+ *
1029
+ * <p>Deprecated. Use {@link #spvc_msl_shader_interface_var_init_2 msl_shader_interface_var_init_2}.</p>
1030
+ */
1002
1031
public static void spvc_msl_shader_interface_var_init (@ NativeType ("spvc_msl_shader_interface_var *" ) SpvcMslShaderInterfaceVar var ) {
1003
1032
nspvc_msl_shader_interface_var_init (var .address ());
1004
1033
}
@@ -1016,6 +1045,19 @@ public static void spvc_msl_shader_input_init(@NativeType("spvc_msl_shader_input
1016
1045
nspvc_msl_shader_input_init (input .address ());
1017
1046
}
1018
1047
1048
+ // --- [ spvc_msl_shader_interface_var_init_2 ] ---
1049
+
1050
+ /** Unsafe version of: {@link #spvc_msl_shader_interface_var_init_2 msl_shader_interface_var_init_2} */
1051
+ public static void nspvc_msl_shader_interface_var_init_2 (long var ) {
1052
+ long __functionAddress = Functions .msl_shader_interface_var_init_2 ;
1053
+ invokePV (var , __functionAddress );
1054
+ }
1055
+
1056
+ /** Initializes the shader interface variable struct. */
1057
+ public static void spvc_msl_shader_interface_var_init_2 (@ NativeType ("spvc_msl_shader_interface_var_2 *" ) SpvcMslShaderInterfaceVar2 var ) {
1058
+ nspvc_msl_shader_interface_var_init_2 (var .address ());
1059
+ }
1060
+
1019
1061
// --- [ spvc_msl_resource_binding_init ] ---
1020
1062
1021
1063
/** Unsafe version of: {@link #spvc_msl_resource_binding_init msl_resource_binding_init} */
@@ -1587,6 +1629,7 @@ public static int spvc_compiler_msl_add_resource_binding(@NativeType("spvc_compi
1587
1629
1588
1630
// --- [ spvc_compiler_msl_add_shader_input ] ---
1589
1631
1632
+ /** Unsafe version of: {@link #spvc_compiler_msl_add_shader_input compiler_msl_add_shader_input} */
1590
1633
public static int nspvc_compiler_msl_add_shader_input (long compiler , long input ) {
1591
1634
long __functionAddress = Functions .compiler_msl_add_shader_input ;
1592
1635
if (CHECKS ) {
@@ -1595,13 +1638,30 @@ public static int nspvc_compiler_msl_add_shader_input(long compiler, long input)
1595
1638
return invokePPI (compiler , input , __functionAddress );
1596
1639
}
1597
1640
1641
+ /** Deprecated; use {@link #spvc_compiler_msl_add_shader_input_2 compiler_msl_add_shader_input_2}. */
1598
1642
@ NativeType ("spvc_result" )
1599
1643
public static int spvc_compiler_msl_add_shader_input (@ NativeType ("spvc_compiler" ) long compiler , @ NativeType ("spvc_msl_shader_interface_var const *" ) SpvcMslShaderInterfaceVar input ) {
1600
1644
return nspvc_compiler_msl_add_shader_input (compiler , input .address ());
1601
1645
}
1602
1646
1647
+ // --- [ spvc_compiler_msl_add_shader_input_2 ] ---
1648
+
1649
+ public static int nspvc_compiler_msl_add_shader_input_2 (long compiler , long input ) {
1650
+ long __functionAddress = Functions .compiler_msl_add_shader_input_2 ;
1651
+ if (CHECKS ) {
1652
+ check (compiler );
1653
+ }
1654
+ return invokePPI (compiler , input , __functionAddress );
1655
+ }
1656
+
1657
+ @ NativeType ("spvc_result" )
1658
+ public static int spvc_compiler_msl_add_shader_input_2 (@ NativeType ("spvc_compiler" ) long compiler , @ NativeType ("spvc_msl_shader_interface_var_2 const *" ) SpvcMslShaderInterfaceVar2 input ) {
1659
+ return nspvc_compiler_msl_add_shader_input_2 (compiler , input .address ());
1660
+ }
1661
+
1603
1662
// --- [ spvc_compiler_msl_add_shader_output ] ---
1604
1663
1664
+ /** Unsafe version of: {@link #spvc_compiler_msl_add_shader_output compiler_msl_add_shader_output} */
1605
1665
public static int nspvc_compiler_msl_add_shader_output (long compiler , long output ) {
1606
1666
long __functionAddress = Functions .compiler_msl_add_shader_output ;
1607
1667
if (CHECKS ) {
@@ -1610,11 +1670,27 @@ public static int nspvc_compiler_msl_add_shader_output(long compiler, long outpu
1610
1670
return invokePPI (compiler , output , __functionAddress );
1611
1671
}
1612
1672
1673
+ /** Deprecated; use {@link #spvc_compiler_msl_add_shader_output_2 compiler_msl_add_shader_output_2}. */
1613
1674
@ NativeType ("spvc_result" )
1614
1675
public static int spvc_compiler_msl_add_shader_output (@ NativeType ("spvc_compiler" ) long compiler , @ NativeType ("spvc_msl_shader_interface_var const *" ) SpvcMslShaderInterfaceVar output ) {
1615
1676
return nspvc_compiler_msl_add_shader_output (compiler , output .address ());
1616
1677
}
1617
1678
1679
+ // --- [ spvc_compiler_msl_add_shader_output_2 ] ---
1680
+
1681
+ public static int nspvc_compiler_msl_add_shader_output_2 (long compiler , long output ) {
1682
+ long __functionAddress = Functions .compiler_msl_add_shader_output_2 ;
1683
+ if (CHECKS ) {
1684
+ check (compiler );
1685
+ }
1686
+ return invokePPI (compiler , output , __functionAddress );
1687
+ }
1688
+
1689
+ @ NativeType ("spvc_result" )
1690
+ public static int spvc_compiler_msl_add_shader_output_2 (@ NativeType ("spvc_compiler" ) long compiler , @ NativeType ("spvc_msl_shader_interface_var_2 const *" ) SpvcMslShaderInterfaceVar2 output ) {
1691
+ return nspvc_compiler_msl_add_shader_output_2 (compiler , output .address ());
1692
+ }
1693
+
1618
1694
// --- [ spvc_compiler_msl_add_discrete_descriptor_set ] ---
1619
1695
1620
1696
@ NativeType ("spvc_result" )
0 commit comments