summaryrefslogtreecommitdiffstats
path: root/tests/wgsl/texture.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wgsl/texture.slang')
-rw-r--r--tests/wgsl/texture.slang60
1 files changed, 4 insertions, 56 deletions
diff --git a/tests/wgsl/texture.slang b/tests/wgsl/texture.slang
index 1a14fec32..b49f14e07 100644
--- a/tests/wgsl/texture.slang
+++ b/tests/wgsl/texture.slang
@@ -35,66 +35,14 @@ Texture2DArray<float4> t2DArray_f32v4;
//TEST_INPUT: TextureCube(size=4, content = zero, arrayLength=2):name tCubeArray_f32v4
TextureCubeArray<float4> tCubeArray_f32v4;
-__generic<T : ITexelElement, let sampleCount:int=0, let format:int=0>
-typealias depth2d = _Texture<
- T,
- __Shape2D,
- 0, // isArray
- 0, // isMS
- sampleCount,
- 0, // access
- 1, // isShadow
- 0, // isCombined
- format
->;
-
-__generic<T : ITexelElement, let sampleCount:int=0, let format:int=0>
-typealias depth2d_array = _Texture<
- T,
- __Shape2D,
- 1, // isArray
- 0, // isMS
- sampleCount,
- 0, // access
- 1, // isShadow
- 0, // isCombined
- format
->;
-
-__generic<T : ITexelElement, let sampleCount:int=0, let format:int=0>
-typealias depthcube = _Texture<
- T,
- __ShapeCube,
- 0, // isArray
- 0, // isMS
- sampleCount,
- 0, // access
- 1, // isShadow
- 0, // isCombined
- format
->;
-
-__generic<T : ITexelElement, let sampleCount:int=0, let format:int=0>
-typealias depthcube_array = _Texture<
- T,
- __ShapeCube,
- 1, // isArray
- 0, // isMS
- sampleCount,
- 0, // access
- 1, // isShadow
- 0, // isCombined
- format
->;
-
//TEST_INPUT: Texture2D(size=4, content = zero):name d2D
-depth2d<float> d2D;
+DepthTexture2D d2D;
//TEST_INPUT: TextureCube(size=4, content = zero):name dCube
-depthcube<float> dCube;
+DepthTextureCube dCube;
//TEST_INPUT: Texture2D(size=4, content = zero, arrayLength=2):name d2DArray
-depth2d_array<float> d2DArray;
+DepthTexture2DArray d2DArray;
//TEST_INPUT: TextureCube(size=4, content = zero, arrayLength=2):name dCubeArray
-depthcube_array<float> dCubeArray;
+DepthTextureCubeArray dCubeArray;
//TEST_INPUT: Sampler:name samplerState
SamplerState samplerState;