Skip to content

Commit 62f24fd

Browse files
committed
Update README for variant
1 parent b4a682c commit 62f24fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ You can then access these variants directly from the dedicated window and then a
9797
9898
A neat feature for big shader codebase with lot of entry point everywhere !
9999
100+
You can add one with the dedicated window or using the command `shader-validator.addCurrentFileVariant`. It will also help dxc and glslang validating your file in a huge codebase where DXC take a lot of time to validate using the lib profile.
101+
100102
![shader-variant](res/doc/variants.png)
101103
102104
### Regions
@@ -152,9 +154,9 @@ This extension run on the web on [vscode.dev](https://vscode.dev/). It is relyin
152154
153155
You can use shader variant to declare the entry point and the necessary macro without having to pass through global defines which might impact global state. It will also speed up validation by setting a stage and entry point.
154156
155-
### Validation is really slow on big HLSL files
157+
### Request are really slow on big HLSL files
156158
157-
You can use shader variant and specify an entry point to speed up things. By default the extension is using the dxc lib profile which is quite a heavy process with big files with a lot of includes. By setting an entry point along a stage, it will speed up validation, but dxc might still have a hard time.
159+
You can use shader variant and specify an entry point to speed up things. By default the extension is using the dxc lib profile which is quite a heavy process with big files with a lot of includes. By setting an entry point along a stage, it will speed up validation, but dxc might still have a hard time. Letting the server know where your code start can help it cache everything to the right place !
158160
159161
### How to check the logs ?
160162

0 commit comments

Comments
 (0)