template<size_t N = 4096,
Safe safety = Safe::Yes>
class psyqo::OrderingTable< N, safety >
The ordering table. Used to sort fragments before sending them to the GPU.
This class is used to sort fragments before sending them to the GPU. The GPU will then process the fragments in the order specified by the ordering table. Since the PS1 GPU doesn't have any depth buffer, the ordering table is used to roughly sort the fragments by their Z value. Each fragment is assigned a "bucket" based on its Z value. The fragments inside a bucket are NOT sorted. The GPU
class chain
function can be used to schedule an ordering table to be sent to the GPU.
- Template Parameters
-
N | The number of buckets in the ordering table. The larger the number, the more precise the sorting will be, but the more memory will be used. |