Wat is het PSSL-bestandsformaat?
Een .pssl-bestand bevat code geschreven in de PlayStation Shader Language, Sony's shading-taal voor PlayStation 4- en PlayStation 5-ontwikkeling. Sony introduceerde PSSL samen met de PS4 en presenteerde het op GDC Europe 2013. Het programmeert de GPU om belichting, schaduwen en andere visuele effecten in een game te produceren.
PSSL gebruikt een C++-achtige syntaxis en blijft dicht bij Microsofts .hlsl, de shader-taal die wordt gebruikt door Direct3D. De twee lijken genoeg op elkaar dat studio's die op zowel PC als console uitbrengen, veel van hun shader-code kunnen delen en de resterende verschillen kunnen overbruggen met preprocessor-macro's. De taal omvat vertex-, pixel-, geometry- en compute-shaders en ondersteunt zowel statische als dynamische control flow.
Een tekstueel .pssl-bestand is leesbare broncode. Het wordt gecompileerd naar binaire GPU-bestanden voor de console door een shader-compiler in de PlayStation SDK, die Sony bouwt op LLVM en Clang. Die binaire bestanden voeden vervolgens de GNM- en GNMX-graphics-API's, grofweg de PlayStation-tegenhangers van Direct3D 12 en Direct3D 11.
Beveiliging & veiligheid
RISICO: LOWText-based .pssl files are plain source code and cannot execute on their own, so they carry no inherent malware risk. Compiled PSSL shader binaries only run on PlayStation GPUs through the console runtime. Treat any .pssl file from an unknown source with the same caution as any downloaded code, but the format itself is not an executable delivery vector on a desktop PC.
Formaatdetails
in een notendop- Generic shader source - Some older references treat .pssl generically as a shader source file; on PlayStation platforms it specifically means PlayStation Shader Language.
- Unrelated tooling strings - Rare, non-standard uses of the four-letter string 'pssl' appear in unrelated software but are not an established file type.
Programma's die PSSL-bestanden openen
Technische details
diepe specificaties| Encoding | ASCII / UTF-8 text for source files |
| Byte order | N/A (text source); little-endian for compiled console binaries |
| Container | Plain text source; compiled form is a proprietary GPU microcode container |
| Compression | None for source |
| Encryption | None for source (retail game shader data may be packed/encrypted inside title assets) |
| Language Basis | C++-like syntax, closely modeled on Microsoft HLSL |
| Shader Stages | Vertex, pixel (fragment), geometry, and compute shaders |
| Control Flow | Supports both static and dynamic control flow |
| Toolchain | Compiled with a Sony PS4/PS5 SDK compiler based on LLVM and Clang |
| Graphics Apis | Used with the PlayStation GNM (low-level) and GNMX (high-level) graphics APIs |
| Platforms | PlayStation 4, PlayStation 5, Windows (SDK development host) |
| Structure | A .pssl source file declares shader entry points, resource bindings, and functions using HLSL-like semantics and intrinsics, then is compiled to GPU-native binary by the console SDK. |
| Notes | The PS4/PS5 SDK, its GNM/GNMX documentation, and the exact PSSL grammar are confidential and available only to licensed developers under NDA. |
| Uitgebracht | 2013 |
| Specificatie | en.wikipedia.org |
PSSL conversies
Community V&A
gevraagd door gebruikersNog geen vragen - wees de eerste om iets te vragen over PSSL-bestanden.
Veelgestelde vragen
Wat is een PSSL-bestand?
.pssl-bestanden bevatten leesbare broncode; de SDK compileert deze naar binaire GPU-bestanden voor de console.Hoe open ik een PSSL-bestand?
Kan ik zelf een PSSL-bestand compileren?
Is PSSL hetzelfde als HLSL?
Zijn PSSL-bestanden veilig om te openen?
.pssl-bestanden zijn platte broncode en worden niet uitgevoerd op een desktopcomputer. Zoals bij elke code van een onbekende bron, lees deze voordat u deze vertrouwt, maar het formaat zelf is niet gevaarlijk.