5#include "testing/testing.h"
16constexpr size_t SIZE = 128;
32 EXPECT_NE(ssbo,
nullptr);
57 EXPECT_NE(ssbo,
nullptr);
82 EXPECT_NE(ssbo,
nullptr);
105 EXPECT_NE(ssbo,
nullptr);
128 float *expected_data =
static_cast<float *
>(
static_cast<void *
>(&
data));
140 EXPECT_EQ_ARRAY(expected_data, read_data.
data(), 24);
156 float *expected_data =
static_cast<float *
>(
static_cast<void *
>(&
data));
157 EXPECT_EQ_ARRAY(expected_data, &(read_data.
data()[4]), 24);
173 float *expected_data =
static_cast<float *
>(
static_cast<void *
>(&
data));
174 EXPECT_EQ_ARRAY(&expected_data[6], &(read_data.
data()[4]), 12);
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
GPUStorageBuf * GPU_storagebuf_create_ex(size_t size, const void *data, GPUUsageType usage, const char *name)
void GPU_storagebuf_copy_sub_from_vertbuf(GPUStorageBuf *ssbo, blender::gpu::VertBuf *src, uint dst_offset, uint src_offset, uint copy_size)
Copy a part of a vertex buffer to a storage buffer.
void GPU_storagebuf_clear_to_zero(GPUStorageBuf *ssbo)
void GPU_storagebuf_free(GPUStorageBuf *ssbo)
void GPU_storagebuf_update(GPUStorageBuf *ssbo, const void *data)
void GPU_storagebuf_read(GPUStorageBuf *ssbo, void *data)
void GPU_storagebuf_clear(GPUStorageBuf *ssbo, uint32_t clear_value)
#define GPU_vertbuf_create_with_format(format)
void GPU_vertbuf_vert_set(blender::gpu::VertBuf *verts, uint v_idx, const void *data)
void GPU_vertbuf_data_alloc(blender::gpu::VertBuf &verts, uint v_len)
void GPU_vertbuf_discard(blender::gpu::VertBuf *)
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Brightness Control the brightness and contrast of the input color Vector Map input vector components with curves Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert Invert a color
void append(const T &value)
void resize(const int64_t new_size)
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
#define GPU_TEST(test_name)
static void test_storage_buffer_clear_zero()
static void test_storage_buffer_clear()
static Vector< int32_t > test_data()
static void test_storage_buffer_create_update_read()
static void test_storage_buffer_copy_from_vertex_buffer()
constexpr size_t SIZE_IN_BYTES
VecBase< float, 4 > float4
VecBase< float, 2 > float2