|
Blender V5.3
|
Public Member Functions | |
| GPUPass (GPUCodegenCreateInfo *info, bool deferred_compilation, bool is_optimization_pass, bool should_optimize) | |
| ~GPUPass () | |
| CompilationPriority | compilation_priority () |
| void | finalize_compilation () |
| void | update (double timestamp) |
| void | update_compilation (double timestamp) |
| void | update_gc_timestamp (double timestamp) |
| bool | should_gc (int gc_collect_rate, double timestamp) |
Public Attributes | |
| GPUCodegenCreateInfo * | create_info = nullptr |
| AsyncCompilationHandle | compilation_handle = 0 |
| std::atomic< gpu::Shader * > | shader = nullptr |
| std::atomic< GPUPassStatus > | status = GPU_PASS_QUEUED |
| std::atomic< int > | refcount = 1 |
| double | creation_timestamp = 0.0f |
| double | gc_timestamp = 0.0f |
| uint64_t | compilation_timestamp = 0 |
| bool | should_optimize = false |
| bool | is_optimization_pass = false |
Static Public Attributes | |
| static std::atomic< uint64_t > | compilation_counts = 0 |
| static constexpr float | optimization_delay = 10.0f |
Definition at line 37 of file gpu_pass.cc.
|
inline |
Definition at line 62 of file gpu_pass.cc.
References blender::BLI_assert(), blender::BLI_time_now_seconds(), compilation_handle, compilation_priority(), create_info, creation_timestamp, finalize_compilation(), blender::GPU_shader_async_compilation(), blender::GPU_shader_create_from_info(), is_optimization_pass, shader, and should_optimize.
|
inline |
Definition at line 88 of file gpu_pass.cc.
References blender::BLI_assert(), compilation_handle, create_info, blender::GPU_PASS_QUEUED, blender::GPU_shader_async_compilation_cancel(), GPU_SHADER_FREE_SAFE, is_optimization_pass, shader, and status.
|
inline |
Definition at line 100 of file gpu_pass.cc.
References is_optimization_pass, blender::Low, and blender::Medium.
Referenced by GPUPass(), and update_compilation().
|
inline |
Definition at line 105 of file gpu_pass.cc.
References BLI_assert_msg, compilation_counts, compilation_handle, compilation_timestamp, create_info, blender::GPU_PASS_FAILED, blender::GPU_PASS_SUCCESS, blender::gpu_pass_validate(), blender::GPU_shader_async_compilation_finalize(), shader, and status.
Referenced by blender::GPU_pass_ensure_its_ready(), GPUPass(), and update_compilation().
|
inline |
Definition at line 154 of file gpu_pass.cc.
References blender::BLI_assert(), compilation_handle, gc_timestamp, blender::GPU_PASS_FAILED, and status.
|
inline |
Definition at line 125 of file gpu_pass.cc.
References update_compilation(), and update_gc_timestamp().
|
inline |
Definition at line 131 of file gpu_pass.cc.
References blender::BLI_assert(), compilation_handle, compilation_priority(), create_info, creation_timestamp, finalize_compilation(), blender::GPU_PASS_QUEUED, blender::GPU_shader_async_compilation(), blender::GPU_shader_async_compilation_is_ready(), is_optimization_pass, optimization_delay, refcount, and status.
Referenced by update().
|
inline |
Definition at line 147 of file gpu_pass.cc.
References gc_timestamp, and refcount.
Referenced by update().
|
inlinestatic |
Definition at line 38 of file gpu_pass.cc.
Referenced by finalize_compilation(), and blender::GPU_pass_global_compilation_count().
| AsyncCompilationHandle blender::GPUPass::compilation_handle = 0 |
Definition at line 41 of file gpu_pass.cc.
Referenced by finalize_compilation(), GPUPass(), should_gc(), update_compilation(), and ~GPUPass().
| uint64_t blender::GPUPass::compilation_timestamp = 0 |
Definition at line 50 of file gpu_pass.cc.
Referenced by finalize_compilation(), and blender::GPU_pass_compilation_timestamp().
| GPUCodegenCreateInfo* blender::GPUPass::create_info = nullptr |
Definition at line 40 of file gpu_pass.cc.
Referenced by finalize_compilation(), GPUPass(), update_compilation(), and ~GPUPass().
| double blender::GPUPass::creation_timestamp = 0.0f |
Definition at line 46 of file gpu_pass.cc.
Referenced by GPUPass(), and update_compilation().
| double blender::GPUPass::gc_timestamp = 0.0f |
Definition at line 48 of file gpu_pass.cc.
Referenced by should_gc(), and update_gc_timestamp().
| bool blender::GPUPass::is_optimization_pass = false |
Definition at line 57 of file gpu_pass.cc.
Referenced by compilation_priority(), GPUPass(), update_compilation(), and ~GPUPass().
|
staticconstexpr |
Definition at line 60 of file gpu_pass.cc.
Referenced by update_compilation().
| std::atomic<int> blender::GPUPass::refcount = 1 |
Definition at line 45 of file gpu_pass.cc.
Referenced by blender::GPU_generate_pass(), blender::GPU_pass_acquire(), blender::GPU_pass_release(), update_compilation(), and update_gc_timestamp().
| std::atomic<gpu::Shader *> blender::GPUPass::shader = nullptr |
Definition at line 42 of file gpu_pass.cc.
Referenced by finalize_compilation(), blender::GPU_pass_shader_get(), GPUPass(), and ~GPUPass().
| bool blender::GPUPass::should_optimize = false |
Hint that an optimized variant of this pass should be created. Based on a complexity heuristic from pass code generation.
Definition at line 56 of file gpu_pass.cc.
Referenced by blender::GPU_pass_should_optimize(), and GPUPass().
| std::atomic<GPUPassStatus> blender::GPUPass::status = GPU_PASS_QUEUED |
Definition at line 43 of file gpu_pass.cc.
Referenced by finalize_compilation(), blender::GPU_pass_ensure_its_ready(), blender::GPU_pass_status(), should_gc(), update_compilation(), and ~GPUPass().