Blender  V2.93
Classes | Typedefs | Functions
gpu_codegen.h File Reference

Go to the source code of this file.

Classes

struct  GPUPass
 

Typedefs

typedef struct GPUPass GPUPass
 

Functions

GPUPassGPU_generate_pass (struct GPUMaterial *material, struct GPUNodeGraph *graph, const char *vert_code, const char *geom_code, const char *frag_lib, const char *defines)
 
struct GPUShaderGPU_pass_shader_get (GPUPass *pass)
 
bool GPU_pass_compile (GPUPass *pass, const char *shname)
 
void GPU_pass_release (GPUPass *pass)
 
void gpu_codegen_init (void)
 
void gpu_codegen_exit (void)
 

Detailed Description

Generate shader code from the intermediate node graph.

Definition in file gpu_codegen.h.

Typedef Documentation

◆ GPUPass

typedef struct GPUPass GPUPass

Function Documentation

◆ gpu_codegen_exit()

void gpu_codegen_exit ( void  )

Definition at line 1120 of file gpu_codegen.c.

References BKE_material_defaults_free_gpu(), and GPU_shader_free_builtin_shaders().

Referenced by GPU_exit().

◆ gpu_codegen_init()

void gpu_codegen_init ( void  )

Definition at line 1116 of file gpu_codegen.c.

Referenced by GPU_init().

◆ GPU_generate_pass()

GPUPass* GPU_generate_pass ( struct GPUMaterial material,
struct GPUNodeGraph graph,
const char *  vert_code,
const char *  geom_code,
const char *  frag_lib,
const char *  defines 
)

◆ GPU_pass_compile()

bool GPU_pass_compile ( GPUPass pass,
const char *  shname 
)

◆ GPU_pass_release()

void GPU_pass_release ( GPUPass pass)

Definition at line 1049 of file gpu_codegen.c.

References BLI_assert, and GPUPass::refcount.

Referenced by GPU_material_compile(), and gpu_material_free_single().

◆ GPU_pass_shader_get()

struct GPUShader* GPU_pass_shader_get ( GPUPass pass)