internal override void ReadBody(int size, byte flags, EndianBinaryReader reader) { SourceAlpha = ( SrcAlphaOp )sSrcAlphaField.Unpack(flags); DestinationAlpha = ( DstAlphaOp )sDstAlphaField.Unpack(flags); Debug.Assert(sUnusedField.Unpack(flags) == 0, "Unused bits in blend alpha chunk flags are used"); Debug.Assert(GetFlags() == flags); }
internal override void ReadBody(int size, byte flags, EndianBinaryReader reader) { SourceAlpha = ( SrcAlphaOp )sSrcAlphaField.Unpack(flags); DestinationAlpha = ( DstAlphaOp )sDstAlphaField.Unpack(flags); Debug.Assert(sUnusedField.Unpack(flags) == 0, "Unused bits in material flags are used"); size = reader.ReadUInt16(); var actualSize = size * 2; ReadMaterialData(actualSize, reader); }
protected MaterialChunk() { SourceAlpha = SrcAlphaOp.Src; DestinationAlpha = DstAlphaOp.InverseDst; }