VCS: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{stub}} The '''Valve Compiled Shader''' (''.vcs'') file format stores all shader bytecode for a given pixel or vertex shader. == Format == Some of the structure is [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/materialsystem/shader%20vcs%20version.h publicly available in the SDK]. ====Header==== {|class="standard-table" ! Type || Meaning || Description |- | int32 || Version || 1 to 6. Version 6 is the latest and most common one |- | int...") |
No edit summary |
||
Line 4: | Line 4: | ||
== Format == | == Format == | ||
Some of the structure is [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/materialsystem/ | Some of the structure is [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/materialsystem/shader_vcs_version.h publicly available in the SDK]. | ||
====Header==== | ====Header==== |
Revision as of 08:38, 10 February 2025
The Valve Compiled Shader (.vcs) file format stores all shader bytecode for a given pixel or vertex shader.
Format
Some of the structure is publicly available in the SDK.
Header
Type | Meaning | Description |
---|---|---|
int32 | Version | 1 to 6. Version 6 is the latest and most common one |
int32 | Total Combos | |
int32 | Dynamic Combo Count | |
uint32 | Flags | |
uint32 | Centroid Mask | |
uint32 | Static Combo Count | |
uint32 | Source CRC32 | CRC32 checksum of the original source file |
Todo: Details of the rest