Blender V4.3
blender::gpu::tests::Shader Struct Reference

Public Member Functions

 Shader ()
 
 ~Shader ()
 
void init_shader (const char *info_name)
 
CallDatanew_call ()
 
void bind (CallData &call_data)
 
void update_push_constants (const CallData &call_data)
 
void dispatch ()
 

Public Attributes

GPUShadershader = nullptr
 
Vector< CallDatacall_datas
 

Detailed Description

Definition at line 79 of file push_constants_test.cc.

Constructor & Destructor Documentation

◆ Shader()

blender::gpu::tests::Shader::Shader ( )
inline

Definition at line 83 of file push_constants_test.cc.

References call_datas.

◆ ~Shader()

blender::gpu::tests::Shader::~Shader ( )
inline

Definition at line 88 of file push_constants_test.cc.

References GPU_shader_free(), and GPU_shader_unbind().

Member Function Documentation

◆ bind()

void blender::gpu::tests::Shader::bind ( CallData & call_data)
inline

◆ dispatch()

void blender::gpu::tests::Shader::dispatch ( )
inline

Definition at line 125 of file push_constants_test.cc.

References GPU_compute_dispatch().

◆ init_shader()

void blender::gpu::tests::Shader::init_shader ( const char * info_name)
inline

◆ new_call()

CallData & blender::gpu::tests::Shader::new_call ( )
inline

Definition at line 105 of file push_constants_test.cc.

References call_datas.

◆ update_push_constants()

Member Data Documentation

◆ call_datas

Vector<CallData> blender::gpu::tests::Shader::call_datas

Definition at line 81 of file push_constants_test.cc.

Referenced by new_call(), and Shader().

◆ shader

GPUShader* blender::gpu::tests::Shader::shader = nullptr

Definition at line 80 of file push_constants_test.cc.


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