pub mod tokens {
pub const BIG: &str = "big";
pub const BLOCKED: &str = "blocked";
pub const FILE: &str = "file";
pub const LIMIT: &str = "limit";
pub const LOOSE: &str = "loose";
pub const MIDDLING: &str = "middling";
pub const PLAIN: &str = "plain";
pub const SMALL: &str = "small";
pub const SPIN: &str = "spin";
pub const TINY: &str = "tiny";
pub const WHEN: &str = "when";
pub const MARKED: &str = "Marked";
pub const TYPED: &str = "Typed";
}
pub const LIBRARY_NAME: &str = "testValues";
pub const SCHEMAS: &::openusd::usd::SchemaFamily<'static> = &::openusd::usd::SchemaFamily::new(
LIBRARY_NAME,
&[
::openusd::usd::SchemaDecl::new(
"Typed",
::openusd::usd::SchemaKind::AbstractBase,
)
.bases(&["SchemaBase"]),
::openusd::usd::SchemaDecl::new(
"Marked",
::openusd::usd::SchemaKind::AbstractTyped,
)
.bases(&["Typed"])
.properties(
&[
::openusd::usd::PropertyDecl::attribute("blocked", "double")
.varying()
.fields(
&[
::openusd::usd::Field::new(
"default",
|| ::openusd::sdf::Value::ValueBlock,
),
],
),
::openusd::usd::PropertyDecl::relationship("plain").uniform(),
::openusd::usd::PropertyDecl::relationship("loose").varying(),
::openusd::usd::PropertyDecl::attribute("big", "matrix4d")
.varying()
.fields(
&[
::openusd::usd::Field::new(
"default",
|| ::openusd::sdf::Value::Matrix4d(
::openusd::gf::Matrix4d([
1f64, 0f64, 0f64, 0f64, 0f64, 1f64, 0f64, 0f64, 0f64, 0f64,
1f64, 0f64, 0f64, 0f64, 0f64, 1f64,
]),
),
),
],
),
::openusd::usd::PropertyDecl::attribute("small", "matrix2d")
.varying()
.fields(
&[
::openusd::usd::Field::new(
"default",
|| ::openusd::sdf::Value::Matrix2d(
::openusd::gf::Mat2d([1f64, 0f64, 0f64, 1f64]),
),
),
],
),
::openusd::usd::PropertyDecl::attribute("middling", "matrix3d")
.varying()
.fields(
&[
::openusd::usd::Field::new(
"default",
|| ::openusd::sdf::Value::Matrix3d(
::openusd::gf::Mat3d([
1f64, 0f64, 0f64, 0f64, 1f64, 0f64, 0f64, 0f64, 1f64,
]),
),
),
],
),
::openusd::usd::PropertyDecl::attribute("spin", "quath")
.varying()
.fields(
&[
::openusd::usd::Field::new(
"default",
|| ::openusd::sdf::Value::Quath(
::openusd::gf::quath(
::openusd::gf::f16::from_bits(15360u16),
::openusd::gf::f16::from_bits(0u16),
::openusd::gf::f16::from_bits(0u16),
::openusd::gf::f16::from_bits(0u16),
),
),
),
],
),
::openusd::usd::PropertyDecl::attribute("when", "timecode")
.varying()
.fields(
&[
::openusd::usd::Field::new(
"default",
|| ::openusd::sdf::Value::TimeCode(
::openusd::sdf::TimeCode(3f64),
),
),
],
),
::openusd::usd::PropertyDecl::attribute("tiny", "half")
.varying()
.fields(
&[
::openusd::usd::Field::new(
"default",
|| ::openusd::sdf::Value::Half(
::openusd::gf::f16::from_bits(14336u16),
),
),
],
),
::openusd::usd::PropertyDecl::attribute("file", "asset")
.varying()
.fields(
&[
::openusd::usd::Field::new(
"default",
|| ::openusd::sdf::Value::AssetPath(
::openusd::sdf::AssetPath::new("./texture.png"),
),
),
],
),
::openusd::usd::PropertyDecl::attribute("limit", "float")
.varying()
.fields(
&[
::openusd::usd::Field::new(
"default",
|| ::openusd::sdf::Value::Float(1f32),
),
],
),
],
)
.fields(
&[
::openusd::usd::Field::new(
"assetInfo",
|| ::openusd::sdf::Value::Dictionary(
::openusd::sdf::Dictionary::from([
(
::std::string::String::from("version"),
::openusd::sdf::Value::String(
::std::string::String::from("1"),
),
),
(
::std::string::String::from("weights"),
::openusd::sdf::Value::DoubleVec(::std::vec![0.5f64, 1f64]),
),
]),
),
),
],
),
],
);