File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -849,7 +849,7 @@ ShaderGroup::setup_interactive_arena(cspan<uint8_t> paramblock)
849849
850850
851851void
852- ShaderGroup::generate_optix_cache_key (const std::string& code)
852+ ShaderGroup::generate_optix_cache_key (string_view code)
853853{
854854 const uint64_t ir_key = Strutil::strhash (code);
855855
Original file line number Diff line number Diff line change @@ -1852,7 +1852,7 @@ class ShaderGroup {
18521852 ustring name () const { return m_name; }
18531853
18541854 // Generate and memoize the cache key so we don't calculate it twice
1855- void generate_optix_cache_key (const std::string& code);
1855+ void generate_optix_cache_key (string_view code);
18561856 std::string optix_cache_key () const { return m_optix_cache_key; }
18571857
18581858 std::string serialize () const ;
You can’t perform that action at this time.
0 commit comments