Jump to content

Shader Program Buffer: Difference between revisions

no edit summary
(Created page.)
 
No edit summary
Line 10:
The shader program buffer, as the name suggests, describes a buffer for compiled shaders. Shaders are platform-specific and their formats vary greatly, and differences between pixel shaders and vertex shaders double this diversity. This makes documenting the formats extremely challenging; as such, although attempts have been made to do so, they will most likely remain undocumented on this wiki.
 
PlayStation 3 uses shaders compiled with NvidiaNVIDIA's Cg compiler. The primary resource portion has a discernible header, but for the most part it is made up of the the _CGprogram structure, which is unfortunately not publicly documented and does not appear in any symbols. The secondary resource portion is usually null, though it can sometimes contain garbage near the end. These do vary in size, however, indicating they are valid and loaded into memory regardless. See [https://developer.nvidia.com/cg-toolkit-download NVIDIA's reference manual] or the SCE PS3 SDK for more information.
 
For information on Xbox 360 shaders, see Microsoft's documentation of [https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx9-graphics-reference-asm-ps-3-0 ps_3_0] and [https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx9-graphics-reference-asm-vs-3-0 vs_3_0].
Cookies help us deliver our services. By using our services, you agree to our use of cookies.