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); }
void Vector2::serialize(BinaryOutput& b) const { b.writeFloat32(x); b.writeFloat32(y); }
void Color1::serialize(BinaryOutput& bo) const { bo.writeFloat32(value); }
void serialize(BinaryOutput& b) const { b.writeInt32(i32); b.writeInt64(i64); b.writeString(s); b.writeFloat32(f); }