Blender V5.3
GPU_pass.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include "GPU_material.hh"
14#include "GPU_shader.hh"
15
16namespace blender {
17
18struct GPUNodeGraph;
19
20struct GPUPass;
21
27
28GPUPass *GPU_generate_pass(GPUMaterial *material,
29 GPUNodeGraph *graph,
30 const char *debug_name,
31 eGPUMaterialEngine engine,
32 bool deferred_compilation,
33 GPUCodegenCallbackFn finalize_source_cb,
34 void *thunk,
35 bool optimize_graph);
36
37GPUPassStatus GPU_pass_status(GPUPass *pass);
38bool GPU_pass_should_optimize(GPUPass *pass);
39void GPU_pass_ensure_its_ready(GPUPass *pass);
40gpu::Shader *GPU_pass_shader_get(GPUPass *pass);
41void GPU_pass_acquire(GPUPass *pass);
42void GPU_pass_release(GPUPass *pass);
43
46
51
52} // namespace blender
unsigned long long int uint64_t
BMesh Iterators.
bool GPU_pass_should_optimize(GPUPass *pass)
Definition gpu_pass.cc:167
void GPU_pass_acquire(GPUPass *pass)
Definition gpu_pass.cc:181
gpu::Shader * GPU_pass_shader_get(GPUPass *pass)
Definition gpu_pass.cc:176
uint64_t GPU_pass_compilation_timestamp(GPUPass *pass)
Definition gpu_pass.cc:200
void GPU_pass_cache_update()
Definition gpu_pass.cc:315
GPUPassStatus
Definition GPU_pass.hh:22
@ GPU_PASS_QUEUED
Definition GPU_pass.hh:24
@ GPU_PASS_FAILED
Definition GPU_pass.hh:23
@ GPU_PASS_SUCCESS
Definition GPU_pass.hh:25
GPUPassStatus GPU_pass_status(GPUPass *pass)
Definition gpu_pass.cc:162
void GPU_pass_cache_init()
Definition gpu_pass.cc:310
void GPU_pass_release(GPUPass *pass)
Definition gpu_pass.cc:188
void GPU_pass_cache_free()
Definition gpu_pass.cc:326
void GPU_pass_cache_wait_for_all()
Definition gpu_pass.cc:320
uint64_t GPU_pass_global_compilation_count()
Definition gpu_pass.cc:195
GPUPass * 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)
Definition gpu_pass.cc:350
void GPU_pass_ensure_its_ready(GPUPass *pass)
Definition gpu_pass.cc:300
void(*)(void *thunk, GPUMaterial *mat, struct GPUCodegenOutput *codegen) GPUCodegenCallbackFn