Co to jest format pliku PSSL?
Plik .pssl zawiera kod napisany w PlayStation Shader Language, języku cieniowania firmy Sony przeznaczonym do programowania na PlayStation 4 i PlayStation 5. Sony wprowadziło PSSL wraz z PS4 i zaprezentowało go na GDC Europe 2013. Służy on do programowania jednostki GPU w celu generowania oświetlenia, cieniowania i innych efektów wizualnych w grze.
PSSL wykorzystuje składnię zbliżoną do C++ i jest bardzo podobny do opracowanego przez Microsoft języka .hlsl, używanego przez Direct3D. Oba języki są na tyle zbliżone, że studia wydające gry zarówno na PC, jak i konsole, mogą współdzielić dużą część kodu shaderów, a pozostałe różnice niwelować za pomocą makr preprocesora. Język ten obsługuje shadery wierzchołków (vertex), pikseli (pixel), geometrii (geometry) oraz obliczeniowe (compute), a także wspiera zarówno statyczny, jak i dynamiczny przepływ sterowania.
Tekstowy plik .pssl to czytelny kod źródłowy. Jest on kompilowany do binarnych plików GPU konsoli przez kompilator shaderów zawarty w PlayStation SDK, który Sony opiera na LLVM i Clang. Te pliki binarne zasilają następnie interfejsy API grafiki GNM i GNMX, będące w przybliżeniu odpowiednikami Direct3D 12 i Direct3D 11 na PlayStation.
Bezpieczeństwo
RYZYKO: 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.
Szczegóły formatu
w pigułce- 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.
Programy otwierające pliki PSSL
Szczegóły techniczne
specyfikacja| 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. |
| Wydano | 2013 |
| Specyfikacja | en.wikipedia.org |
Konwersje PSSL
Pytania i odpowiedzi społeczności
pytania użytkownikówBrak pytań - bądź pierwszą osobą, która zapyta o pliki PSSL.
Najczęściej zadawane pytania
Czym jest plik PSSL?
.pssl zawierają czytelny kod źródłowy; SDK kompiluje je do binarnych plików GPU konsoli.Jak otworzyć plik PSSL?
Czy mogę samodzielnie skompilować plik PSSL?
Czy PSSL to to samo co HLSL?
Czy pliki PSSL są bezpieczne do otwarcia?
.pssl to zwykły kod źródłowy i nie uruchamiają się na komputerze stacjonarnym. Jak w przypadku każdego kodu z nieznanego źródła, należy go przeczytać przed zaufaniem mu, ale sam format nie jest niebezpieczny.