@@ -48,12 +48,12 @@ OSL_USING_DATA_WIDTH(__OSL_WIDTH)
4848#include " define_opname_macros.h"
4949
5050OSL_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)
5252{
5353 auto * bsg = reinterpret_cast <BatchedShaderGlobals*>(bsg_);
5454 return bsg->uniform .context ->dict_find (
5555 nullptr /* causes errors be reported through ShadingContext*/ , nodeID,
56- USTR (query));
56+ ustring_from (query));
5757}
5858
5959
@@ -82,12 +82,13 @@ __OSL_MASKED_OP3(dict_find, Wi, Wi, Ws)(void* bsg_, void* wout, void* wnodeID,
8282
8383
8484OSL_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)
8687{
8788 auto * bsg = reinterpret_cast <BatchedShaderGlobals*>(bsg_);
8889 return bsg->uniform .context ->dict_find (
8990 nullptr /* causes errors be reported through ShadingContext*/ ,
90- USTR (dictionary), USTR (query));
91+ ustring_from (dictionary), ustring_from (query));
9192}
9293
9394
@@ -145,11 +146,11 @@ __OSL_MASKED_OP(dict_next)(void* bsg_, void* wout, void* wNodeID,
145146
146147
147148OSL_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,
149150 long long type, void * data)
150151{
151152 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),
153154 TYPEDESC (type), data,
154155 /* treat_ustrings_as_hash*/ false );
155156}
0 commit comments