@@ -39,7 +39,7 @@ static MTLVertexFormat ReadStageInputFormat(const ShaderStageIOSlot& input) {
3939 if (input.bit_width == 8 * sizeof (float ) / 2 ) {
4040 switch (input.vec_size ) {
4141 case 1 :
42- if (@available (macOS 10.13 , *)) {
42+ if (@available (macOS 10.13 , iOS 11.0 , *)) {
4343 return MTLVertexFormatHalf ;
4444 } else {
4545 return MTLVertexFormatInvalid ;
@@ -60,7 +60,7 @@ static MTLVertexFormat ReadStageInputFormat(const ShaderStageIOSlot& input) {
6060 }
6161 case ShaderType::kBoolean : {
6262 if (input.bit_width == 8 * sizeof (bool ) && input.vec_size == 1 ) {
63- if (@available (macOS 10.13 , *)) {
63+ if (@available (macOS 10.13 , iOS 11.0 , *)) {
6464 return MTLVertexFormatChar ;
6565 } else {
6666 return MTLVertexFormatInvalid ;
@@ -72,7 +72,7 @@ static MTLVertexFormat ReadStageInputFormat(const ShaderStageIOSlot& input) {
7272 if (input.bit_width == 8 * sizeof (char )) {
7373 switch (input.vec_size ) {
7474 case 1 :
75- if (@available (macOS 10.13 , *)) {
75+ if (@available (macOS 10.13 , iOS 11.0 , *)) {
7676 return MTLVertexFormatChar ;
7777 } else {
7878 return MTLVertexFormatInvalid ;
@@ -91,7 +91,7 @@ static MTLVertexFormat ReadStageInputFormat(const ShaderStageIOSlot& input) {
9191 if (input.bit_width == 8 * sizeof (char )) {
9292 switch (input.vec_size ) {
9393 case 1 :
94- if (@available (macOS 10.13 , *)) {
94+ if (@available (macOS 10.13 , iOS 11.0 , *)) {
9595 return MTLVertexFormatUChar ;
9696 } else {
9797 return MTLVertexFormatInvalid ;
@@ -110,7 +110,7 @@ static MTLVertexFormat ReadStageInputFormat(const ShaderStageIOSlot& input) {
110110 if (input.bit_width == 8 * sizeof (short )) {
111111 switch (input.vec_size ) {
112112 case 1 :
113- if (@available (macOS 10.13 , *)) {
113+ if (@available (macOS 10.13 , iOS 11.0 , *)) {
114114 return MTLVertexFormatShort ;
115115 } else {
116116 return MTLVertexFormatInvalid ;
@@ -129,7 +129,7 @@ static MTLVertexFormat ReadStageInputFormat(const ShaderStageIOSlot& input) {
129129 if (input.bit_width == 8 * sizeof (ushort)) {
130130 switch (input.vec_size ) {
131131 case 1 :
132- if (@available (macOS 10.13 , *)) {
132+ if (@available (macOS 10.13 , iOS 11.0 , *)) {
133133 return MTLVertexFormatUShort ;
134134 } else {
135135 return MTLVertexFormatInvalid ;
0 commit comments