From 7b7c095b37e85ca3a8f55eff1c3d9643d467b8e0 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 25 Apr 2023 10:43:29 -0400 Subject: Dictionary using lowerCamel (#2835) * #include an absolute path didn't work - because paths were taken to always be relative. * WIP lowerCamel Dictionary. * WIP more lowerCamel fixes for Dictionary. * Add/Remove/Clear * GetValue/Contains * Fix tabs in dictionary. Count -> getCount * Fix fields with caps. * Key -> key Value -> value Use m_ for members where appropriate. Use lowerCamel in linked list. * Some small fixes/improvements to Dictionary. * Kick CI. --- tools/gfx/mutable-shader-object.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/gfx/mutable-shader-object.h') diff --git a/tools/gfx/mutable-shader-object.h b/tools/gfx/mutable-shader-object.h index 9653986ad..1864be158 100644 --- a/tools/gfx/mutable-shader-object.h +++ b/tools/gfx/mutable-shader-object.h @@ -142,7 +142,7 @@ namespace gfx setObject(ShaderOffset const& offset, IShaderObject* object) override { Super::setObject(offset, object); - m_objectOffsets.Add(offset); + m_objectOffsets.add(offset); markDirty(); return SLANG_OK; } @@ -182,9 +182,9 @@ namespace gfx allocateShaderObject(static_cast(transientHeap)); SLANG_RETURN_ON_FAIL(object->setData(ShaderOffset(), this->m_data.getBuffer(), this->m_data.getCount())); for (auto res : m_resources) - SLANG_RETURN_ON_FAIL(object->setResource(res.Key, res.Value)); + SLANG_RETURN_ON_FAIL(object->setResource(res.key, res.value)); for (auto sampler : m_samplers) - SLANG_RETURN_ON_FAIL(object->setSampler(sampler.Key, sampler.Value)); + SLANG_RETURN_ON_FAIL(object->setSampler(sampler.key, sampler.value)); for (auto offset : m_objectOffsets) { if (offset.bindingRangeIndex < 0) @@ -304,7 +304,7 @@ namespace gfx *object = nullptr; Slang::RefPtr subObject; - if (m_objects.TryGetValue(offset, subObject)) + if (m_objects.tryGetValue(offset, subObject)) { returnComPtr(object, subObject); } -- cgit v1.2.3