VCS: Difference between revisions

From Valve Developer Community
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...")
 
m (fixed link)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
== Format ==
== 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].  
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====
Line 26: Line 26:


{{todo|Details of the rest}}
{{todo|Details of the rest}}
[[Category:File formats]]

Latest revision as of 12:55, 28 July 2025

Stub

This article or section is a stub. You can help by expanding it.

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