Blender V2.61 - r43446
Classes | Defines | Typedefs | Enumerations | Functions

gpu_codegen.h File Reference

#include "DNA_listBase.h"
#include "GPU_material.h"
#include "GL/glew.h"

Go to the source code of this file.

Classes

struct  GPUFunction
struct  GPUNode
struct  GPUNodeLink
struct  GPUOutput
struct  GPUInput
struct  GPUPass

Defines

#define MAX_FUNCTION_NAME   64
#define MAX_PARAMETER   32
#define FUNCTION_QUAL_IN   0
#define FUNCTION_QUAL_OUT   1
#define FUNCTION_QUAL_INOUT   2

Typedefs

typedef struct GPUFunction GPUFunction
typedef enum GPUDataSource GPUDataSource
typedef struct GPUOutput GPUOutput
typedef struct GPUInput GPUInput
typedef struct GPUPass GPUPass

Enumerations

enum  GPUDataSource {
  GPU_SOURCE_VEC_UNIFORM, GPU_SOURCE_BUILTIN, GPU_SOURCE_TEX_PIXEL, GPU_SOURCE_TEX,
  GPU_SOURCE_ATTRIB
}

Functions

GPUFunctionGPU_lookup_function (const char *name)
GPUPassGPU_generate_pass (ListBase *nodes, struct GPUNodeLink *outlink, struct GPUVertexAttribs *attribs, int *builtin, const char *name)
struct GPUShaderGPU_pass_shader (GPUPass *pass)
void GPU_pass_bind (GPUPass *pass, double time, int mipmap)
void GPU_pass_update_uniforms (GPUPass *pass)
void GPU_pass_unbind (GPUPass *pass)
void GPU_pass_free (GPUPass *pass)
void GPU_codegen_init (void)
void GPU_codegen_exit (void)
const char * GPU_builtin_name (GPUBuiltin builtin)
void gpu_material_add_node (struct GPUMaterial *material, struct GPUNode *node)
int GPU_link_changed (struct GPUNodeLink *link)

Detailed Description

Definition in file gpu_codegen.h.


Define Documentation

#define FUNCTION_QUAL_IN   0

Definition at line 50 of file gpu_codegen.h.

Referenced by GPU_link(), gpu_parse_functions_string(), and GPU_stack_link().

#define FUNCTION_QUAL_INOUT   2

Definition at line 52 of file gpu_codegen.h.

Referenced by gpu_parse_functions_string().

#define FUNCTION_QUAL_OUT   1

Definition at line 51 of file gpu_codegen.h.

Referenced by gpu_parse_functions_string().

#define MAX_FUNCTION_NAME   64

Definition at line 47 of file gpu_codegen.h.

Referenced by gpu_parse_functions_string().

#define MAX_PARAMETER   32

Definition at line 48 of file gpu_codegen.h.


Typedef Documentation

typedef struct GPUFunction GPUFunction
typedef struct GPUInput GPUInput
typedef struct GPUOutput GPUOutput
typedef struct GPUPass GPUPass

Definition at line 168 of file gpu_codegen.h.


Enumeration Type Documentation

Enumerator:
GPU_SOURCE_VEC_UNIFORM 
GPU_SOURCE_BUILTIN 
GPU_SOURCE_TEX_PIXEL 
GPU_SOURCE_TEX 
GPU_SOURCE_ATTRIB 

Definition at line 69 of file gpu_codegen.h.


Function Documentation

const char* GPU_builtin_name ( GPUBuiltin  builtin)
void GPU_codegen_exit ( void  )
void GPU_codegen_init ( void  )

Definition at line 244 of file gpu_codegen.c.

References GPU_code_generate_glsl_lib().

Referenced by GPU_extensions_init().

GPUPass* GPU_generate_pass ( ListBase nodes,
struct GPUNodeLink outlink,
struct GPUVertexAttribs attribs,
int *  builtin,
const char *  name 
)
int GPU_link_changed ( struct GPUNodeLink link)
GPUFunction* GPU_lookup_function ( const char *  name)
void gpu_material_add_node ( struct GPUMaterial material,
struct GPUNode node 
)

Definition at line 370 of file gpu_material.c.

References BLI_addtail(), and GPUMaterial::nodes.

Referenced by GPU_link(), GPU_stack_link(), and GPU_stack_link_mute().

void GPU_pass_bind ( GPUPass pass,
double  time,
int  mipmap 
)
void GPU_pass_free ( GPUPass pass)
struct GPUShader* GPU_pass_shader ( GPUPass pass) [read]
void GPU_pass_unbind ( GPUPass pass)
void GPU_pass_update_uniforms ( GPUPass pass)