summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ast-type.cpp
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-10-28 16:40:53 -0700
committerGitHub <noreply@github.com>2024-10-28 16:40:53 -0700
commitb7a619b45b0745f166d2dcc5985b994fb1d85d13 (patch)
treea1fbae9702899bf574624641f31bf17d9dd54999 /source/slang/slang-ast-type.cpp
parent80471601720e107f0914479f6097281d0840cf18 (diff)
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.
Diffstat (limited to 'source/slang/slang-ast-type.cpp')
-rw-r--r--source/slang/slang-ast-type.cpp22
1 files changed, 11 insertions, 11 deletions
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<ConstantIntVal>(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<ConstantIntVal>(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<ConstantIntVal>(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<ConstantIntVal>(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<ConstantIntVal>(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<ConstantIntVal>(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;