Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_codegen.h
| Show All 37 Lines | typedef struct GPUPass { | ||||
| struct GPUShader *shader; | struct GPUShader *shader; | ||||
| char *fragmentcode; | char *fragmentcode; | ||||
| char *geometrycode; | char *geometrycode; | ||||
| char *vertexcode; | char *vertexcode; | ||||
| char *defines; | char *defines; | ||||
| uint refcount; /* Orphaned GPUPasses gets freed by the garbage collector. */ | uint refcount; /* Orphaned GPUPasses gets freed by the garbage collector. */ | ||||
| uint32_t hash; /* Identity hash generated from all GLSL code. */ | uint32_t hash; /* Identity hash generated from all GLSL code. */ | ||||
| struct { | |||||
| char *content; | |||||
| uint format; | |||||
| int len; | |||||
| } binary; | |||||
| bool compiled; /* Did we already tried to compile the attached GPUShader. */ | bool compiled; /* Did we already tried to compile the attached GPUShader. */ | ||||
| } GPUPass; | } GPUPass; | ||||
| /* Pass */ | /* Pass */ | ||||
| GPUPass *GPU_generate_pass(struct GPUMaterial *material, | GPUPass *GPU_generate_pass(struct GPUMaterial *material, | ||||
| struct GPUNodeGraph *graph, | struct GPUNodeGraph *graph, | ||||
| const char *vert_code, | const char *vert_code, | ||||
| Show All 13 Lines | |||||