summaryrefslogtreecommitdiffstats
path: root/tests/metal
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-10-08 13:29:57 -0700
committerGitHub <noreply@github.com>2024-10-08 13:29:57 -0700
commitc42a9faad8d84f7bd05457d5f8e1fe45d6eecfa2 (patch)
treef6b5a249074882755e0232b1c9560118b7ccd6b2 /tests/metal
parent50f44c178de4c614dc45fc48938e6881c0373f6a (diff)
Overhaul docgen tool and setup CI to generate stdlib reference. (#5232)
* Overhaul docgen tool and setup CI to generate stdlib reference. * Fix build error. * Write parsed doc for all decls. * fix. * fix callout. * Fix. * Fix comment. * Fix. * Delete obsolete doc tests. * Fix. * Categorize functions and types. * Fix CI. * Update comments.
Diffstat (limited to 'tests/metal')
-rw-r--r--tests/metal/texture-sampler-less.slang8
-rw-r--r--tests/metal/texture.slang8
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/metal/texture-sampler-less.slang b/tests/metal/texture-sampler-less.slang
index 70b805ce7..188b15469 100644
--- a/tests/metal/texture-sampler-less.slang
+++ b/tests/metal/texture-sampler-less.slang
@@ -30,7 +30,7 @@ SamplerCubeArray<float> tCubeArray;
// Metal doc says "For depth texture types, T must be float."
__generic<T : __BuiltinType, let sampleCount:int=0, let format:int=0>
-typealias depth2d = __TextureImpl<
+typealias depth2d = _Texture<
T,
__Shape2D,
0, // isArray
@@ -43,7 +43,7 @@ typealias depth2d = __TextureImpl<
>;
__generic<T : __BuiltinType, let sampleCount:int=0, let format:int=0>
-typealias depth2d_array = __TextureImpl<
+typealias depth2d_array = _Texture<
T,
__Shape2D,
1, // isArray
@@ -56,7 +56,7 @@ typealias depth2d_array = __TextureImpl<
>;
__generic<T : __BuiltinType, let sampleCount:int=0, let format:int=0>
-typealias depthcube = __TextureImpl<
+typealias depthcube = _Texture<
T,
__ShapeCube,
0, // isArray
@@ -69,7 +69,7 @@ typealias depthcube = __TextureImpl<
>;
__generic<T : __BuiltinType, let sampleCount:int=0, let format:int=0>
-typealias depthcube_array = __TextureImpl<
+typealias depthcube_array = _Texture<
T,
__ShapeCube,
1, // isArray
diff --git a/tests/metal/texture.slang b/tests/metal/texture.slang
index a083f2ff5..37c8fa286 100644
--- a/tests/metal/texture.slang
+++ b/tests/metal/texture.slang
@@ -122,7 +122,7 @@ TextureCubeArray<uint16_t4> tCubeArray_u16;
// Metal doc says "For depth texture types, T must be float."
__generic<T : __BuiltinType, let sampleCount:int=0, let format:int=0>
-typealias depth2d = __TextureImpl<
+typealias depth2d = _Texture<
T,
__Shape2D,
0, // isArray
@@ -135,7 +135,7 @@ typealias depth2d = __TextureImpl<
>;
__generic<T : __BuiltinType, let sampleCount:int=0, let format:int=0>
-typealias depth2d_array = __TextureImpl<
+typealias depth2d_array = _Texture<
T,
__Shape2D,
1, // isArray
@@ -148,7 +148,7 @@ typealias depth2d_array = __TextureImpl<
>;
__generic<T : __BuiltinType, let sampleCount:int=0, let format:int=0>
-typealias depthcube = __TextureImpl<
+typealias depthcube = _Texture<
T,
__ShapeCube,
0, // isArray
@@ -161,7 +161,7 @@ typealias depthcube = __TextureImpl<
>;
__generic<T : __BuiltinType, let sampleCount:int=0, let format:int=0>
-typealias depthcube_array = __TextureImpl<
+typealias depthcube_array = _Texture<
T,
__ShapeCube,
1, // isArray