private void CreateShaderPropInfos(FrameDebuggerEventData frameInfo) { var originProps = frameInfo.shaderProperties; var originPropType = this.reflectionCache.GetTypeObject(originProps.GetType()); var originPropReflection = new ReflectionClassWithObject(originPropType, originProps); frameInfo.convertedProperties = new ShaderProperties(); originPropReflection.CopyFieldsToObjectByVarName <ShaderProperties>(ref frameInfo.convertedProperties); var props = frameInfo.convertedProperties; props.convertedFloats = ReflectionClassWithObject.CopyToListFromArray <ShaderPropertyInfo>(this.reflectionCache, props.floats); props.convertedVectors = ReflectionClassWithObject.CopyToListFromArray <ShaderPropertyInfo>(this.reflectionCache, props.vectors); props.convertedMatricies = ReflectionClassWithObject.CopyToListFromArray <ShaderPropertyInfo>(this.reflectionCache, props.matrices); props.convertedTextures = ReflectionClassWithObject.CopyToListFromArray <ShaderPropertyInfo>(this.reflectionCache, props.textures); props.convertedBuffers = ReflectionClassWithObject.CopyToListFromArray <ShaderPropertyInfo>(this.reflectionCache, props.buffers); }
private void CreateFrameDebuggerEventList(System.Array arr) { this.frameDebuggerEventList = ReflectionClassWithObject.CopyToListFromArray <FrameDebuggerEvent>(this.reflectionCache, arr); }