Example #1
0
void UniversalBSDF::speedSerialize(BinaryOutput& b) const {
    SpeedLoad::writeHeader(b, "UniversalBSDF");

    m_lambertian.speedSerialize(b);
    m_glossy.speedSerialize(b);
    m_transmissive.speedSerialize(b);
    b.writeFloat32(m_eta_t);
    m_extinction_t.serialize(b);
    b.writeFloat32(m_eta_r);
    m_extinction_r.serialize(b);
}
Example #2
0
void Vector2::serialize(BinaryOutput& b) const {
    b.writeFloat32(x);
    b.writeFloat32(y);
}
Example #3
0
void Color1::serialize(BinaryOutput& bo) const {
    bo.writeFloat32(value);
}
Example #4
0
	void serialize(BinaryOutput& b) const {
		b.writeInt32(i32);
		b.writeInt64(i64);
		b.writeString(s);
		b.writeFloat32(f);
	}