Skip to content

Commit 0b2560b

Browse files
committed
Last string_view signature updates
1 parent 701c8bf commit 0b2560b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/liboslexec/instance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ ShaderGroup::setup_interactive_arena(cspan<uint8_t> paramblock)
849849

850850

851851
void
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

src/liboslexec/oslexec_pvt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)