Blender V5.0
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_preprocess_utilities ()
 GPU_TEST (preprocess_utilities)
static std::string process_test_string (std::string str, std::string &first_error, shader::metadata::Source *r_metadata=nullptr, shader::Preprocessor::SourceLanguage language=shader::Preprocessor::SourceLanguage::BLENDER_GLSL)
static void test_preprocess_include ()
 GPU_TEST (preprocess_include)
static void test_preprocess_unroll ()
 GPU_TEST (preprocess_unroll)
static void test_preprocess_template ()
 GPU_TEST (preprocess_template)
static void test_preprocess_template_struct ()
 GPU_TEST (preprocess_template_struct)
static void test_preprocess_reference ()
 GPU_TEST (preprocess_reference)
static void test_preprocess_default_arguments ()
 GPU_TEST (preprocess_default_arguments)
static void test_preprocess_namespace ()
 GPU_TEST (preprocess_namespace)
static void test_preprocess_swizzle ()
 GPU_TEST (preprocess_swizzle)
static void test_preprocess_enum ()
 GPU_TEST (preprocess_enum)
static void test_preprocess_stage_attribute ()
 GPU_TEST (preprocess_stage_attribute)
static void test_preprocess_resource_guard ()
 GPU_TEST (preprocess_resource_guard)
static void test_preprocess_empty_struct ()
 GPU_TEST (preprocess_empty_struct)
static void test_preprocess_struct_methods ()
 GPU_TEST (preprocess_struct_methods)
static void test_preprocess_parser ()
 GPU_TEST (preprocess_parser)
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<GPUBlend 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_clear_byte_pattern ()
 GPU_TEST (storage_buffer_clear_byte_pattern)
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<TextureFormat DeviceFormat, eGPUDataFormat HostFormat, typename DataType, int Size = 16>
static void texture_create_upload_read ()
template<TextureFormat DeviceFormat, eGPUDataFormat HostFormat, int Size = 16>
static void texture_create_upload_read_with_bias (float max_allowed_bias)
template<TextureFormat DeviceFormat, eGPUDataFormat HostFormat, int Size = 16>
static void texture_create_upload_read_pixel ()
template<VertAttrType attr_type, 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_UNIT ()
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT_UNIT)
static void test_vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT_UNIT ()
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT_UNIT)
static void test_vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT_UNIT ()
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT_UNIT)
static void test_vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT_UNIT ()
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT_UNIT)
static void test_vertex_buffer_fetch_mode__GPU_COMP_I10__GPU_FETCH_INT_TO_FLOAT_UNIT ()
 GPU_TEST (vertex_buffer_fetch_mode__GPU_COMP_I10__GPU_FETCH_INT_TO_FLOAT_UNIT)
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, 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)
static void test_texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH32F_STENCIL8 ()
 GPU_TEST (texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH32F_STENCIL8)
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)
Unpack row length
static void test_texture_update_sub_no_unpack_row_length ()
 GPU_TEST (texture_update_sub_no_unpack_row_length)
static void test_texture_update_sub_unpack_row_length ()
 GPU_TEST (texture_update_sub_unpack_row_length)
static void test_texture_pool ()
 GPU_TEST (texture_pool)

Variables

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

Function Documentation

◆ blend_test()

◆ do_push_constants_test()

◆ generate_test_data()

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

◆ gpu_shader_lib_test()

◆ GPU_TEST() [1/87]

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

◆ GPU_TEST() [2/87]

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

◆ GPU_TEST() [3/87]

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

◆ GPU_TEST() [4/87]

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

◆ GPU_TEST() [5/87]

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

◆ GPU_TEST() [6/87]

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

◆ GPU_TEST() [7/87]

blender::gpu::tests::GPU_TEST ( preprocess_default_arguments )

References error(), input, and output.

◆ GPU_TEST() [8/87]

blender::gpu::tests::GPU_TEST ( preprocess_empty_struct )

References error().

◆ GPU_TEST() [9/87]

blender::gpu::tests::GPU_TEST ( preprocess_enum )

References input.

◆ GPU_TEST() [10/87]

blender::gpu::tests::GPU_TEST ( preprocess_include )

◆ GPU_TEST() [11/87]

blender::gpu::tests::GPU_TEST ( preprocess_namespace )

References error(), input, and output.

◆ GPU_TEST() [12/87]

blender::gpu::tests::GPU_TEST ( preprocess_parser )

References error(), input, and output.

◆ GPU_TEST() [13/87]

blender::gpu::tests::GPU_TEST ( preprocess_reference )

◆ GPU_TEST() [14/87]

blender::gpu::tests::GPU_TEST ( preprocess_resource_guard )

References input.

◆ GPU_TEST() [15/87]

blender::gpu::tests::GPU_TEST ( preprocess_stage_attribute )

◆ GPU_TEST() [16/87]

blender::gpu::tests::GPU_TEST ( preprocess_struct_methods )

◆ GPU_TEST() [17/87]

blender::gpu::tests::GPU_TEST ( preprocess_swizzle )

References error().

◆ GPU_TEST() [18/87]

blender::gpu::tests::GPU_TEST ( preprocess_template )

◆ GPU_TEST() [19/87]

blender::gpu::tests::GPU_TEST ( preprocess_template_struct )

◆ GPU_TEST() [20/87]

blender::gpu::tests::GPU_TEST ( preprocess_unroll )

◆ GPU_TEST() [21/87]

blender::gpu::tests::GPU_TEST ( preprocess_utilities )

◆ GPU_TEST() [22/87]

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

◆ GPU_TEST() [23/87]

blender::gpu::tests::GPU_TEST ( storage_buffer_clear_byte_pattern )

◆ GPU_TEST() [24/87]

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

◆ GPU_TEST() [25/87]

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

◆ GPU_TEST() [26/87]

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

◆ GPU_TEST() [27/87]

blender::gpu::tests::GPU_TEST ( texture_pool )

◆ GPU_TEST() [28/87]

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

◆ GPU_TEST() [29/87]

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

◆ GPU_TEST() [30/87]

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

◆ GPU_TEST() [31/87]

blender::gpu::tests::GPU_TEST ( texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH32F_STENCIL8 )

◆ GPU_TEST() [32/87]

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

◆ GPU_TEST() [33/87]

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

◆ GPU_TEST() [34/87]

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

◆ GPU_TEST() [35/87]

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

◆ GPU_TEST() [36/87]

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

◆ GPU_TEST() [37/87]

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

◆ GPU_TEST() [38/87]

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

◆ GPU_TEST() [39/87]

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

◆ GPU_TEST() [40/87]

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

◆ GPU_TEST() [41/87]

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

◆ GPU_TEST() [42/87]

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

◆ GPU_TEST() [43/87]

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

◆ GPU_TEST() [44/87]

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

◆ GPU_TEST() [45/87]

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

◆ GPU_TEST() [46/87]

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

◆ GPU_TEST() [47/87]

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

◆ GPU_TEST() [48/87]

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

◆ GPU_TEST() [49/87]

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

◆ GPU_TEST() [50/87]

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

◆ GPU_TEST() [51/87]

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

◆ GPU_TEST() [52/87]

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

◆ GPU_TEST() [53/87]

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

◆ GPU_TEST() [54/87]

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

◆ GPU_TEST() [55/87]

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

◆ GPU_TEST() [56/87]

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

◆ GPU_TEST() [57/87]

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

◆ GPU_TEST() [58/87]

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

◆ GPU_TEST() [59/87]

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

◆ GPU_TEST() [60/87]

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

◆ GPU_TEST() [61/87]

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

◆ GPU_TEST() [62/87]

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

◆ GPU_TEST() [63/87]

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

◆ GPU_TEST() [64/87]

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

◆ GPU_TEST() [65/87]

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

◆ GPU_TEST() [66/87]

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

◆ GPU_TEST() [67/87]

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

◆ GPU_TEST() [68/87]

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

◆ GPU_TEST() [69/87]

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

◆ GPU_TEST() [70/87]

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

◆ GPU_TEST() [71/87]

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

◆ GPU_TEST() [72/87]

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

◆ GPU_TEST() [73/87]

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

◆ GPU_TEST() [74/87]

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

◆ GPU_TEST() [75/87]

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

◆ GPU_TEST() [76/87]

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

◆ GPU_TEST() [77/87]

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

◆ GPU_TEST() [78/87]

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

◆ GPU_TEST() [79/87]

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

◆ GPU_TEST() [80/87]

blender::gpu::tests::GPU_TEST ( texture_update_sub_no_unpack_row_length )

◆ GPU_TEST() [81/87]

blender::gpu::tests::GPU_TEST ( texture_update_sub_unpack_row_length )

◆ GPU_TEST() [82/87]

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

◆ GPU_TEST() [83/87]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_I10__GPU_FETCH_INT_TO_FLOAT_UNIT )

◆ GPU_TEST() [84/87]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT_UNIT )

◆ GPU_TEST() [85/87]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT_UNIT )

◆ GPU_TEST() [86/87]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT_UNIT )

◆ GPU_TEST() [87/87]

blender::gpu::tests::GPU_TEST ( vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT_UNIT )

◆ print_test_data()

◆ print_test_line()

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

◆ process_test_string()

std::string blender::gpu::tests::process_test_string ( std::string str,
std::string & first_error,
shader::metadata::Source * r_metadata = nullptr,
shader::Preprocessor::SourceLanguage language = shader::Preprocessor::SourceLanguage::BLENDER_GLSL )
static

◆ TEST() [1/4]

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

◆ TEST() [2/4]

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

◆ TEST() [3/4]

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

◆ TEST() [4/4]

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

◆ test_blend_additive()

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

Definition at line 82 of file state_blend_test.cc.

References blend_test(), and test_blend_additive().

Referenced by test_blend_additive().

◆ test_blend_additive_premult()

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

Definition at line 90 of file state_blend_test.cc.

References blend_test(), and test_blend_additive_premult().

Referenced by test_blend_additive_premult().

◆ test_blend_alpha()

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

Definition at line 66 of file state_blend_test.cc.

References blend_test(), and test_blend_alpha().

Referenced by test_blend_alpha().

◆ test_blend_alpha_premult()

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

Definition at line 74 of file state_blend_test.cc.

References blend_test(), and test_blend_alpha_premult().

Referenced by test_blend_alpha_premult().

◆ test_blend_background()

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

Definition at line 130 of file state_blend_test.cc.

References blend_test(), and test_blend_background().

Referenced by test_blend_background().

◆ test_blend_invert()

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

Definition at line 114 of file state_blend_test.cc.

References blend_test(), and test_blend_invert().

Referenced by test_blend_invert().

◆ test_blend_multiply()

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

Definition at line 98 of file state_blend_test.cc.

References blend_test(), and test_blend_multiply().

Referenced by test_blend_multiply().

◆ test_blend_none()

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

Definition at line 58 of file state_blend_test.cc.

References blend_test().

◆ test_blend_oit()

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

Definition at line 122 of file state_blend_test.cc.

References blend_test(), and test_blend_oit().

Referenced by test_blend_oit().

◆ test_blend_subtract()

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

Definition at line 106 of file state_blend_test.cc.

References blend_test(), and test_blend_subtract().

Referenced by test_blend_subtract().

◆ test_buffer_texture()

◆ test_compute_direct()

◆ test_compute_indirect()

◆ test_data()

Vector< int32_t > blender::gpu::tests::test_data ( )
static

◆ test_eevee_lib()

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

Definition at line 422 of file shader_test.cc.

References gpu_shader_lib_test(), and test_eevee_lib().

Referenced by test_eevee_lib().

◆ 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()

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

◆ test_index_buffer_subbuilders()

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

◆ test_math_lib()

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

Definition at line 416 of file shader_test.cc.

References gpu_shader_lib_test().

◆ test_preprocess_default_arguments()

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

Definition at line 332 of file shader_preprocess_test.cc.

References error(), input, and output.

◆ test_preprocess_empty_struct()

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

Definition at line 600 of file shader_preprocess_test.cc.

◆ test_preprocess_enum()

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

Definition at line 495 of file shader_preprocess_test.cc.

◆ test_preprocess_include()

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

Definition at line 84 of file shader_preprocess_test.cc.

References input.

◆ test_preprocess_namespace()

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

Definition at line 372 of file shader_preprocess_test.cc.

◆ test_preprocess_parser()

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

Definition at line 632 of file shader_preprocess_test.cc.

References error(), input, and output.

◆ test_preprocess_reference()

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

Definition at line 259 of file shader_preprocess_test.cc.

References error(), input, and output.

◆ test_preprocess_resource_guard()

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

Definition at line 551 of file shader_preprocess_test.cc.

References error(), input, and output.

◆ test_preprocess_stage_attribute()

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

Definition at line 535 of file shader_preprocess_test.cc.

References error(), input, and output.

◆ test_preprocess_struct_methods()

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

Definition at line 616 of file shader_preprocess_test.cc.

References error(), input, and output.

◆ test_preprocess_swizzle()

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

Definition at line 479 of file shader_preprocess_test.cc.

References error().

◆ test_preprocess_template()

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

Definition at line 175 of file shader_preprocess_test.cc.

References error(), input, and output.

◆ test_preprocess_template_struct()

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

Definition at line 227 of file shader_preprocess_test.cc.

References error(), input, and output.

◆ test_preprocess_unroll()

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

Definition at line 101 of file shader_preprocess_test.cc.

References error(), input, and output.

◆ test_preprocess_utilities()

◆ test_push_constants()

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

Definition at line 160 of file push_constants_test.cc.

References do_push_constants_test().

◆ test_push_constants_128bytes()

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

◆ test_push_constants_256bytes()

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

◆ test_push_constants_512bytes()

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

◆ test_push_constants_8192bytes()

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

◆ test_push_constants_multiple()

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

◆ test_push_constants_multiple_128bytes()

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

◆ test_push_constants_multiple_256bytes()

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

◆ test_push_constants_multiple_512bytes()

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

◆ test_push_constants_multiple_8192bytes()

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

◆ test_shader_compute_1d()

◆ test_shader_compute_2d()

◆ test_shader_compute_ibo()

◆ test_shader_compute_ssbo()

◆ test_shader_compute_vbo()

◆ test_shader_ssbo_binding()

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

◆ test_specialization_constants_compute()

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

Definition at line 123 of file specialization_constants_test.cc.

◆ test_specialization_constants_graphic()

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

◆ test_static_shaders()

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

◆ test_storage_buffer_clear()

◆ test_storage_buffer_clear_byte_pattern()

◆ 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_pool()

◆ test_texture_read()

◆ test_texture_roundtrip__GPU_DATA_10_11_11_REV__GPU_R11F_G11F_B10F()

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

Definition at line 980 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2()

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

Definition at line 992 of file texture_test.cc.

References texture_create_upload_read_pixel().

◆ test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2UI()

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_DEPTH32F_STENCIL8()

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

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH_COMPONENT32F()

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

Definition at line 652 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R11F_G11F_B10F()

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

Definition at line 513 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16()

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

Definition at line 487 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16_SNORM()

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

Definition at line 592 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R16F()

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

Definition at line 481 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R32F()

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

Definition at line 493 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8()

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

Definition at line 475 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_R8_SNORM()

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

Definition at line 586 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16()

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

Definition at line 463 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16_SNORM()

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

Definition at line 580 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16F()

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

Definition at line 457 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG32F()

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

Definition at line 469 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8()

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

Definition at line 451 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8_SNORM()

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

Definition at line 574 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16()

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

Definition at line 439 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16_SNORM()

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

Definition at line 531 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16F()

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

Definition at line 433 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA32F()

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

Definition at line 445 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8()

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

Definition at line 427 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8_SNORM()

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

Definition at line 525 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_FLOAT__GPU_SRGB8_A8()

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

Definition at line 519 of file texture_test.cc.

References texture_create_upload_read_with_bias().

◆ test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_R16F()

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

Definition at line 694 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RG16F()

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

Definition at line 688 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RGBA16F()

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

Definition at line 682 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_R16I()

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

Definition at line 758 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_R32I()

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

Definition at line 764 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_R8I()

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

Definition at line 752 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RG32I()

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

Definition at line 746 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RG8I()

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

Definition at line 732 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA16I()

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

Definition at line 720 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA32I()

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

Definition at line 726 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_INT__GPU_RGBA8I()

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

Definition at line 714 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8()

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

Definition at line 926 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_R8UI()

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

Definition at line 920 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8()

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

Definition at line 914 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8UI()

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

Definition at line 908 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8()

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

Definition at line 902 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8UI()

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

Definition at line 896 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UBYTE__GPU_SRGB8_A8()

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

Definition at line 932 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_R16UI()

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

Definition at line 838 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_R32UI()

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

Definition at line 844 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_R8UI()

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

Definition at line 832 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RG16UI()

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

Definition at line 820 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RG32UI()

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

Definition at line 826 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RG8UI()

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

Definition at line 814 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA16UI()

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

Definition at line 802 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA32UI()

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

Definition at line 808 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_roundtrip__GPU_DATA_UINT__GPU_RGBA8UI()

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

Definition at line 796 of file texture_test.cc.

References texture_create_upload_read().

◆ test_texture_update_sub_no_unpack_row_length()

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

◆ test_texture_update_sub_unpack_row_length()

◆ test_vertex_buffer_fetch_mode__GPU_COMP_F32__GPU_FETCH_FLOAT()

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

Definition at line 135 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_I10__GPU_FETCH_INT_TO_FLOAT_UNIT()

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

Definition at line 128 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT_UNIT()

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

Definition at line 114 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT_UNIT()

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

Definition at line 102 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT_UNIT()

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

Definition at line 121 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ test_vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT_UNIT()

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

Definition at line 108 of file vertex_buffer_test.cc.

References vertex_buffer_fetch_mode().

◆ texture_create_upload_read()

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

Definition at line 332 of file texture_test.cc.

References data, 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, i, MEM_freeN(), Size, STRINGIFY, texture(), 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<TextureFormat DeviceFormat, eGPUDataFormat HostFormat, int Size = 16>
void blender::gpu::tests::texture_create_upload_read_with_bias ( float max_allowed_bias)
static

Definition at line 366 of file texture_test.cc.

References abs, data, 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, i, max_ff(), MEM_freeN(), Size, STRINGIFY, texture(), blender::gpu::to_component_len(), and blender::gpu::validate_data_format().

Referenced by test_texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH32F_STENCIL8(), 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]

◆ Size [2/2]

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

Definition at line 22 of file vertex_buffer_test.cc.

◆ SIZE_IN_BYTES