Blender V5.0
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

gpu::Shadershader = nullptr
Vector< CallDatacall_datas

Detailed Description

Definition at line 80 of file push_constants_test.cc.

Constructor & Destructor Documentation

◆ Shader()

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

Definition at line 84 of file push_constants_test.cc.

References call_datas.

◆ ~Shader()

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

Definition at line 89 of file push_constants_test.cc.

References GPU_shader_free(), GPU_shader_unbind(), and shader.

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 126 of file push_constants_test.cc.

References GPU_compute_dispatch(), and shader.

◆ 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 106 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 82 of file push_constants_test.cc.

Referenced by new_call(), and Shader().

◆ shader

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

Definition at line 81 of file push_constants_test.cc.

Referenced by bind(), dispatch(), init_shader(), update_push_constants(), and ~Shader().


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