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/wgsl/texture-gather.slang | 8 ++++---- tests/wgsl/texture-load.slang | 6 +++--- tests/wgsl/texture-sampler-less.slang | 8 ++++---- tests/wgsl/texture.slang | 8 ++++---- 4 files changed, 15 insertions(+), 15 deletions(-) (limited to 'tests/wgsl') diff --git a/tests/wgsl/texture-gather.slang b/tests/wgsl/texture-gather.slang index a95428a1d..b77ec9f8f 100644 --- a/tests/wgsl/texture-gather.slang +++ b/tests/wgsl/texture-gather.slang @@ -69,7 +69,7 @@ TextureCubeArray tCubeArray_u32v4; // depth __generic -typealias Depth2D = __TextureImpl< +typealias Depth2D = _Texture< float, __Shape2D, 0, // isArray @@ -82,7 +82,7 @@ typealias Depth2D = __TextureImpl< >; __generic -typealias Depth2DArray = __TextureImpl< +typealias Depth2DArray = _Texture< float, __Shape2D, 1, // isArray @@ -95,7 +95,7 @@ typealias Depth2DArray = __TextureImpl< >; __generic -typealias DepthCube = __TextureImpl< +typealias DepthCube = _Texture< float, __ShapeCube, 0, // isArray @@ -108,7 +108,7 @@ typealias DepthCube = __TextureImpl< >; __generic -typealias DepthCubeArray = __TextureImpl< +typealias DepthCubeArray = _Texture< float, __ShapeCube, 1, // isArray diff --git a/tests/wgsl/texture-load.slang b/tests/wgsl/texture-load.slang index cc49b8709..3e69ac5cf 100644 --- a/tests/wgsl/texture-load.slang +++ b/tests/wgsl/texture-load.slang @@ -81,7 +81,7 @@ Texture2DArray t2DArray_u32v4; // depth __generic -typealias Depth2D = __TextureImpl< +typealias Depth2D = _Texture< float, __Shape2D, 0, // isArray @@ -94,7 +94,7 @@ typealias Depth2D = __TextureImpl< >; __generic -typealias Depth2DMS = __TextureImpl< +typealias Depth2DMS = _Texture< float, __Shape2D, 0, // isArray @@ -107,7 +107,7 @@ typealias Depth2DMS = __TextureImpl< >; __generic -typealias Depth2DArray = __TextureImpl< +typealias Depth2DArray = _Texture< float, __Shape2D, 1, // isArray diff --git a/tests/wgsl/texture-sampler-less.slang b/tests/wgsl/texture-sampler-less.slang index 893e867b7..249803526 100644 --- a/tests/wgsl/texture-sampler-less.slang +++ b/tests/wgsl/texture-sampler-less.slang @@ -44,7 +44,7 @@ Sampler2DArray t2DArray_f32v4; SamplerCubeArray tCubeArray_f32v4; __generic -typealias CombinedDepth2d = __TextureImpl< +typealias CombinedDepth2d = _Texture< T, __Shape2D, 0, // isArray @@ -57,7 +57,7 @@ typealias CombinedDepth2d = __TextureImpl< >; __generic -typealias CombinedDepth2d_array = __TextureImpl< +typealias CombinedDepth2d_array = _Texture< T, __Shape2D, 1, // isArray @@ -70,7 +70,7 @@ typealias CombinedDepth2d_array = __TextureImpl< >; __generic -typealias CombinedDepthcube = __TextureImpl< +typealias CombinedDepthcube = _Texture< T, __ShapeCube, 0, // isArray @@ -83,7 +83,7 @@ typealias CombinedDepthcube = __TextureImpl< >; __generic -typealias CombinedDepthcube_array = __TextureImpl< +typealias CombinedDepthcube_array = _Texture< T, __ShapeCube, 1, // isArray diff --git a/tests/wgsl/texture.slang b/tests/wgsl/texture.slang index 49f730eeb..be098c9ca 100644 --- a/tests/wgsl/texture.slang +++ b/tests/wgsl/texture.slang @@ -36,7 +36,7 @@ Texture2DArray t2DArray_f32v4; TextureCubeArray tCubeArray_f32v4; __generic -typealias depth2d = __TextureImpl< +typealias depth2d = _Texture< T, __Shape2D, 0, // isArray @@ -49,7 +49,7 @@ typealias depth2d = __TextureImpl< >; __generic -typealias depth2d_array = __TextureImpl< +typealias depth2d_array = _Texture< T, __Shape2D, 1, // isArray @@ -62,7 +62,7 @@ typealias depth2d_array = __TextureImpl< >; __generic -typealias depthcube = __TextureImpl< +typealias depthcube = _Texture< T, __ShapeCube, 0, // isArray @@ -75,7 +75,7 @@ typealias depthcube = __TextureImpl< >; __generic -typealias depthcube_array = __TextureImpl< +typealias depthcube_array = _Texture< T, __ShapeCube, 1, // isArray -- cgit v1.2.3