示例#1
0
 private void SaveBlendState(IAetherWriter writer, BlendState blendState)
 {
     writer.WriteString("Name", blendState.Name);
     writer.WriteString("BlendStateName", blendState.Name);
     writer.WriteInt64("AlphaBlendFunction", (int)blendState.AlphaBlendFunction);
     writer.WriteInt64("AlphaDestinationBlend", (int)blendState.AlphaDestinationBlend);
     writer.WriteInt64("AlphaSourceBlend", (int)blendState.AlphaSourceBlend);
     writer.WriteColor("BlendFactor", blendState.BlendFactor);
     writer.WriteInt64("ColorBlendFunction", (int)blendState.ColorBlendFunction);
     writer.WriteInt64("ColorDestinationBlend", (int)blendState.ColorDestinationBlend);
     writer.WriteInt64("ColorSourceBlend", (int)blendState.ColorSourceBlend);
     writer.WriteInt64("ColorWriteChannels", (int)blendState.ColorWriteChannels);
     writer.WriteInt64("ColorWriteChannels1", (int)blendState.ColorWriteChannels1);
     writer.WriteInt64("ColorWriteChannels2", (int)blendState.ColorWriteChannels2);
     writer.WriteInt64("ColorWriteChannels3", (int)blendState.ColorWriteChannels3);
     writer.WriteInt64("MultiSampleMask", (int)blendState.MultiSampleMask);
 }