From b7a619b45b0745f166d2dcc5985b994fb1d85d13 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:40:53 -0700 Subject: Replace the word stdlib or standard-library with core-module for source code (#5415) This commit changes the word "stdlib" or "standard library" to "core module" in the source code. --- source/slang/slang-ast-type.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'source/slang/slang-ast-type.cpp') diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp index 9f848ddc4..0feea3fc9 100644 --- a/source/slang/slang-ast-type.cpp +++ b/source/slang/slang-ast-type.cpp @@ -1025,7 +1025,7 @@ SlangResourceShape ResourceType::getShape() bool ResourceType::isArray() { - auto isArray = _getGenericTypeArg(this, kStdlibTextureIsArrayParameterIndex); + auto isArray = _getGenericTypeArg(this, kCoreModule_TextureIsArrayParameterIndex); if (auto constIntVal = as(isArray)) return constIntVal->getValue() != 0; return false; @@ -1033,7 +1033,7 @@ bool ResourceType::isArray() bool ResourceType::isMultisample() { - auto isMS = _getGenericTypeArg(this, kStdlibTextureIsMultisampleParameterIndex); + auto isMS = _getGenericTypeArg(this, kCoreModule_TextureIsMultisampleParameterIndex); if (auto constIntVal = as(isMS)) return constIntVal->getValue() != 0; return false; @@ -1041,7 +1041,7 @@ bool ResourceType::isMultisample() bool ResourceType::isShadow() { - auto isShadow = _getGenericTypeArg(this, kStdlibTextureIsShadowParameterIndex); + auto isShadow = _getGenericTypeArg(this, kCoreModule_TextureIsShadowParameterIndex); if (auto constIntVal = as(isShadow)) return constIntVal->getValue() != 0; return false; @@ -1049,15 +1049,15 @@ bool ResourceType::isShadow() bool ResourceType::isFeedback() { - auto access = _getGenericTypeArg(this, kStdlibTextureAccessParameterIndex); + auto access = _getGenericTypeArg(this, kCoreModule_TextureAccessParameterIndex); if (auto constIntVal = as(access)) - return constIntVal->getValue() == kStdlibResourceAccessFeedback; + return constIntVal->getValue() == kCoreModule_ResourceAccessFeedback; return false; } bool ResourceType::isCombined() { - auto combined = _getGenericTypeArg(this, kStdlibTextureIsCombinedParameterIndex); + auto combined = _getGenericTypeArg(this, kCoreModule_TextureIsCombinedParameterIndex); if (auto constIntVal = as(combined)) return constIntVal->getValue() != 0; return false; @@ -1078,18 +1078,18 @@ bool SubpassInputType::isMultisample() SlangResourceAccess ResourceType::getAccess() { - auto access = _getGenericTypeArg(this, kStdlibTextureAccessParameterIndex); + auto access = _getGenericTypeArg(this, kCoreModule_TextureAccessParameterIndex); if (auto constIntVal = as(access)) { switch (constIntVal->getValue()) { - case kStdlibResourceAccessReadOnly: + case kCoreModule_ResourceAccessReadOnly: return SLANG_RESOURCE_ACCESS_READ; - case kStdlibResourceAccessReadWrite: + case kCoreModule_ResourceAccessReadWrite: return SLANG_RESOURCE_ACCESS_READ_WRITE; - case kStdlibResourceAccessRasterizerOrdered: + case kCoreModule_ResourceAccessRasterizerOrdered: return SLANG_RESOURCE_ACCESS_RASTER_ORDERED; - case kStdlibResourceAccessFeedback: + case kCoreModule_ResourceAccessFeedback: return SLANG_RESOURCE_ACCESS_FEEDBACK; default: break; -- cgit v1.2.3