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

Public Member Functions

void init_ssbo (size_t num_floats)
 
 ~CallData ()
 
void generate_test_data (const float vector_mul, const float scalar_mul)
 
void read_back ()
 
void validate ()
 

Public Attributes

GPUStorageBuf * ssbo = nullptr
 
Vector< floatdata
 
float float_in
 
float2 vec2_in
 
float3 vec3_in
 
float4 vec4_in
 

Detailed Description

Definition at line 19 of file push_constants_test.cc.

Constructor & Destructor Documentation

◆ ~CallData()

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

Definition at line 37 of file push_constants_test.cc.

References GPU_storagebuf_free(), and ssbo.

Member Function Documentation

◆ generate_test_data()

void blender::gpu::tests::CallData::generate_test_data ( const float vector_mul,
const float scalar_mul )
inline

Definition at line 45 of file push_constants_test.cc.

References float_in, vec2_in, vec3_in, and vec4_in.

Referenced by blender::gpu::tests::do_push_constants_test().

◆ init_ssbo()

void blender::gpu::tests::CallData::init_ssbo ( size_t num_floats)
inline

◆ read_back()

void blender::gpu::tests::CallData::read_back ( )
inline

◆ validate()

void blender::gpu::tests::CallData::validate ( )
inline

Member Data Documentation

◆ data

Vector<float> blender::gpu::tests::CallData::data

Definition at line 21 of file push_constants_test.cc.

◆ float_in

float blender::gpu::tests::CallData::float_in

◆ ssbo

GPUStorageBuf* blender::gpu::tests::CallData::ssbo = nullptr

◆ vec2_in

float2 blender::gpu::tests::CallData::vec2_in

◆ vec3_in

float3 blender::gpu::tests::CallData::vec3_in

◆ vec4_in

float4 blender::gpu::tests::CallData::vec4_in

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