Skip to content

Commit 12d7287

Browse files
ShaderCreateInfoWrapper: copy GLSLExtensions and WebGPUEmulatedArrayIndexSuffix
1 parent 5036655 commit 12d7287

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Graphics/GraphicsEngine/src/ShaderBase.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ ShaderCreateInfoWrapper::ShaderCreateInfoWrapper(const ShaderCreateInfo& ShaderC
4040
Allocator.AddSpaceForString(ShaderCI.EntryPoint);
4141
Allocator.AddSpaceForString(ShaderCI.Desc.Name);
4242
Allocator.AddSpaceForString(ShaderCI.Desc.CombinedSamplerSuffix);
43+
Allocator.AddSpaceForString(ShaderCI.GLSLExtensions);
44+
Allocator.AddSpaceForString(ShaderCI.WebGPUEmulatedArrayIndexSuffix);
4345

4446
if (ShaderCI.ByteCode && ShaderCI.ByteCodeSize > 0)
4547
{
@@ -73,9 +75,11 @@ ShaderCreateInfoWrapper::ShaderCreateInfoWrapper(const ShaderCreateInfo& ShaderC
7375

7476
m_pRawMemory = decltype(m_pRawMemory){Allocator.ReleaseOwnership(), STDDeleterRawMem<void>{RawAllocator}};
7577

76-
m_CreateInfo.EntryPoint = Allocator.CopyString(ShaderCI.EntryPoint);
77-
m_CreateInfo.Desc.Name = Allocator.CopyString(ShaderCI.Desc.Name);
78-
m_CreateInfo.Desc.CombinedSamplerSuffix = Allocator.CopyString(ShaderCI.Desc.CombinedSamplerSuffix);
78+
m_CreateInfo.EntryPoint = Allocator.CopyString(ShaderCI.EntryPoint);
79+
m_CreateInfo.Desc.Name = Allocator.CopyString(ShaderCI.Desc.Name);
80+
m_CreateInfo.Desc.CombinedSamplerSuffix = Allocator.CopyString(ShaderCI.Desc.CombinedSamplerSuffix);
81+
m_CreateInfo.GLSLExtensions = Allocator.CopyString(ShaderCI.GLSLExtensions);
82+
m_CreateInfo.WebGPUEmulatedArrayIndexSuffix = Allocator.CopyString(ShaderCI.WebGPUEmulatedArrayIndexSuffix);
7983

8084
if (m_CreateInfo.Desc.Name == nullptr)
8185
m_CreateInfo.Desc.Name = "";

0 commit comments

Comments
 (0)