diff --git a/MoltenVK/MoltenVK.xcodeproj/project.pbxproj b/MoltenVK/MoltenVK.xcodeproj/project.pbxproj index 69a89b24f..6c1dade3d 100644 --- a/MoltenVK/MoltenVK.xcodeproj/project.pbxproj +++ b/MoltenVK/MoltenVK.xcodeproj/project.pbxproj @@ -2561,6 +2561,7 @@ GENERATE_INFOPLIST_FILE = YES; LD_DYLIB_INSTALL_NAME = "@rpath/${PRODUCT_NAME}.framework/${PRODUCT_NAME}"; OTHER_LDFLAGS = ( + "-ld_classic", "-all_load", "-w", ); @@ -2574,6 +2575,7 @@ GENERATE_INFOPLIST_FILE = YES; LD_DYLIB_INSTALL_NAME = "@rpath/${PRODUCT_NAME}.framework/${PRODUCT_NAME}"; OTHER_LDFLAGS = ( + "-ld_classic", "-all_load", "-w", ); diff --git a/MoltenVK/MoltenVK/Commands/MVKCommandPipelineStateFactoryShaderSource.h b/MoltenVK/MoltenVK/Commands/MVKCommandPipelineStateFactoryShaderSource.h index 75d35038b..3e2a5ca16 100644 --- a/MoltenVK/MoltenVK/Commands/MVKCommandPipelineStateFactoryShaderSource.h +++ b/MoltenVK/MoltenVK/Commands/MVKCommandPipelineStateFactoryShaderSource.h @@ -163,6 +163,7 @@ kernel void cmdResolveColorImage2DFloat(texture2d dst [[ t dst.write(src.read(pos, 0), pos); \n\ } \n\ \n\ +#if __HAVE_TEXTURE_2D_MS_ARRAY__ \n\ kernel void cmdResolveColorImage2DFloatArray(texture2d_array dst [[ texture(0) ]], \n\ texture2d_ms_array src [[ texture(1) ]], \n\ uint2 pos [[thread_position_in_grid]]) { \n\ @@ -170,6 +171,7 @@ kernel void cmdResolveColorImage2DFloatArray(texture2d_array dst [[ texture(0) ]], \n\ texture2d_ms src [[ texture(1) ]], \n\ @@ -177,6 +179,7 @@ kernel void cmdResolveColorImage2DUInt(texture2d dst [[ tex dst.write(src.read(pos, 0), pos); \n\ } \n\ \n\ +#if __HAVE_TEXTURE_2D_MS_ARRAY__ \n\ kernel void cmdResolveColorImage2DUIntArray(texture2d_array dst [[ texture(0) ]], \n\ texture2d_ms_array src [[ texture(1) ]], \n\ uint2 pos [[thread_position_in_grid]]) { \n\ @@ -184,6 +187,7 @@ kernel void cmdResolveColorImage2DUIntArray(texture2d_array dst.write(src.read(pos, i, 0), pos, i); \n\ } \n\ } \n\ +#endif \n\ \n\ kernel void cmdResolveColorImage2DInt(texture2d dst [[ texture(0) ]], \n\ texture2d_ms src [[ texture(1) ]], \n\ @@ -191,6 +195,7 @@ kernel void cmdResolveColorImage2DInt(texture2d dst [[ textu dst.write(src.read(pos, 0), pos); \n\ } \n\ \n\ +#if __HAVE_TEXTURE_2D_MS_ARRAY__ \n\ kernel void cmdResolveColorImage2DIntArray(texture2d_array dst [[ texture(0) ]], \n\ texture2d_ms_array src [[ texture(1) ]], \n\ uint2 pos [[thread_position_in_grid]]) { \n\ @@ -198,6 +203,7 @@ kernel void cmdResolveColorImage2DIntArray(texture2d_array d dst.write(src.read(pos, i, 0), pos, i); \n\ } \n\ } \n\ +#endif \n\ \n\ typedef struct { \n\ uint32_t srcRowStride; \n\