summaryrefslogtreecommitdiff
path: root/source/slang/slang-stdlib-textures.h
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-10-25 15:59:17 -0700
committerGitHub <noreply@github.com>2024-10-25 15:59:17 -0700
commitd8969d87dcc9eea3f186a0c93c5e48d3d1659e05 (patch)
treea7c17a8d8ce08bdd1551ba4815de809a4d1783f6 /source/slang/slang-stdlib-textures.h
parent4bad669bbc5ec3ff77321f083c59cde87eb10229 (diff)
Replace stdlib with core-module on files and projects (#5411)
This commit renames the files and projects to prefer "core-module" over "stdlib". The directory name `source/slang-stdlib` needs to be renamed too, and there will be another commit for it soon.
Diffstat (limited to 'source/slang/slang-stdlib-textures.h')
-rw-r--r--source/slang/slang-stdlib-textures.h105
1 files changed, 0 insertions, 105 deletions
diff --git a/source/slang/slang-stdlib-textures.h b/source/slang/slang-stdlib-textures.h
deleted file mode 100644
index a521a44d3..000000000
--- a/source/slang/slang-stdlib-textures.h
+++ /dev/null
@@ -1,105 +0,0 @@
-#pragma once
-
-#include "slang-ir.h"
-#include "slang-type-system-shared.h"
-#include "../core/slang-string.h"
-
-namespace Slang
-{
-
-static const struct BaseTextureShapeInfo {
- char const* shapeName;
- SlangResourceShape baseShape;
- int coordCount;
-} kBaseTextureShapes[] = {
- { "1D", SLANG_TEXTURE_1D, 1 },
- { "2D", SLANG_TEXTURE_2D, 2 },
- { "3D", SLANG_TEXTURE_3D, 3 },
- { "Cube", SLANG_TEXTURE_CUBE, 3 },
-};
-
-static const struct BaseTextureAccessInfo {
- char const* name;
- SlangResourceAccess access;
-} kBaseTextureAccessLevels[] = {
- { "", SLANG_RESOURCE_ACCESS_READ },
- { "RW", SLANG_RESOURCE_ACCESS_READ_WRITE },
- { "RasterizerOrdered", SLANG_RESOURCE_ACCESS_RASTER_ORDERED },
- { "Feedback", SLANG_RESOURCE_ACCESS_FEEDBACK },
-};
-
-struct TextureTypeInfo
-{
- TextureTypeInfo(
- BaseTextureShapeInfo const& base,
- bool isArray,
- bool isMultisample,
- bool isShadow,
- StringBuilder& inSB,
- String const& inPath);
-
- BaseTextureShapeInfo const& base;
- bool isArray;
- bool isMultisample;
- bool isShadow;
- StringBuilder& sb;
- String path;
-
- void emitTypeDecl();
-
-public:
- //
- // Functions for writing specific parts of a definition
- //
- void writeGetDimensionFunctions();
-
- //
- // More general utilities
- //
- enum class ReadNoneMode
- {
- Never,
- Always
- };
-
- void writeFuncBody(
- const char* funcName,
- const String& glsl,
- const String& cuda,
- const String& spirvDefault,
- const String& spirvRWDefault,
- const String& spirvCombined,
- const String& metal,
- const String& wgsl
- );
- void writeFuncWithSig(
- const char* funcName,
- const String& sig,
- const String& glsl = String{},
- const String& spirvDefault = String{},
- const String& spirvRWDefault = String{},
- const String& spirvCombined = String{},
- const String& cuda = String{},
- const String& metal = String{},
- const String& wgsl = String{},
- const ReadNoneMode readNoneMode = ReadNoneMode::Never
- );
- void writeFunc(
- const char* returnType,
- const char* funcName,
- const String& params,
- const String& glsl = String{},
- const String& spirvDefault = String{},
- const String& spirvRWDefault = String{},
- const String& spirvCombined = String{},
- const String& cuda = String{},
- const String& metal = String{},
- const String& wgsl = String{},
- const ReadNoneMode readNoneMode = ReadNoneMode::Never
- );
-
- // A pointer to a string representing the current level of indentation
- const char* i;
-};
-
-}