@@ -281,9 +281,9 @@ __OSL_MASKED_OP2(prepend_color_from, Wv, Ws)(void* bsg_, void* c_, void* from_,
281
281
const ColorSystem& cs = cs_from_bsg (bsg_);
282
282
ShadingContext* ctx = context_from_bsg (bsg_);
283
283
284
- Wide<const ustring > wFrom (from_);
284
+ Wide<const ustringhash > wFrom (from_);
285
285
foreach_unique (wFrom, Mask (mask_value),
286
- [=, &cs](const ustring & from, Mask from_mask) {
286
+ [=, &cs](const ustringhash & from, Mask from_mask) {
287
287
// Reuse the uniform from implementation by restricting results to
288
288
// just the lanes with the same value of "from".
289
289
Masked<Color3> wsub_result (c_, from_mask);
@@ -305,14 +305,14 @@ namespace {
305
305
306
306
template <typename COLOR>
307
307
OSL_NOINLINE void
308
- wide_transformc (const ColorSystem cs, ustring fromspace, ustring tospace,
308
+ wide_transformc (const ColorSystem cs, ustringhash fromspace, ustringhash tospace,
309
309
Masked<COLOR> wOutput, Wide<const COLOR> wInput,
310
310
ShadingContext* context);
311
311
312
312
// NOTE: keep implementation as mirror of ColorSystem::transformc
313
313
template <typename COLOR>
314
314
void
315
- wide_transformc (const ColorSystem cs, ustring fromspace, ustring tospace,
315
+ wide_transformc (const ColorSystem cs, ustringhash fromspace, ustringhash tospace,
316
316
Masked<COLOR> wOutput, Wide<const COLOR> wInput,
317
317
ShadingContext* context)
318
318
{
@@ -479,8 +479,8 @@ __OSL_MASKED_OP3(transform_color, Wv, s,
479
479
const ColorSystem& cs = cs_from_bsg (bsg_);
480
480
ShadingContext* ctx = context_from_bsg (bsg_);
481
481
482
- ustring from = ustring_from (from_);
483
- ustring to = ustring_from (to_);
482
+ ustringhash from = ustringhash_from (from_);
483
+ ustringhash to = ustringhash_from (to_);
484
484
485
485
if (Cout_derivs) {
486
486
if (Cin_derivs) {
@@ -517,8 +517,8 @@ __OSL_OP3(transform_color, v, s, s)(void* bsg_, void* Cin, int Cin_derivs,
517
517
const ColorSystem& cs = cs_from_bsg (bsg_);
518
518
ShadingContext* ctx = context_from_bsg (bsg_);
519
519
520
- ustring from = ustring_from (from_);
521
- ustring to = ustring_from (to_);
520
+ ustringhash from = ustringhash_from (from_);
521
+ ustringhash to = ustringhash_from (to_);
522
522
523
523
if (Cout_derivs) {
524
524
if (Cin_derivs) {
0 commit comments