Blender V5.0
blender::gpu::shader::GPUCodegen Class Reference

#include <gpu_codegen.hh>

Public Member Functions

uint32_t hash_get () const

Public Attributes

GPUMaterialmat
GPUNodeGraphgraph
GPUCodegenOutput output = {}
GPUCodegenCreateInfocreate_info = nullptr

GLSL code generation

 GPUCodegen (GPUMaterial *mat_, GPUNodeGraph *graph_, const char *debug_name)
 ~GPUCodegen ()
void generate_graphs ()
void generate_cryptomatte ()
void generate_uniform_buffer ()
void generate_attribs ()
void generate_resources ()
bool should_optimize_heuristic () const

Detailed Description

Definition at line 59 of file gpu_codegen.hh.

Constructor & Destructor Documentation

◆ GPUCodegen()

GPUCodegen::GPUCodegen ( GPUMaterial * mat_,
GPUNodeGraph * graph_,
const char * debug_name )

◆ ~GPUCodegen()

GPUCodegen::~GPUCodegen ( )

Definition at line 134 of file gpu_codegen.cc.

References BLI_freelistN(), create_info, and MEM_SAFE_FREE.

Member Function Documentation

◆ generate_attribs()

◆ generate_cryptomatte()

void GPUCodegen::generate_cryptomatte ( )

◆ generate_graphs()

◆ generate_resources()

◆ generate_uniform_buffer()

void GPUCodegen::generate_uniform_buffer ( )

◆ hash_get()

uint32_t blender::gpu::shader::GPUCodegen::hash_get ( ) const
inline

Definition at line 87 of file gpu_codegen.hh.

Referenced by GPUPassCache::add(), and GPU_generate_pass().

◆ should_optimize_heuristic()

bool GPUCodegen::should_optimize_heuristic ( ) const

Definition at line 141 of file gpu_codegen.cc.

Referenced by GPUPassCache::add().

Member Data Documentation

◆ create_info

GPUCodegenCreateInfo* blender::gpu::shader::GPUCodegen::create_info = nullptr

◆ graph

GPUNodeGraph& blender::gpu::shader::GPUCodegen::graph

◆ mat

GPUMaterial& blender::gpu::shader::GPUCodegen::mat

Definition at line 61 of file gpu_codegen.hh.

Referenced by generate_cryptomatte(), generate_uniform_buffer(), and GPUCodegen().

◆ output

GPUCodegenOutput blender::gpu::shader::GPUCodegen::output = {}

Definition at line 63 of file gpu_codegen.hh.

Referenced by generate_attribs(), generate_graphs(), GPU_generate_pass(), and GPUCodegen().


The documentation for this class was generated from the following files: