public void Read(AssetReader reader)
        {
            m_nameIndices = new Dictionary <string, int>();

            m_nameIndices.Read(reader);
            Type = (SerializedPassType)reader.ReadInt32();
            State.Read(reader);
            ProgramMask = reader.ReadUInt32();
            ProgVertex.Read(reader);
            ProgFragment.Read(reader);
            ProgGeometry.Read(reader);
            ProgHull.Read(reader);
            ProgDomain.Read(reader);
            if (HasProgRayTracing(reader.Version))
            {
                ProgRayTracing.Read(reader);
            }
            HasInstancingVariant = reader.ReadBoolean();
            reader.AlignStream();

            UseName     = reader.ReadString();
            Name        = reader.ReadString();
            TextureName = reader.ReadString();
            Tags.Read(reader);
        }
Esempio n. 2
0
        public void Read(EndianStream stream)
        {
            m_nameIndices.Read(stream);
            Type = stream.ReadInt32();
            State.Read(stream);
            ProgramMask = stream.ReadUInt32();
            ProgVertex.Read(stream);
            ProgFragment.Read(stream);
            ProgGeometry.Read(stream);
            ProgHull.Read(stream);
            progDomain.Read(stream);
            HasInstancingVariant = stream.ReadBoolean();
            stream.AlignStream(AlignType.Align4);

            UseName     = stream.ReadStringAligned();
            Name        = stream.ReadStringAligned();
            TextureName = stream.ReadStringAligned();
            Tags.Read(stream);
        }
        public void Read(AssetStream stream)
        {
            m_nameIndices = new Dictionary <string, int>();

            m_nameIndices.Read(stream);
            Type = (SerializedPassType)stream.ReadInt32();
            State.Read(stream);
            ProgramMask = stream.ReadUInt32();
            ProgVertex.Read(stream);
            ProgFragment.Read(stream);
            ProgGeometry.Read(stream);
            ProgHull.Read(stream);
            ProgDomain.Read(stream);
            HasInstancingVariant = stream.ReadBoolean();
            stream.AlignStream(AlignType.Align4);

            UseName     = stream.ReadStringAligned();
            Name        = stream.ReadStringAligned();
            TextureName = stream.ReadStringAligned();
            Tags.Read(stream);
        }