From c42a9faad8d84f7bd05457d5f8e1fe45d6eecfa2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 8 Oct 2024 13:29:57 -0700 Subject: 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. --- tests/metal/texture-sampler-less.slang | 8 ++++---- tests/metal/texture.slang | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/metal') 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 tCubeArray; // Metal doc says "For depth texture types, T must be float." __generic -typealias depth2d = __TextureImpl< +typealias depth2d = _Texture< T, __Shape2D, 0, // isArray @@ -43,7 +43,7 @@ typealias depth2d = __TextureImpl< >; __generic -typealias depth2d_array = __TextureImpl< +typealias depth2d_array = _Texture< T, __Shape2D, 1, // isArray @@ -56,7 +56,7 @@ typealias depth2d_array = __TextureImpl< >; __generic -typealias depthcube = __TextureImpl< +typealias depthcube = _Texture< T, __ShapeCube, 0, // isArray @@ -69,7 +69,7 @@ typealias depthcube = __TextureImpl< >; __generic -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 tCubeArray_u16; // Metal doc says "For depth texture types, T must be float." __generic -typealias depth2d = __TextureImpl< +typealias depth2d = _Texture< T, __Shape2D, 0, // isArray @@ -135,7 +135,7 @@ typealias depth2d = __TextureImpl< >; __generic -typealias depth2d_array = __TextureImpl< +typealias depth2d_array = _Texture< T, __Shape2D, 1, // isArray @@ -148,7 +148,7 @@ typealias depth2d_array = __TextureImpl< >; __generic -typealias depthcube = __TextureImpl< +typealias depthcube = _Texture< T, __ShapeCube, 0, // isArray @@ -161,7 +161,7 @@ typealias depthcube = __TextureImpl< >; __generic -typealias depthcube_array = __TextureImpl< +typealias depthcube_array = _Texture< T, __ShapeCube, 1, // isArray -- cgit v1.2.3