@@ -50,7 +50,7 @@ internal static class GeneratedResolverGetFormatterHelper
5050
5151 static GeneratedResolverGetFormatterHelper ( )
5252 {
53- lookup = new global ::System . Collections . Generic . Dictionary < Type , int > ( 137 )
53+ lookup = new global ::System . Collections . Generic . Dictionary < Type , int > ( 138 )
5454 {
5555 { typeof ( global ::Staple . Internal . MeshAssetNode [ ] ) , 0 } ,
5656 { typeof ( global ::Staple . VertexAttribute [ ] ) , 1 } ,
@@ -175,20 +175,21 @@ static GeneratedResolverGetFormatterHelper()
175175 { typeof ( global ::Staple . Internal . ShaderUniformContainer ) , 120 } ,
176176 { typeof ( global ::Staple . Internal . ShaderUniformField ) , 121 } ,
177177 { typeof ( global ::Staple . Internal . ShaderUniformMapping ) , 122 } ,
178- { typeof ( global ::Staple . Internal . TextAssetMetadata ) , 123 } ,
179- { typeof ( global ::Staple . Internal . TextureMetadata ) , 124 } ,
180- { typeof ( global ::Staple . Internal . TextureMetadataOverride ) , 125 } ,
181- { typeof ( global ::Staple . Internal . TextureSpriteInfo ) , 126 } ,
182- { typeof ( global ::Staple . Internal . Vector2Holder ) , 127 } ,
183- { typeof ( global ::Staple . Internal . Vector3Holder ) , 128 } ,
184- { typeof ( global ::Staple . Internal . Vector4Holder ) , 129 } ,
185- { typeof ( global ::Staple . Internal . VertexFragmentShaderMetrics ) , 130 } ,
186- { typeof ( global ::Staple . LayerMask ) , 131 } ,
187- { typeof ( global ::Staple . Rect ) , 132 } ,
188- { typeof ( global ::Staple . RectFloat ) , 133 } ,
189- { typeof ( global ::Staple . Vector2Int ) , 134 } ,
190- { typeof ( global ::Staple . Vector3Int ) , 135 } ,
191- { typeof ( global ::Staple . Vector4Int ) , 136 } ,
178+ { typeof ( global ::Staple . Internal . ShaderUniformTypeInfo ) , 123 } ,
179+ { typeof ( global ::Staple . Internal . TextAssetMetadata ) , 124 } ,
180+ { typeof ( global ::Staple . Internal . TextureMetadata ) , 125 } ,
181+ { typeof ( global ::Staple . Internal . TextureMetadataOverride ) , 126 } ,
182+ { typeof ( global ::Staple . Internal . TextureSpriteInfo ) , 127 } ,
183+ { typeof ( global ::Staple . Internal . Vector2Holder ) , 128 } ,
184+ { typeof ( global ::Staple . Internal . Vector3Holder ) , 129 } ,
185+ { typeof ( global ::Staple . Internal . Vector4Holder ) , 130 } ,
186+ { typeof ( global ::Staple . Internal . VertexFragmentShaderMetrics ) , 131 } ,
187+ { typeof ( global ::Staple . LayerMask ) , 132 } ,
188+ { typeof ( global ::Staple . Rect ) , 133 } ,
189+ { typeof ( global ::Staple . RectFloat ) , 134 } ,
190+ { typeof ( global ::Staple . Vector2Int ) , 135 } ,
191+ { typeof ( global ::Staple . Vector3Int ) , 136 } ,
192+ { typeof ( global ::Staple . Vector4Int ) , 137 } ,
192193 } ;
193194 }
194195
@@ -325,20 +326,21 @@ internal static object GetFormatter(Type t)
325326 case 120 : return new MessagePack . Formatters . Staple . Internal . ShaderUniformContainerFormatter ( ) ;
326327 case 121 : return new MessagePack . Formatters . Staple . Internal . ShaderUniformFieldFormatter ( ) ;
327328 case 122 : return new MessagePack . Formatters . Staple . Internal . ShaderUniformMappingFormatter ( ) ;
328- case 123 : return new MessagePack . Formatters . Staple . Internal . TextAssetMetadataFormatter ( ) ;
329- case 124 : return new MessagePack . Formatters . Staple . Internal . TextureMetadataFormatter ( ) ;
330- case 125 : return new MessagePack . Formatters . Staple . Internal . TextureMetadataOverrideFormatter ( ) ;
331- case 126 : return new MessagePack . Formatters . Staple . Internal . TextureSpriteInfoFormatter ( ) ;
332- case 127 : return new MessagePack . Formatters . Staple . Internal . Vector2HolderFormatter ( ) ;
333- case 128 : return new MessagePack . Formatters . Staple . Internal . Vector3HolderFormatter ( ) ;
334- case 129 : return new MessagePack . Formatters . Staple . Internal . Vector4HolderFormatter ( ) ;
335- case 130 : return new MessagePack . Formatters . Staple . Internal . VertexFragmentShaderMetricsFormatter ( ) ;
336- case 131 : return new MessagePack . Formatters . Staple . LayerMaskFormatter ( ) ;
337- case 132 : return new MessagePack . Formatters . Staple . RectFormatter ( ) ;
338- case 133 : return new MessagePack . Formatters . Staple . RectFloatFormatter ( ) ;
339- case 134 : return new MessagePack . Formatters . Staple . Vector2IntFormatter ( ) ;
340- case 135 : return new MessagePack . Formatters . Staple . Vector3IntFormatter ( ) ;
341- case 136 : return new MessagePack . Formatters . Staple . Vector4IntFormatter ( ) ;
329+ case 123 : return new MessagePack . Formatters . Staple . Internal . ShaderUniformTypeInfoFormatter ( ) ;
330+ case 124 : return new MessagePack . Formatters . Staple . Internal . TextAssetMetadataFormatter ( ) ;
331+ case 125 : return new MessagePack . Formatters . Staple . Internal . TextureMetadataFormatter ( ) ;
332+ case 126 : return new MessagePack . Formatters . Staple . Internal . TextureMetadataOverrideFormatter ( ) ;
333+ case 127 : return new MessagePack . Formatters . Staple . Internal . TextureSpriteInfoFormatter ( ) ;
334+ case 128 : return new MessagePack . Formatters . Staple . Internal . Vector2HolderFormatter ( ) ;
335+ case 129 : return new MessagePack . Formatters . Staple . Internal . Vector3HolderFormatter ( ) ;
336+ case 130 : return new MessagePack . Formatters . Staple . Internal . Vector4HolderFormatter ( ) ;
337+ case 131 : return new MessagePack . Formatters . Staple . Internal . VertexFragmentShaderMetricsFormatter ( ) ;
338+ case 132 : return new MessagePack . Formatters . Staple . LayerMaskFormatter ( ) ;
339+ case 133 : return new MessagePack . Formatters . Staple . RectFormatter ( ) ;
340+ case 134 : return new MessagePack . Formatters . Staple . RectFloatFormatter ( ) ;
341+ case 135 : return new MessagePack . Formatters . Staple . Vector2IntFormatter ( ) ;
342+ case 136 : return new MessagePack . Formatters . Staple . Vector3IntFormatter ( ) ;
343+ case 137 : return new MessagePack . Formatters . Staple . Vector4IntFormatter ( ) ;
342344 default : return null ;
343345 }
344346 }
@@ -4897,7 +4899,7 @@ public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::
48974899 writer . Write ( value . size ) ;
48984900 formatterResolver . GetFormatterWithVerify < string > ( ) . Serialize ( ref writer , value . name , options ) ;
48994901 formatterResolver . GetFormatterWithVerify < global ::Staple . Internal . ShaderUniformType > ( ) . Serialize ( ref writer , value . type , options ) ;
4900- formatterResolver . GetFormatterWithVerify < global ::Staple . Internal . ShaderUniformType > ( ) . Serialize ( ref writer , value . elementType , options ) ;
4902+ formatterResolver . GetFormatterWithVerify < global ::Staple . Internal . ShaderUniformTypeInfo > ( ) . Serialize ( ref writer , value . elementType , options ) ;
49014903 }
49024904
49034905 public global ::Staple . Internal . ShaderUniformMapping Deserialize ( ref global ::MessagePack . MessagePackReader reader , global ::MessagePack . MessagePackSerializerOptions options )
@@ -4932,7 +4934,61 @@ public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::
49324934 ____result . type = formatterResolver . GetFormatterWithVerify < global ::Staple . Internal . ShaderUniformType > ( ) . Deserialize ( ref reader , options ) ;
49334935 break ;
49344936 case 5 :
4935- ____result . elementType = formatterResolver . GetFormatterWithVerify < global ::Staple . Internal . ShaderUniformType > ( ) . Deserialize ( ref reader , options ) ;
4937+ ____result . elementType = formatterResolver . GetFormatterWithVerify < global ::Staple . Internal . ShaderUniformTypeInfo > ( ) . Deserialize ( ref reader , options ) ;
4938+ break ;
4939+ default :
4940+ reader . Skip ( ) ;
4941+ break ;
4942+ }
4943+ }
4944+
4945+ reader . Depth -- ;
4946+ return ____result ;
4947+ }
4948+ }
4949+
4950+ public sealed class ShaderUniformTypeInfoFormatter : global ::MessagePack . Formatters . IMessagePackFormatter < global ::Staple . Internal . ShaderUniformTypeInfo >
4951+ {
4952+
4953+ public void Serialize ( ref global ::MessagePack . MessagePackWriter writer , global ::Staple . Internal . ShaderUniformTypeInfo value , global ::MessagePack . MessagePackSerializerOptions options )
4954+ {
4955+ if ( value == null )
4956+ {
4957+ writer . WriteNil ( ) ;
4958+ return ;
4959+ }
4960+
4961+ global ::MessagePack . IFormatterResolver formatterResolver = options . Resolver ;
4962+ writer . WriteArrayHeader ( 3 ) ;
4963+ formatterResolver . GetFormatterWithVerify < global ::Staple . Internal . ShaderUniformType > ( ) . Serialize ( ref writer , value . type , options ) ;
4964+ writer . Write ( value . size ) ;
4965+ formatterResolver . GetFormatterWithVerify < global ::System . Collections . Generic . List < global ::Staple . Internal . ShaderUniformField > > ( ) . Serialize ( ref writer , value . fields , options ) ;
4966+ }
4967+
4968+ public global ::Staple . Internal . ShaderUniformTypeInfo Deserialize ( ref global ::MessagePack . MessagePackReader reader , global ::MessagePack . MessagePackSerializerOptions options )
4969+ {
4970+ if ( reader . TryReadNil ( ) )
4971+ {
4972+ return null ;
4973+ }
4974+
4975+ options . Security . DepthStep ( ref reader ) ;
4976+ global ::MessagePack . IFormatterResolver formatterResolver = options . Resolver ;
4977+ var length = reader . ReadArrayHeader ( ) ;
4978+ var ____result = new global ::Staple . Internal . ShaderUniformTypeInfo ( ) ;
4979+
4980+ for ( int i = 0 ; i < length ; i ++ )
4981+ {
4982+ switch ( i )
4983+ {
4984+ case 0 :
4985+ ____result . type = formatterResolver . GetFormatterWithVerify < global ::Staple . Internal . ShaderUniformType > ( ) . Deserialize ( ref reader , options ) ;
4986+ break ;
4987+ case 1 :
4988+ ____result . size = reader . ReadInt32 ( ) ;
4989+ break ;
4990+ case 2 :
4991+ ____result . fields = formatterResolver . GetFormatterWithVerify < global ::System . Collections . Generic . List < global ::Staple . Internal . ShaderUniformField > > ( ) . Deserialize ( ref reader , options ) ;
49364992 break ;
49374993 default :
49384994 reader . Skip ( ) ;
0 commit comments