Blender V4.3
GPUPass Struct Reference

Public Attributes

GPUPassnext
 
GPUShadershader
 
GPUCodegenCreateInfocreate_info = nullptr
 
uint refcount
 
int gc_timestamp
 
eGPUMaterialEngine engine
 
uint32_t hash
 
bool compiled
 
bool compilation_requested
 
bool should_optimize
 
bool cached
 
ThreadMutex shader_creation_mutex
 
BatchHandle async_compilation_handle
 

Detailed Description

Definition at line 90 of file gpu_codegen.cc.

Member Data Documentation

◆ async_compilation_handle

BatchHandle GPUPass::async_compilation_handle

Definition at line 115 of file gpu_codegen.cc.

◆ cached

bool GPUPass::cached

Whether pass is in the GPUPass cache.

Definition at line 111 of file gpu_codegen.cc.

◆ compilation_requested

bool GPUPass::compilation_requested

If this pass is already being_compiled (A GPUPass can be shared by multiple GPUMaterials).

Definition at line 106 of file gpu_codegen.cc.

◆ compiled

bool GPUPass::compiled

Did we already tried to compile the attached GPUShader.

Definition at line 104 of file gpu_codegen.cc.

◆ create_info

GPUCodegenCreateInfo* GPUPass::create_info = nullptr

Definition at line 94 of file gpu_codegen.cc.

◆ engine

eGPUMaterialEngine GPUPass::engine

The engine type this pass is compiled for.

Definition at line 100 of file gpu_codegen.cc.

Referenced by gpu_pass_cache_resolve_collision().

◆ gc_timestamp

int GPUPass::gc_timestamp

The last time the refcount was greater than 0.

Definition at line 98 of file gpu_codegen.cc.

Referenced by GPU_pass_cache_garbage_collect().

◆ hash

uint32_t GPUPass::hash

Identity hash generated from all GLSL code.

Definition at line 102 of file gpu_codegen.cc.

Referenced by GPU_generate_pass().

◆ next

◆ refcount

uint GPUPass::refcount

Orphaned GPUPasses gets freed by the garbage collector.

Definition at line 96 of file gpu_codegen.cc.

Referenced by GPU_generate_pass().

◆ shader

GPUShader* GPUPass::shader

Definition at line 93 of file gpu_codegen.cc.

◆ shader_creation_mutex

ThreadMutex GPUPass::shader_creation_mutex

Protects pass shader from being created from multiple threads at the same time.

Definition at line 113 of file gpu_codegen.cc.

◆ should_optimize

bool GPUPass::should_optimize

Hint that an optimized variant of this pass should be created based on a complexity heuristic during pass code generation.

Definition at line 109 of file gpu_codegen.cc.


The documentation for this struct was generated from the following file: