Skip to content

About

PlayStation 4 application samples for the freegnm GPU library

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

freegnm-samples

This repository holds demonstrations on how to use freegnm: a GPU rendering library for the PlayStation 4, and psbc: a shader binary compiler for the PlayStation 4.

These samples are meant to be quick and easy to understand.

CAVEATS:

  • Shader binaries compiled with psbc do not have any reflection information, at least for now.
  • None of these examples were tested on a Pro/NEO PS4 and may not work correctly under them.

Examples available

Triangle

Very basic example of the GPU's capabilities.

Screenshot

Cube

Draws a 3D textured cube.

Screenshot

GLTF

Renders a GLTF's model with some basic PBR parameters.

Screenshot

Instances

Example of instanced draw calls usage.

Screenshot

Indirect

Shows how to setup and use indirect draws.

Screenshot

Building

You need the following tools to build the projects:

Then go this project's root directory and run

export OO_PS4_TOOLCHAIN=/path/to/OpenOrbis-PS4-Toolchain
zig build

If successful, you should find all samples' package files inside the zig-out directory.

References

Some of the samples are based on Vulkan samples from Sascha Willems.

Some PBR algorithms are taken from Moving Frostbite to Physically Based Rendering.

Libraries and resources

The following libraries are used:

The following resources are used:

All libraries and resources are owned by their respective owners and are not covered by this project's license.

License

This project is released to the public domain, see UNLICENSE for more information.

About

PlayStation 4 application samples for the freegnm GPU library

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages