OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sort.cpp File Reference
#include "sort.h"
#include "common/matrix.h"
#include "common/glutil.h"
#include "common/shader.h"
#include "common/common.h"
#include <string.h>

Go to the source code of this file.

Macros

#define MAX_SCAN_LEVELS   4
 

Functions

bool sort_init ()
 
void sort_free ()
 
void sort_bits (GLuint buf_input, int bit_offset, vec3 axis, float z_min, float z_max)
 
void radix_sort (GLuint buf_input, vec3 axis, float z_min, float z_max)
 

Variables

Shader shader_scan
 
Shader shader_scan_first
 
Shader shader_resolve
 
Shader shader_reorder
 
GLuint buf_scan [MAX_SCAN_LEVELS]
 
GLuint buf_sums [MAX_SCAN_LEVELS]
 
GLuint buf_flags
 
GLuint buf_sorted
 
unsigned scan_levels
 

Macro Definition Documentation

#define MAX_SCAN_LEVELS   4

Definition at line 28 of file sort.cpp.

Function Documentation

void radix_sort ( GLuint  buf_input,
vec3  axis,
float  z_min,
float  z_max 
)

Definition at line 181 of file sort.cpp.

void sort_bits ( GLuint  buf_input,
int  bit_offset,
vec3  axis,
float  z_min,
float  z_max 
)

Definition at line 104 of file sort.cpp.

void sort_free ( )

Definition at line 87 of file sort.cpp.

bool sort_init ( )

Definition at line 44 of file sort.cpp.

Variable Documentation

GLuint buf_flags

Definition at line 37 of file sort.cpp.

Definition at line 37 of file sort.cpp.

GLuint buf_sorted

Definition at line 37 of file sort.cpp.

Definition at line 37 of file sort.cpp.

unsigned scan_levels

Definition at line 42 of file sort.cpp.

Shader shader_reorder

Definition at line 31 of file sort.cpp.

Shader shader_resolve

Definition at line 31 of file sort.cpp.

Shader shader_scan

Definition at line 31 of file sort.cpp.

Shader shader_scan_first

Definition at line 31 of file sort.cpp.