3
3
Texture2D<float4> In : register(t0);
4
4
5
5
SamplerState DefaultSampler: register(s0);
6
- SamplerState OtherSampler : register(s1);
6
+ SamplerState SpecifiedSampler : register(s1);
7
7
8
8
RWTexture2D<float4> DefaultOut : register(u1);
9
- RWTexture2D<float4> OtherOut : register(u2);
9
+ RWTexture2D<float4> SpecifiedOut : register(u2);
10
10
11
11
#define RootSig \
12
12
"DescriptorTable( " \
@@ -31,8 +31,8 @@ void main(uint GI : SV_GroupIndex) {
31
31
float4 DefaultColor = In.Sample(DefaultSampler, UV);
32
32
DefaultOut[GID.xy] = DefaultColor.bgra;
33
33
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;
36
36
}
37
37
38
38
//--- pipeline.yaml
@@ -61,7 +61,7 @@ Buffers:
61
61
Height: 2
62
62
Width: 2
63
63
Depth: 16
64
- - Name: OtherOut
64
+ - Name: SpecifiedOut
65
65
Format: Float32
66
66
Channels: 4
67
67
ZeroInitSize: 64
@@ -81,10 +81,10 @@ Buffers:
81
81
Width: 2
82
82
Depth: 16
83
83
## 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
85
85
## setting addressV to mirror outputs [0, 0, 1, 1, ..., 1, 0, 0, 1] as shown
86
86
## below
87
- - Name: ExpectedOtherOut
87
+ - Name: ExpectedSpecifiedOut
88
88
Format: Float32
89
89
Channels: 4
90
90
Data: [0, 0, 1, 1,
@@ -100,10 +100,10 @@ Results:
100
100
Rule: BufferExact
101
101
Actual: DefaultOut
102
102
Expected: ExpectedDefaultOut
103
- - Result: OtherTest
103
+ - Result: SpecifiedTest
104
104
Rule: BufferExact
105
- Actual: OtherOut
106
- Expected: ExpectedOtherOut
105
+ Actual: SpecifiedOut
106
+ Expected: ExpectedSpecifiedOut
107
107
DescriptorSets:
108
108
- Resources:
109
109
- Name: In
@@ -120,7 +120,7 @@ DescriptorSets:
120
120
Space: 0
121
121
VulkanBinding:
122
122
Binding: 1
123
- - Name: OtherOut
123
+ - Name: SpecifiedOut
124
124
Kind: RWTexture2D
125
125
DirectXBinding:
126
126
Register: 2
0 commit comments