Skip to content

Commit 5f136cb

Browse files
committed
Add effects syntax examples
1 parent a966c38 commit 5f136cb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

proposals/NNNN-202x-deprecations.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,36 @@ warnings and does not provide any behavior associated with the effects syntax.
3434
In HLSL 202x we should disable effects parsing support and allow those parsing
3535
failures to generate errors as would otherwise occur in HLSL.
3636

37+
#### Examples of effects syntax
38+
39+
```hlsl
40+
< int foo=1; >
41+
<
42+
string Name = "texa";
43+
int ArraySize = 3;
44+
>;
45+
46+
sampler S : register(s1) = sampler_state {texture=tex;};
47+
Texture2D l_tex { state=foo; };
48+
49+
int foobar2 {blah=foo;} = 5;
50+
51+
texture tex1 < int foo=1; > { state=foo; };
52+
53+
54+
technique T0
55+
{
56+
pass {}
57+
}
58+
Technique
59+
{
60+
pass {}
61+
}
62+
63+
int foobar5[] {1, 2, 3};
64+
int foobar6[4] {1, 2, 3, 4};
65+
```
66+
3767
### Removal of `interface` Keyword
3868

3969
DXC supports `interface` declarations, however the semantic utility of

0 commit comments

Comments
 (0)