@@ -48,12 +48,12 @@ OSL_USING_DATA_WIDTH(__OSL_WIDTH)
48
48
#include " define_opname_macros.h"
49
49
50
50
OSL_BATCHOP int
51
- __OSL_OP (dict_find_iis)(void * bsg_, int nodeID, ustring_pod query)
51
+ __OSL_OP (dict_find_iis)(void * bsg_, int nodeID, ustringhash_pod query)
52
52
{
53
53
auto * bsg = reinterpret_cast <BatchedShaderGlobals*>(bsg_);
54
54
return bsg->uniform .context ->dict_find (
55
55
nullptr /* causes errors be reported through ShadingContext*/ , nodeID,
56
- USTR (query));
56
+ ustring_from (query));
57
57
}
58
58
59
59
@@ -82,12 +82,13 @@ __OSL_MASKED_OP3(dict_find, Wi, Wi, Ws)(void* bsg_, void* wout, void* wnodeID,
82
82
83
83
84
84
OSL_BATCHOP int
85
- __OSL_OP (dict_find_iss)(void * bsg_, ustring_pod dictionary, ustring_pod query)
85
+ __OSL_OP (dict_find_iss)(void * bsg_, ustringhash_pod dictionary,
86
+ ustringhash_pod query)
86
87
{
87
88
auto * bsg = reinterpret_cast <BatchedShaderGlobals*>(bsg_);
88
89
return bsg->uniform .context ->dict_find (
89
90
nullptr /* causes errors be reported through ShadingContext*/ ,
90
- USTR (dictionary), USTR (query));
91
+ ustring_from (dictionary), ustring_from (query));
91
92
}
92
93
93
94
@@ -145,11 +146,11 @@ __OSL_MASKED_OP(dict_next)(void* bsg_, void* wout, void* wNodeID,
145
146
146
147
147
148
OSL_BATCHOP int
148
- __OSL_OP (dict_value)(void * bsg_, int nodeID, ustring_pod attribname,
149
+ __OSL_OP (dict_value)(void * bsg_, int nodeID, ustringhash_pod attribname,
149
150
long long type, void * data)
150
151
{
151
152
auto * bsg = reinterpret_cast <BatchedShaderGlobals*>(bsg_);
152
- return bsg->uniform .context ->dict_value (nodeID, USTR (attribname),
153
+ return bsg->uniform .context ->dict_value (nodeID, ustring_from (attribname),
153
154
TYPEDESC (type), data,
154
155
/* treat_ustrings_as_hash*/ false );
155
156
}
0 commit comments