Skip to content

Commit 6e7692c

Browse files
Fixed typo in RemapWGSLResourceBindings
1 parent c4a98bd commit 6e7692c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Graphics/GraphicsEngineWebGPU/src/PipelineStateWebGPUImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void PipelineStateWebGPUImpl::RemapOrVerifyShaderResources(
213213

214214
if (!bVerifyOnly)
215215
{
216-
PatchedWGSL = RamapWGSLResourceBindings(pShader->GetWGSL(), ResMapping, pShader->GetEmulatedArrayIndexSuffix());
216+
PatchedWGSL = RemapWGSLResourceBindings(pShader->GetWGSL(), ResMapping, pShader->GetEmulatedArrayIndexSuffix());
217217
}
218218
}
219219
}

Graphics/GraphicsEngineWebGPU/src/ShaderWebGPUImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void ShaderWebGPUImpl::Initialize(const ShaderCreateInfo& ShaderCI,
221221
AppendShaderSourceLanguageDefinition(m_WGSL, SourceLanguage);
222222
}
223223
// Note that once we add the source language definition, it will always be kept in the WGSL source as
224-
// RamapWGSLResourceBindings preserves it.
224+
// RemapWGSLResourceBindings preserves it.
225225

226226
// We cannot create shader module here because resource bindings are assigned when
227227
// pipeline state is created. Besides, WebGPU does not support multithreading.

Graphics/ShaderTools/include/WGSLUtils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct WGSLResourceBindingInfo
5252
};
5353
using WGSLResourceMapping = std::unordered_map<std::string, WGSLResourceBindingInfo>;
5454

55-
std::string RamapWGSLResourceBindings(const std::string& WGSL,
55+
std::string RemapWGSLResourceBindings(const std::string& WGSL,
5656
const WGSLResourceMapping& ResMapping,
5757
const char* EmulatedArrayIndexSuffix);
5858

Graphics/ShaderTools/src/WGSLUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static WGSLResourceMapping::const_iterator FindResourceAsArrayElement(const WGSL
267267
return ResMapping.end();
268268
}
269269

270-
std::string RamapWGSLResourceBindings(const std::string& WGSL,
270+
std::string RemapWGSLResourceBindings(const std::string& WGSL,
271271
const WGSLResourceMapping& ResMapping,
272272
const char* EmulatedArrayIndexSuffix)
273273
{

Tests/DiligentCoreTest/src/ShaderTools/WGSLUtilsTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void TestResourceRemapping(const char* FilePath,
138138
const auto WGSL = HLSLtoWGLS(FilePath);
139139
ASSERT_FALSE(WGSL.empty());
140140

141-
const auto RemappedWGSL = RamapWGSLResourceBindings(WGSL, ResRemapping, "_");
141+
const auto RemappedWGSL = RemapWGSLResourceBindings(WGSL, ResRemapping, "_");
142142
ASSERT_FALSE(RemappedWGSL.empty());
143143

144144
tint::Source::File srcFile("", RemappedWGSL);

0 commit comments

Comments
 (0)