62 HdRenderParam *renderParam,
63 HdDirtyBits *dirtyBits)
66 const SdfPath &
id = GetId();
68 if (*dirtyBits & DirtyBits::DirtyParams) {
69 const HdSceneIndexPrim prim =
GetPrim(sceneDelegate,
id);
70 HdVolumeFieldSchema schema = HdVolumeFieldSchema::GetFromParent(prim.dataSource);
72 SdfAssetPath assetPath;
73 if (
auto ds = schema.GetFilePath()) {
74 assetPath = ds->GetTypedValue(0.0f);
77 std::string filename = assetPath.GetResolvedPath();
78 if (filename.empty()) {
79 filename = assetPath.GetAssetPath();
82 if (!filename.empty()) {
84 if (
auto ds = schema.GetFieldName()) {
85 fieldName = ds->GetTypedValue(0.0f);
88 if (!fieldName.IsEmpty()) {
90 fieldName.GetString());
97 _handle =
lock.scene->image_manager->add_image(std::move(loader), params,
false);
106 *dirtyBits = DirtyBits::Clean;