Skip to content

Commit 185c6e8

Browse files
authored
Update README.md
1 parent d7154d4 commit 185c6e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ enum class gltess_spacing_t : unsigned {
376376
377377
Circle supports DXIL constructs with a few new attributes:
378378
379-
* `dxil::patch_constant(f)` - Tessellation control shaders/hull shaders may set the `gltesc_LevelInner` and `gltesc_LevelOuter` variables from a special patch constant function, which is invoked once per patch. This is mandatory for DXIL shaders and optional for SPIR-V shaders.
380-
* `dxil::max_tess_factor(factor)` - Hull shaders may specify a max tessellation factor, up to 64. DXIL only.
379+
* `[[dxil::patch_constant(f)]]` - Tessellation control shaders/hull shaders may set the `gltesc_LevelInner` and `gltesc_LevelOuter` variables from a special patch constant function, which is invoked once per patch. This is mandatory for DXIL shaders and optional for SPIR-V shaders.
380+
* `[[dxil::max_tess_factor(factor)]]` - Hull shaders may specify a max tessellation factor, up to 64. DXIL only.
381381
382382
### Interface attributes
383383
@@ -467,8 +467,8 @@ There are some mutually-exclusive auxiliary modifiers:
467467
* `[[spirv::noperspective]] and [[spirv::flat]]` - Control interpolation of shader stage attributes. Use at most one of these.
468468
* `[[spirv::patch]]`, `[[spirv::centroid]]` and `[[spirv::sample]]` - Use at most one of these.
469469

470-
* `dxil::semantic(name)` - Identifies a semantic name to an `in` or `out` interface variable. A `spirv::location` attribute cannot be declared for the same variable. Special variables starting with "SV_" are not supported with this attribute.
471-
* `dxil::semantic(name, index)` - The two-operand version is easier to specialize. The string name identifies the element without an index. The index operand may be any constant expression, including one dependent on a template parameter. During instantiation, the integer index is evaluated, turned into a string, and concatenated with the preceding name.
470+
* `[[dxil::semantic(name)]]` - Identifies a semantic name to an `in` or `out` interface variable. A `spirv::location` attribute cannot be declared for the same variable. Special variables starting with "SV_" are not supported with this attribute.
471+
* `[[dxil::semantic(name, index)]]` - The two-operand version is easier to specialize. The string name identifies the element without an index. The index operand may be any constant expression, including one dependent on a template parameter. During instantiation, the integer index is evaluated, turned into a string, and concatenated with the preceding name.
472472

473473
## Shaders as an embedded language
474474

0 commit comments

Comments
 (0)