24 EXPECT_NE(
shader,
nullptr);
40 const float4 expected_result(1.0f, 0.5f, 0.2f, 1.0f);
41 EXPECT_NE(
data,
nullptr);
42 for (
int index = 0; index <
SIZE *
SIZE; index++) {
61 EXPECT_NE(
shader,
nullptr);
85 const float4 expected_result(1.0f, 0.5f, 0.2f, 1.0f);
86 EXPECT_NE(
data,
nullptr);
87 for (
int index = 0; index <
SIZE *
SIZE; index++) {
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
void GPU_compute_dispatch(GPUShader *shader, uint groups_x_len, uint groups_y_len, uint groups_z_len, const blender::gpu::shader::SpecializationConstants *constants_state=nullptr)
int GPU_shader_get_sampler_binding(GPUShader *shader, const char *name)
GPUShader * GPU_shader_create_from_info_name(const char *info_name)
void GPU_shader_bind(GPUShader *shader, const blender::gpu::shader::SpecializationConstants *constants_state=nullptr)
void GPU_shader_free(GPUShader *shader)
void GPU_memory_barrier(eGPUBarrier barrier)
@ GPU_BARRIER_TEXTURE_UPDATE
GPUStorageBuf * GPU_storagebuf_create_ex(size_t size, const void *data, GPUUsageType usage, const char *name)
void GPU_storagebuf_free(GPUStorageBuf *ssbo)
GPUTexture * GPU_texture_create_2d(const char *name, int width, int height, int mip_len, eGPUTextureFormat format, eGPUTextureUsage usage, const float *data)
void GPU_texture_free(GPUTexture *texture)
void GPU_texture_clear(GPUTexture *texture, eGPUDataFormat data_format, const void *data)
void * GPU_texture_read(GPUTexture *texture, eGPUDataFormat data_format, int mip_level)
void GPU_texture_unbind(GPUTexture *texture)
@ GPU_TEXTURE_USAGE_GENERAL
void GPU_texture_image_bind(GPUTexture *texture, int unit)
Read Guarded memory(de)allocation.
BMesh const char void * data
void GPU_compute_dispatch_indirect(GPUShader *shader, GPUStorageBuf *indirect_buf_, const blender::gpu::shader::SpecializationConstants *constants_state)
TEX_TEMPLATE DataVec texture(T, FltCoord, float=0.0f) RET
#define GPU_TEST(test_name)
void MEM_freeN(void *vmemh)
static void test_compute_indirect()
static void test_compute_direct()
GPU_TEST(compute_indirect)
VecBase< uint32_t, 4 > uint4
VecBase< float, 4 > float4