VCS: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| SirYodaJedi (talk | contribs)  (Add category) | m (fixed link) | ||
| Line 4: | Line 4: | ||
| == Format == | == Format == | ||
| Some of the structure is [https://github.com/ValveSoftware/source-sdk-2013/blob/master | Some of the structure is [https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/public/materialsystem/shader_vcs_version.h publicly available in the SDK]. | ||
| ====Header==== | ====Header==== | ||
Latest revision as of 12:55, 28 July 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