Blender V5.3
GPU_pass.hh File Reference
#include "GPU_material.hh"
#include "GPU_shader.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

enum  blender::GPUPassStatus { blender::GPU_PASS_FAILED = 0 , blender::GPU_PASS_QUEUED , blender::GPU_PASS_SUCCESS }

Functions

Compilation
GPUPass * blender::GPU_generate_pass (GPUMaterial *material, GPUNodeGraph *graph, const char *debug_name, eGPUMaterialEngine engine, bool deferred_compilation, GPUCodegenCallbackFn finalize_source_cb, void *thunk, bool optimize_graph)
GPUPass
GPUPassStatus blender::GPU_pass_status (GPUPass *pass)
bool blender::GPU_pass_should_optimize (GPUPass *pass)
gpu::Shader * blender::GPU_pass_shader_get (GPUPass *pass)
void blender::GPU_pass_acquire (GPUPass *pass)
void blender::GPU_pass_release (GPUPass *pass)
uint64_t blender::GPU_pass_global_compilation_count ()
uint64_t blender::GPU_pass_compilation_timestamp (GPUPass *pass)
GPUPass Cache

Internal shader cache: This prevent the shader recompilation / stall when using undo/redo AND also allows for GPUPass reuse if the Shader code is the same for 2 different Materials. Unused GPUPasses are free by Garbage collection.

void blender::GPU_pass_ensure_its_ready (GPUPass *pass)
void blender::GPU_pass_cache_init ()
void blender::GPU_pass_cache_update ()
void blender::GPU_pass_cache_wait_for_all ()
void blender::GPU_pass_cache_free ()

Detailed Description

Generate and cache shaders generated from the intermediate node graph.

Definition in file GPU_pass.hh.