Skip to content

Commit 6afdd40

Browse files
author
Finn Plummer
committed
review: use specified to denote that the parameters were manually selected
1 parent 264a211 commit 6afdd40

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/Feature/RootSignatures/StaticSamplers.test

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
Texture2D<float4> In : register(t0);
44

55
SamplerState DefaultSampler: register(s0);
6-
SamplerState OtherSampler: register(s1);
6+
SamplerState SpecifiedSampler: register(s1);
77

88
RWTexture2D<float4> DefaultOut : register(u1);
9-
RWTexture2D<float4> OtherOut : register(u2);
9+
RWTexture2D<float4> SpecifiedOut : register(u2);
1010

1111
#define RootSig \
1212
"DescriptorTable( " \
@@ -31,8 +31,8 @@ void main(uint GI : SV_GroupIndex) {
3131
float4 DefaultColor = In.Sample(DefaultSampler, UV);
3232
DefaultOut[GID.xy] = DefaultColor.bgra;
3333

34-
float4 OtherColor = In.Sample(OtherSampler, UV);
35-
OtherOut[GID.xy] = OtherColor.bgra;
34+
float4 SpecifiedColor = In.Sample(SpecifiedSampler, UV);
35+
SpecifiedOut[GID.xy] = SpecifiedColor.bgra;
3636
}
3737

3838
//--- pipeline.yaml
@@ -61,7 +61,7 @@ Buffers:
6161
Height: 2
6262
Width: 2
6363
Depth: 16
64-
- Name: OtherOut
64+
- Name: SpecifiedOut
6565
Format: Float32
6666
Channels: 4
6767
ZeroInitSize: 64
@@ -81,10 +81,10 @@ Buffers:
8181
Width: 2
8282
Depth: 16
8383
## Modifying the LOD parameters does not affect the output. However,
84-
## The applied filter will output [0, 0, 1, 1, ... 0, 0, 1, 1] and then
84+
## the applied filter will output [0, 0, 1, 1, ... 0, 0, 1, 1] and then
8585
## setting addressV to mirror outputs [0, 0, 1, 1, ..., 1, 0, 0, 1] as shown
8686
## below
87-
- Name: ExpectedOtherOut
87+
- Name: ExpectedSpecifiedOut
8888
Format: Float32
8989
Channels: 4
9090
Data: [0, 0, 1, 1,
@@ -100,10 +100,10 @@ Results:
100100
Rule: BufferExact
101101
Actual: DefaultOut
102102
Expected: ExpectedDefaultOut
103-
- Result: OtherTest
103+
- Result: SpecifiedTest
104104
Rule: BufferExact
105-
Actual: OtherOut
106-
Expected: ExpectedOtherOut
105+
Actual: SpecifiedOut
106+
Expected: ExpectedSpecifiedOut
107107
DescriptorSets:
108108
- Resources:
109109
- Name: In
@@ -120,7 +120,7 @@ DescriptorSets:
120120
Space: 0
121121
VulkanBinding:
122122
Binding: 1
123-
- Name: OtherOut
123+
- Name: SpecifiedOut
124124
Kind: RWTexture2D
125125
DirectXBinding:
126126
Register: 2

0 commit comments

Comments
 (0)