Blender V4.3
blender::gpu::tests Namespace Reference

Classes

struct  CallData
 
struct  Shader
 
struct  ShaderSpecializationConst
 

Functions

static void test_buffer_texture ()
 
static void test_compute_direct ()
 
static void test_compute_indirect ()
 
 GPU_TEST (compute_indirect)
 
static void test_framebuffer_clear_color_single_attachment ()
 
 GPU_TEST (framebuffer_clear_color_single_attachment)
 
static void test_framebuffer_clear_color_multiple_attachments ()
 
 GPU_TEST (framebuffer_clear_color_multiple_attachments)
 
static void test_framebuffer_clear_multiple_color_multiple_attachments ()
 
 GPU_TEST (framebuffer_clear_multiple_color_multiple_attachments)
 
static void test_framebuffer_clear_depth ()
 
 GPU_TEST (framebuffer_clear_depth)
 
static void test_framebuffer_scissor_test ()
 
 GPU_TEST (framebuffer_scissor_test)
 
static void test_framebuffer_cube ()
 
static void test_framebuffer_multi_viewport ()
 
static void test_framebuffer_subpass_input ()
 
static void test_immediate_one_plane ()
 
static void test_immediate_two_planes ()
 
static void test_index_buffer_subbuilders ()
 
static void do_push_constants_test (const char *info_name, const int num_calls_simultaneously=1)
 
static void test_push_constants ()
 
static void test_push_constants_128bytes ()
 
static void test_push_constants_256bytes ()
 
static void test_push_constants_512bytes ()
 
static void test_push_constants_8192bytes ()
 
static void test_push_constants_multiple ()
 
static void test_push_constants_multiple_128bytes ()
 
static void test_push_constants_multiple_256bytes ()
 
static void test_push_constants_multiple_512bytes ()
 
static void test_push_constants_multiple_8192bytes ()
 
static void test_static_shaders ()
 
static void test_shader_compute_2d ()
 
static void test_shader_compute_1d ()
 
static void test_shader_compute_vbo ()
 
static void test_shader_compute_ibo ()
 
static void test_shader_compute_ssbo ()
 
static void test_shader_ssbo_binding ()
 
static std::string print_test_data (const TestOutputRawData &raw, TestType type)
 
static StringRef print_test_line (StringRefNull test_src, int64_t test_line)
 
static void gpu_shader_lib_test (const char *test_src_name, const char *additional_info=nullptr)
 
static void test_math_lib ()
 
static void test_eevee_lib ()
 
static void test_specialization_constants_compute ()
 
static void test_specialization_constants_graphic ()
 
template<eGPUBlend blend_type>
void blend_test (float4 source_a, float4 source_b, float4 expected_result)
 
static void test_blend_none ()
 
static void test_blend_alpha ()
 
static void test_blend_alpha_premult ()
 
static void test_blend_additive ()
 
static void test_blend_additive_premult ()
 
static void test_blend_multiply ()
 
static void test_blend_subtract ()
 
static void test_blend_invert ()
 
static void test_blend_oit ()
 
static void test_blend_background ()
 
static Vector< int32_ttest_data ()
 
static void test_storage_buffer_create_update_read ()
 
 GPU_TEST (storage_buffer_create_update_read)
 
static void test_storage_buffer_clear_zero ()
 
 GPU_TEST (storage_buffer_clear_zero)
 
static void test_storage_buffer_clear ()
 
 GPU_TEST (storage_buffer_clear)
 
static void test_storage_buffer_copy_from_vertex_buffer ()
 
 GPU_TEST (storage_buffer_copy_from_vertex_buffer)
 
static void test_texture_read ()
 
static void test_texture_1d ()
 
static void test_texture_1d_array ()
 
static void test_texture_1d_array_upload ()
 
static void test_texture_2d_array ()
 
static void test_texture_2d_array_upload ()
 
static void test_texture_cube ()
 
static void test_texture_cube_array ()
 
static void test_texture_3d ()
 
static void test_texture_copy ()
 
template<typename DataType >
static DataTypegenerate_test_data (size_t data_len)
 
template<eGPUTextureFormat DeviceFormat, eGPUDataFormat HostFormat, typename DataType , int Size = 16>
static void texture_create_upload_read ()
 
template<eGPUTextureFormat DeviceFormat, eGPUDataFormat HostFormat, int Size = 16>
static void texture_create_upload_read_with_bias (float max_allowed_bias)
 
template<eGPUTextureFormat DeviceFormat, eGPUDataFormat HostFormat, int Size = 16>
static void texture_create_upload_read_pixel ()
 
template<GPUVertCompType comp_type, GPUVertFetchMode fetch_mode, typename ColorType >
static void vertex_buffer_fetch_mode (ColorType color)
 
static void test_vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT ()
 
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT)
 
static void test_vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT ()
 
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT)
 
static void test_vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT ()
 
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT)
 
static void test_vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT ()
 
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT)
 
static void test_vertex_buffer_fetch_mode__GPU_COMP_I32__GPU_FETCH_INT_TO_FLOAT ()
 
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_I32__GPU_FETCH_INT_TO_FLOAT)
 
static void test_vertex_buffer_fetch_mode__GPU_COMP_U32__GPU_FETCH_INT_TO_FLOAT ()
 
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_U32__GPU_FETCH_INT_TO_FLOAT)
 
static void test_vertex_buffer_fetch_mode__GPU_COMP_F32__GPU_FETCH_FLOAT ()
 
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_F32__GPU_FETCH_FLOAT)
 
 TEST (VulkanDataConversion, clamp_negative_to_zero)
 
 TEST (VulkanDataConversion, infinity_upper)
 
 TEST (VulkanDataConversion, vertex_format_i32_as_float)
 
 TEST (VulkanDataConversion, vertex_format_u32_as_float)
 
 TEST (VulkanDataConversion, vertex_format_r8g8b8)
 
 TEST (VulkanDataConversion, vertex_format_multiple_attributes)
 
 TEST (VulkanDataConversion, texture_rgb16f_as_floats_to_rgba16f)
 
 TEST (VulkanDataConversion, texture_rgb32f_as_floats_to_rgba32f)
 
Round-trip testing GPU_DATA_FLOAT
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16F)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA32F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA32F)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16F)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG32F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RG32F)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_R8)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_R16F)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_R16)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R32F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_R32F)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R11F_G11F_B10F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_R11F_G11F_B10F)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_SRGB8_A8 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_SRGB8_A8)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8_SNORM ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8_SNORM)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16_SNORM ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16_SNORM)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8_SNORM ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8_SNORM)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16_SNORM ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16_SNORM)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8_SNORM ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_R8_SNORM)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16_SNORM ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_R16_SNORM)
 
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH_COMPONENT32F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH_COMPONENT32F)
 
Round-trip testing GPU_DATA_HALF_FLOAT
static void test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RGBA16F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RGBA16F)
 
static void test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RG16F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RG16F)
 
static void test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_R16F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_R16F)
 
Round-trip testing GPU_DATA_INT
static void test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA8I ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_INT__GPU_RGBA8I)
 
static void test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA16I ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_INT__GPU_RGBA16I)
 
static void test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA32I ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_INT__GPU_RGBA32I)
 
static void test_texture_roundtrip__GPU_DATA_INT__GPU_RG8I ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_INT__GPU_RG8I)
 
static void test_texture_roundtrip__GPU_DATA_INT__GPU_RG32I ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_INT__GPU_RG32I)
 
static void test_texture_roundtrip__GPU_DATA_INT__GPU_R8I ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_INT__GPU_R8I)
 
static void test_texture_roundtrip__GPU_DATA_INT__GPU_R16I ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_INT__GPU_R16I)
 
static void test_texture_roundtrip__GPU_DATA_INT__GPU_R32I ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_INT__GPU_R32I)
 
Round-trip testing GPU_DATA_UINT
static void test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA8UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UINT__GPU_RGBA8UI)
 
static void test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA16UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UINT__GPU_RGBA16UI)
 
static void test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA32UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UINT__GPU_RGBA32UI)
 
static void test_texture_roundtrip__GPU_DATA_UINT__GPU_RG8UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UINT__GPU_RG8UI)
 
static void test_texture_roundtrip__GPU_DATA_UINT__GPU_RG16UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UINT__GPU_RG16UI)
 
static void test_texture_roundtrip__GPU_DATA_UINT__GPU_RG32UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UINT__GPU_RG32UI)
 
static void test_texture_roundtrip__GPU_DATA_UINT__GPU_R8UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UINT__GPU_R8UI)
 
static void test_texture_roundtrip__GPU_DATA_UINT__GPU_R16UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UINT__GPU_R16UI)
 
static void test_texture_roundtrip__GPU_DATA_UINT__GPU_R32UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UINT__GPU_R32UI)
 
Round-trip testing GPU_DATA_UBYTE
static void test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8UI)
 
static void test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8)
 
static void test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8UI)
 
static void test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8)
 
static void test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UBYTE__GPU_R8UI)
 
static void test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UBYTE__GPU_R8)
 
static void test_texture_roundtrip__GPU_DATA_UBYTE__GPU_SRGB8_A8 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_UBYTE__GPU_SRGB8_A8)
 
Round-trip testing GPU_DATA_10_11_11_REV
static void test_texture_roundtrip__GPU_DATA_10_11_11_REV__GPU_R11F_G11F_B10F ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_10_11_11_REV__GPU_R11F_G11F_B10F)
 
Round-trip testing GPU_DATA_2_10_10_10_REV
static void test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2 ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2)
 
static void test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2UI ()
 
 GPU_TEST (texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2UI)
 

Variables

static constexpr int Size = 256
 
constexpr size_t SIZE = 128
 
constexpr size_t SIZE_IN_BYTES = SIZE * sizeof(int)
 
static constexpr int Size = 256
 

Function Documentation

◆ blend_test()

◆ do_push_constants_test()

◆ generate_test_data()

template<typename DataType >
static DataType * blender::gpu::tests::generate_test_data ( size_t data_len)
static

◆ gpu_shader_lib_test()

◆ GPU_TEST() [1/68]

blender::gpu::tests::GPU_TEST ( compute_indirect )

◆ GPU_TEST() [2/68]

blender::gpu::tests::GPU_TEST ( framebuffer_clear_color_multiple_attachments )

◆ GPU_TEST() [3/68]

blender::gpu::tests::GPU_TEST ( framebuffer_clear_color_single_attachment )

◆ GPU_TEST() [4/68]

blender::gpu::tests::GPU_TEST ( framebuffer_clear_depth )

◆ GPU_TEST() [5/68]

blender::gpu::tests::GPU_TEST ( framebuffer_clear_multiple_color_multiple_attachments )

◆ GPU_TEST() [6/68]

blender::gpu::tests::GPU_TEST ( framebuffer_scissor_test )

◆ GPU_TEST() [7/68]

blender::gpu::tests::GPU_TEST ( storage_buffer_clear )

◆ GPU_TEST() [8/68]

blender::gpu::tests::GPU_TEST ( storage_buffer_clear_zero )

◆ GPU_TEST() [9/68]

blender::gpu::tests::GPU_TEST ( storage_buffer_copy_from_vertex_buffer )

◆ GPU_TEST() [10/68]

blender::gpu::tests::GPU_TEST ( storage_buffer_create_update_read )

◆ GPU_TEST() [11/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_10_11_11_REV__GPU_R11F_G11F_B10F )

◆ GPU_TEST() [12/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2 )

◆ GPU_TEST() [13/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2UI )

◆ GPU_TEST() [14/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH_COMPONENT32F )

◆ GPU_TEST() [15/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_R11F_G11F_B10F )

◆ GPU_TEST() [16/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_R16 )

◆ GPU_TEST() [17/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_R16_SNORM )

◆ GPU_TEST() [18/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_R16F )

◆ GPU_TEST() [19/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_R32F )

◆ GPU_TEST() [20/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_R8 )

◆ GPU_TEST() [21/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_R8_SNORM )

◆ GPU_TEST() [22/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16 )

◆ GPU_TEST() [23/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16_SNORM )

◆ GPU_TEST() [24/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16F )

◆ GPU_TEST() [25/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RG32F )

◆ GPU_TEST() [26/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8 )

◆ GPU_TEST() [27/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8_SNORM )

◆ GPU_TEST() [28/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16 )

◆ GPU_TEST() [29/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16_SNORM )

◆ GPU_TEST() [30/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16F )

◆ GPU_TEST() [31/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA32F )

◆ GPU_TEST() [32/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8 )

◆ GPU_TEST() [33/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8_SNORM )

◆ GPU_TEST() [34/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_SRGB8_A8 )

◆ GPU_TEST() [35/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_R16F )

◆ GPU_TEST() [36/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RG16F )

◆ GPU_TEST() [37/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RGBA16F )

◆ GPU_TEST() [38/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_INT__GPU_R16I )

◆ GPU_TEST() [39/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_INT__GPU_R32I )

◆ GPU_TEST() [40/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_INT__GPU_R8I )

◆ GPU_TEST() [41/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_INT__GPU_RG32I )

◆ GPU_TEST() [42/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_INT__GPU_RG8I )

◆ GPU_TEST() [43/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_INT__GPU_RGBA16I )

◆ GPU_TEST() [44/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_INT__GPU_RGBA32I )

◆ GPU_TEST() [45/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_INT__GPU_RGBA8I )

◆ GPU_TEST() [46/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UBYTE__GPU_R8 )

◆ GPU_TEST() [47/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UBYTE__GPU_R8UI )

◆ GPU_TEST() [48/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8 )

◆ GPU_TEST() [49/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8UI )

◆ GPU_TEST() [50/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8 )

◆ GPU_TEST() [51/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8UI )

◆ GPU_TEST() [52/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UBYTE__GPU_SRGB8_A8 )

◆ GPU_TEST() [53/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UINT__GPU_R16UI )

◆ GPU_TEST() [54/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UINT__GPU_R32UI )

◆ GPU_TEST() [55/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UINT__GPU_R8UI )

◆ GPU_TEST() [56/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UINT__GPU_RG16UI )

◆ GPU_TEST() [57/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UINT__GPU_RG32UI )

◆ GPU_TEST() [58/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UINT__GPU_RG8UI )

◆ GPU_TEST() [59/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UINT__GPU_RGBA16UI )

◆ GPU_TEST() [60/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UINT__GPU_RGBA32UI )

◆ GPU_TEST() [61/68]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_UINT__GPU_RGBA8UI )

◆ GPU_TEST() [62/68]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_F32__GPU_FETCH_FLOAT )

◆ GPU_TEST() [63/68]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT )

◆ GPU_TEST() [64/68]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_I32__GPU_FETCH_INT_TO_FLOAT )

◆ GPU_TEST() [65/68]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT )

◆ GPU_TEST() [66/68]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT )

◆ GPU_TEST() [67/68]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_U32__GPU_FETCH_INT_TO_FLOAT )

◆ GPU_TEST() [68/68]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT )

◆ print_test_data()

◆ print_test_line()

static StringRef blender::gpu::tests::print_test_line ( StringRefNull test_src,
int64_t test_line )
static

◆ TEST() [1/8]

blender::gpu::tests::TEST ( VulkanDataConversion ,
clamp_negative_to_zero  )

◆ TEST() [2/8]

blender::gpu::tests::TEST ( VulkanDataConversion ,
infinity_upper  )

◆ TEST() [3/8]

blender::gpu::tests::TEST ( VulkanDataConversion ,
texture_rgb16f_as_floats_to_rgba16f  )

◆ TEST() [4/8]

blender::gpu::tests::TEST ( VulkanDataConversion ,
texture_rgb32f_as_floats_to_rgba32f  )

◆ TEST() [5/8]

◆ TEST() [6/8]

◆ TEST() [7/8]

◆ TEST() [8/8]

◆ test_blend_additive()

static void blender::gpu::tests::test_blend_additive ( )
static

Definition at line 78 of file state_blend_test.cc.

References blend_test().

◆ test_blend_additive_premult()

static void blender::gpu::tests::test_blend_additive_premult ( )
static

Definition at line 86 of file state_blend_test.cc.

References blend_test().

◆ test_blend_alpha()

static void blender::gpu::tests::test_blend_alpha ( )
static

Definition at line 62 of file state_blend_test.cc.

References blend_test().

◆ test_blend_alpha_premult()

static void blender::gpu::tests::test_blend_alpha_premult ( )
static

Definition at line 70 of file state_blend_test.cc.

References blend_test().

◆ test_blend_background()

static void blender::gpu::tests::test_blend_background ( )
static

Definition at line 126 of file state_blend_test.cc.

References blend_test().

◆ test_blend_invert()

static void blender::gpu::tests::test_blend_invert ( )
static

Definition at line 110 of file state_blend_test.cc.

References blend_test().

◆ test_blend_multiply()

static void blender::gpu::tests::test_blend_multiply ( )
static

Definition at line 94 of file state_blend_test.cc.

References blend_test().

◆ test_blend_none()

static void blender::gpu::tests::test_blend_none ( )
static

Definition at line 54 of file state_blend_test.cc.

References blend_test().

◆ test_blend_oit()

static void blender::gpu::tests::test_blend_oit ( )
static

Definition at line 118 of file state_blend_test.cc.

References blend_test().

◆ test_blend_subtract()

static void blender::gpu::tests::test_blend_subtract ( )
static

Definition at line 102 of file state_blend_test.cc.

References blend_test().

◆ test_buffer_texture()

◆ test_compute_direct()

◆ test_compute_indirect()

◆ test_data()

◆ test_eevee_lib()

static void blender::gpu::tests::test_eevee_lib ( )
static

Definition at line 415 of file shader_test.cc.

References gpu_shader_lib_test().

◆ test_framebuffer_clear_color_multiple_attachments()

◆ test_framebuffer_clear_color_single_attachment()

◆ test_framebuffer_clear_depth()

◆ test_framebuffer_clear_multiple_color_multiple_attachments()

◆ test_framebuffer_cube()

◆ test_framebuffer_multi_viewport()

◆ test_framebuffer_scissor_test()

◆ test_framebuffer_subpass_input()

◆ test_immediate_one_plane()

◆ test_immediate_two_planes()

static void blender::gpu::tests::test_immediate_two_planes ( )
static

Draws two planes with two different colors.

  • Tests that both planes are stored in the same buffer (depends on backend).
  • Test that data of the first plane isn't overwritten by the second plane. (push constants, buffer, bind points etc.)

Definition at line 65 of file immediate_test.cc.

References BLI_assert, GPU_COMP_F32, GPU_DATA_FLOAT, GPU_FETCH_FLOAT, GPU_flush(), GPU_offscreen_bind(), GPU_offscreen_create(), GPU_offscreen_free(), GPU_offscreen_read_color(), GPU_offscreen_unbind(), GPU_PRIM_TRI_STRIP, GPU_RGBA16F, GPU_SHADER_3D_UNIFORM_COLOR, GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUniformColor4fv(), immVertex3f(), immVertexFormat(), pos, and Size.

◆ test_index_buffer_subbuilders()

static void blender::gpu::tests::test_index_buffer_subbuilders ( )
static

◆ test_math_lib()

static void blender::gpu::tests::test_math_lib ( )
static

Definition at line 409 of file shader_test.cc.

References gpu_shader_lib_test().

◆ test_push_constants()

static void blender::gpu::tests::test_push_constants ( )
static

Definition at line 159 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_128bytes()

static void blender::gpu::tests::test_push_constants_128bytes ( )
static

Definition at line 165 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_256bytes()

static void blender::gpu::tests::test_push_constants_256bytes ( )
static

Definition at line 171 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_512bytes()

static void blender::gpu::tests::test_push_constants_512bytes ( )
static

Definition at line 177 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_8192bytes()

static void blender::gpu::tests::test_push_constants_8192bytes ( )
static

Definition at line 183 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_multiple()

static void blender::gpu::tests::test_push_constants_multiple ( )
static

Definition at line 190 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_multiple_128bytes()

static void blender::gpu::tests::test_push_constants_multiple_128bytes ( )
static

Definition at line 196 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_multiple_256bytes()

static void blender::gpu::tests::test_push_constants_multiple_256bytes ( )
static

Definition at line 202 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_multiple_512bytes()

static void blender::gpu::tests::test_push_constants_multiple_512bytes ( )
static

Definition at line 208 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_multiple_8192bytes()

static void blender::gpu::tests::test_push_constants_multiple_8192bytes ( )
static

Definition at line 214 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_shader_compute_1d()

◆ test_shader_compute_2d()

◆ test_shader_compute_ibo()

◆ test_shader_compute_ssbo()

◆ test_shader_compute_vbo()

◆ test_shader_ssbo_binding()

static void blender::gpu::tests::test_shader_ssbo_binding ( )
static

◆ test_specialization_constants_compute()

static void blender::gpu::tests::test_specialization_constants_compute ( )
static

Definition at line 130 of file specialization_constants_test.cc.

◆ test_specialization_constants_graphic()

static void blender::gpu::tests::test_specialization_constants_graphic ( )
static

Definition at line 136 of file specialization_constants_test.cc.

◆ test_static_shaders()

static void blender::gpu::tests::test_static_shaders ( )
static

◆ test_storage_buffer_clear()

◆ test_storage_buffer_clear_zero()

◆ test_storage_buffer_copy_from_vertex_buffer()

◆ test_storage_buffer_create_update_read()

◆ test_texture_1d()

◆ test_texture_1d_array()

◆ test_texture_1d_array_upload()

◆ test_texture_2d_array()

◆ test_texture_2d_array_upload()

◆ test_texture_3d()

◆ test_texture_copy()

◆ test_texture_cube()

◆ test_texture_cube_array()

◆ test_texture_read()

◆ test_texture_roundtrip__GPU_DATA_10_11_11_REV__GPU_R11F_G11F_B10F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_10_11_11_REV__GPU_R11F_G11F_B10F ( )
static

Definition at line 987 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2 ( )
static

Definition at line 999 of file texture_test.cc.

References texture_create_upload_read_pixel().

◆ test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2UI ( )
static

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH_COMPONENT32F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH_COMPONENT32F ( )
static

Definition at line 648 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R11F_G11F_B10F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R11F_G11F_B10F ( )
static

Definition at line 509 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16 ( )
static

Definition at line 483 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16_SNORM()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16_SNORM ( )
static

Definition at line 588 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16F ( )
static

Definition at line 477 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R32F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R32F ( )
static

Definition at line 489 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8 ( )
static

Definition at line 471 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8_SNORM()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8_SNORM ( )
static

Definition at line 582 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16 ( )
static

Definition at line 459 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16_SNORM()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16_SNORM ( )
static

Definition at line 576 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16F ( )
static

Definition at line 453 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG32F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG32F ( )
static

Definition at line 465 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8 ( )
static

Definition at line 447 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8_SNORM()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8_SNORM ( )
static

Definition at line 570 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16 ( )
static

Definition at line 435 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16_SNORM()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16_SNORM ( )
static

Definition at line 527 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16F ( )
static

Definition at line 429 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA32F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA32F ( )
static

Definition at line 441 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8 ( )
static

Definition at line 423 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8_SNORM()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8_SNORM ( )
static

Definition at line 521 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_SRGB8_A8()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_FLOAT__GPU_SRGB8_A8 ( )
static

Definition at line 515 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_R16F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_R16F ( )
static

Definition at line 686 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RG16F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RG16F ( )
static

Definition at line 680 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RGBA16F()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RGBA16F ( )
static

Definition at line 674 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_R16I()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_INT__GPU_R16I ( )
static

Definition at line 750 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_R32I()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_INT__GPU_R32I ( )
static

Definition at line 756 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_R8I()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_INT__GPU_R8I ( )
static

Definition at line 744 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RG32I()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_INT__GPU_RG32I ( )
static

Definition at line 738 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RG8I()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_INT__GPU_RG8I ( )
static

Definition at line 724 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA16I()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA16I ( )
static

Definition at line 712 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA32I()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA32I ( )
static

Definition at line 718 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA8I()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA8I ( )
static

Definition at line 706 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8 ( )
static

Definition at line 930 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8UI ( )
static

Definition at line 924 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8 ( )
static

Definition at line 918 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8UI ( )
static

Definition at line 912 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8 ( )
static

Definition at line 906 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8UI ( )
static

Definition at line 900 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_SRGB8_A8()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UBYTE__GPU_SRGB8_A8 ( )
static

Definition at line 936 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_R16UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UINT__GPU_R16UI ( )
static

Definition at line 830 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_R32UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UINT__GPU_R32UI ( )
static

Definition at line 836 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_R8UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UINT__GPU_R8UI ( )
static

Definition at line 824 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RG16UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UINT__GPU_RG16UI ( )
static

Definition at line 812 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RG32UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UINT__GPU_RG32UI ( )
static

Definition at line 818 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RG8UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UINT__GPU_RG8UI ( )
static

Definition at line 806 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA16UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA16UI ( )
static

Definition at line 794 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA32UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA32UI ( )
static

Definition at line 800 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA8UI()

static void blender::gpu::tests::test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA8UI ( )
static

Definition at line 788 of file texture_test.cc.

References texture_create_upload_read().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_F32__GPU_FETCH_FLOAT()

static void blender::gpu::tests::test_vertex_buffer_fetch_mode__GPU_COMP_F32__GPU_FETCH_FLOAT ( )
static

Definition at line 115 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT()

static void blender::gpu::tests::test_vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT ( )
static

Definition at line 91 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_I32__GPU_FETCH_INT_TO_FLOAT()

static void blender::gpu::tests::test_vertex_buffer_fetch_mode__GPU_COMP_I32__GPU_FETCH_INT_TO_FLOAT ( )
static

Definition at line 103 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT()

static void blender::gpu::tests::test_vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT ( )
static

Definition at line 79 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT()

static void blender::gpu::tests::test_vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT ( )
static

Definition at line 97 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_U32__GPU_FETCH_INT_TO_FLOAT()

static void blender::gpu::tests::test_vertex_buffer_fetch_mode__GPU_COMP_U32__GPU_FETCH_INT_TO_FLOAT ( )
static

Definition at line 109 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT()

static void blender::gpu::tests::test_vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT ( )
static

Definition at line 85 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ texture_create_upload_read()

template<eGPUTextureFormat DeviceFormat, eGPUDataFormat HostFormat, typename DataType , int Size = 16>
static void blender::gpu::tests::texture_create_upload_read ( )
static

Definition at line 328 of file texture_test.cc.

References EXPECT_EQ(), generate_test_data(), GPU_DATA_10_11_11_REV, GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_texture_update(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), STRINGIFY, blender::gpu::to_bytesize(), blender::gpu::to_component_len(), and blender::gpu::validate_data_format().

Referenced by test_texture_roundtrip__GPU_DATA_10_11_11_REV__GPU_R11F_G11F_B10F(), test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_R16F(), test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RG16F(), test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RGBA16F(), test_texture_roundtrip__GPU_DATA_INT__GPU_R16I(), test_texture_roundtrip__GPU_DATA_INT__GPU_R32I(), test_texture_roundtrip__GPU_DATA_INT__GPU_R8I(), test_texture_roundtrip__GPU_DATA_INT__GPU_RG32I(), test_texture_roundtrip__GPU_DATA_INT__GPU_RG8I(), test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA16I(), test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA32I(), test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA8I(), test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8(), test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8UI(), test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8(), test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8UI(), test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8(), test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8UI(), test_texture_roundtrip__GPU_DATA_UBYTE__GPU_SRGB8_A8(), test_texture_roundtrip__GPU_DATA_UINT__GPU_R16UI(), test_texture_roundtrip__GPU_DATA_UINT__GPU_R32UI(), test_texture_roundtrip__GPU_DATA_UINT__GPU_R8UI(), test_texture_roundtrip__GPU_DATA_UINT__GPU_RG16UI(), test_texture_roundtrip__GPU_DATA_UINT__GPU_RG32UI(), test_texture_roundtrip__GPU_DATA_UINT__GPU_RG8UI(), test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA16UI(), test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA32UI(), and test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA8UI().

◆ texture_create_upload_read_pixel()

◆ texture_create_upload_read_with_bias()

template<eGPUTextureFormat DeviceFormat, eGPUDataFormat HostFormat, int Size = 16>
static void blender::gpu::tests::texture_create_upload_read_with_bias ( float max_allowed_bias)
static

Definition at line 362 of file texture_test.cc.

References abs(), generate_test_data(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_texture_update(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, max_ff(), MEM_freeN(), STRINGIFY, blender::gpu::to_component_len(), and blender::gpu::validate_data_format().

Referenced by test_texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH_COMPONENT32F(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R11F_G11F_B10F(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16_SNORM(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16F(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R32F(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8_SNORM(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16_SNORM(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16F(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG32F(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8_SNORM(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16_SNORM(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16F(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA32F(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8(), test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8_SNORM(), and test_texture_roundtrip__GPU_DATA_FLOAT__GPU_SRGB8_A8().

◆ vertex_buffer_fetch_mode()

Variable Documentation

◆ SIZE

◆ Size [1/2]

int blender::gpu::tests::Size = 256
staticconstexpr

◆ Size [2/2]

int blender::gpu::tests::Size = 256
staticconstexpr

Definition at line 21 of file vertex_buffer_test.cc.

◆ SIZE_IN_BYTES

size_t blender::gpu::tests::SIZE_IN_BYTES = SIZE * sizeof(int)
constexpr