|
Blender V5.0
|
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_t > | test_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 DataType * | generate_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 |
| void blender::gpu::tests::blend_test | ( | float4 | source_a, |
| float4 | source_b, | ||
| float4 | expected_result ) |
Definition at line 22 of file state_blend_test.cc.
References batch, BLI_assert, EXPECT_EQ(), GPU_BARRIER_TEXTURE_FETCH, GPU_batch_draw(), GPU_batch_preset_quad(), GPU_batch_program_set_builtin(), GPU_batch_uniform_4fv, GPU_blend(), GPU_BLEND_NONE, GPU_DATA_FLOAT, GPU_flush(), GPU_memory_barrier(), GPU_offscreen_bind(), GPU_offscreen_color_texture(), GPU_offscreen_create(), GPU_offscreen_free(), GPU_offscreen_read_color(), GPU_offscreen_unbind(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_texture_clear(), GPU_TEXTURE_USAGE_ATTACHMENT, and GPU_TEXTURE_USAGE_HOST_READ.
Referenced by test_blend_additive(), test_blend_additive_premult(), test_blend_alpha(), test_blend_alpha_premult(), test_blend_background(), test_blend_invert(), test_blend_multiply(), test_blend_none(), test_blend_oit(), and test_blend_subtract().
|
static |
Test the given info when doing a single call.
Definition at line 135 of file push_constants_test.cc.
References blender::gpu::tests::CallData::generate_test_data(), blender::gpu::tests::CallData::init_ssbo(), blender::gpu::tests::CallData::read_back(), SIZE, and blender::gpu::tests::CallData::validate().
Referenced by test_push_constants(), test_push_constants_128bytes(), test_push_constants_256bytes(), test_push_constants_512bytes(), test_push_constants_8192bytes(), test_push_constants_multiple(), test_push_constants_multiple_128bytes(), test_push_constants_multiple_256bytes(), test_push_constants_multiple_512bytes(), and test_push_constants_multiple_8192bytes().
|
static |
Definition at line 317 of file texture_test.cc.
References data, generate_test_data(), i, and MEM_malloc_arrayN().
Referenced by generate_test_data(), texture_create_upload_read(), texture_create_upload_read_pixel(), and texture_create_upload_read_with_bias().
|
static |
Definition at line 342 of file shader_test.cc.
References blender::gpu::shader::ShaderCreateInfo::additional_info(), batch, BLI_assert_unreachable, divide_ceil_u(), ELEM, fb(), blender::StringRefBase::find(), blender::gpu::shader::ShaderCreateInfo::fragment_source(), GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, GPU_batch_create_procedural(), GPU_batch_discard(), GPU_batch_draw(), GPU_batch_set_shader(), GPU_DATA_UINT, GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_create(), GPU_framebuffer_ensure_config, GPU_framebuffer_free(), GPU_PRIM_TRIS, GPU_render_begin(), GPU_render_end(), GPU_shader_create_from_info(), blender::gpu::shader::gpu_shader_dependency_get_source(), GPU_shader_free(), GPU_shader_unbind(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), pos, print_test_data(), print_test_line(), test_data(), TEST_STATUS_FAILED, TEST_STATUS_NONE, and TEST_STATUS_PASSED.
Referenced by test_eevee_lib(), and test_math_lib().
| blender::gpu::tests::GPU_TEST | ( | compute_indirect | ) |
| blender::gpu::tests::GPU_TEST | ( | framebuffer_clear_color_multiple_attachments | ) |
| blender::gpu::tests::GPU_TEST | ( | framebuffer_clear_color_single_attachment | ) |
| blender::gpu::tests::GPU_TEST | ( | framebuffer_clear_depth | ) |
| blender::gpu::tests::GPU_TEST | ( | framebuffer_clear_multiple_color_multiple_attachments | ) |
| blender::gpu::tests::GPU_TEST | ( | framebuffer_scissor_test | ) |
| blender::gpu::tests::GPU_TEST | ( | preprocess_default_arguments | ) |
| blender::gpu::tests::GPU_TEST | ( | preprocess_empty_struct | ) |
References error().
| blender::gpu::tests::GPU_TEST | ( | preprocess_enum | ) |
References input.
| blender::gpu::tests::GPU_TEST | ( | preprocess_include | ) |
| blender::gpu::tests::GPU_TEST | ( | preprocess_reference | ) |
| blender::gpu::tests::GPU_TEST | ( | preprocess_resource_guard | ) |
References input.
| blender::gpu::tests::GPU_TEST | ( | preprocess_stage_attribute | ) |
| blender::gpu::tests::GPU_TEST | ( | preprocess_struct_methods | ) |
| blender::gpu::tests::GPU_TEST | ( | preprocess_swizzle | ) |
References error().
| blender::gpu::tests::GPU_TEST | ( | preprocess_template | ) |
| blender::gpu::tests::GPU_TEST | ( | preprocess_template_struct | ) |
| blender::gpu::tests::GPU_TEST | ( | preprocess_unroll | ) |
| blender::gpu::tests::GPU_TEST | ( | preprocess_utilities | ) |
| blender::gpu::tests::GPU_TEST | ( | storage_buffer_clear | ) |
| blender::gpu::tests::GPU_TEST | ( | storage_buffer_clear_byte_pattern | ) |
| blender::gpu::tests::GPU_TEST | ( | storage_buffer_clear_zero | ) |
| blender::gpu::tests::GPU_TEST | ( | storage_buffer_copy_from_vertex_buffer | ) |
| blender::gpu::tests::GPU_TEST | ( | storage_buffer_create_update_read | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_pool | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_10_11_11_REV__GPU_R11F_G11F_B10F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH32F_STENCIL8 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_DEPTH_COMPONENT32F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_R11F_G11F_B10F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_R16 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_R16_SNORM | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_R16F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_R32F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_R8 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_R8_SNORM | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16_SNORM | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RG16F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RG32F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RG8_SNORM | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16_SNORM | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA16F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA32F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_RGBA8_SNORM | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_FLOAT__GPU_SRGB8_A8 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_R16F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RG16F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_HALF_FLOAT__GPU_RGBA16F | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_INT__GPU_R16I | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_INT__GPU_R32I | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_INT__GPU_R8I | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_INT__GPU_RG32I | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_INT__GPU_RG8I | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_INT__GPU_RGBA16I | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_INT__GPU_RGBA32I | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_INT__GPU_RGBA8I | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UBYTE__GPU_R8 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UBYTE__GPU_R8UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UBYTE__GPU_RG8UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UBYTE__GPU_RGBA8UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UBYTE__GPU_SRGB8_A8 | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UINT__GPU_R16UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UINT__GPU_R32UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UINT__GPU_R8UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UINT__GPU_RG16UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UINT__GPU_RG32UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UINT__GPU_RG8UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UINT__GPU_RGBA16UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UINT__GPU_RGBA32UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_roundtrip__GPU_DATA_UINT__GPU_RGBA8UI | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_update_sub_no_unpack_row_length | ) |
| blender::gpu::tests::GPU_TEST | ( | texture_update_sub_unpack_row_length | ) |
| blender::gpu::tests::GPU_TEST | ( | vertex_buffer_fetch_mode__GPU_COMP_F32__GPU_FETCH_FLOAT | ) |
| blender::gpu::tests::GPU_TEST | ( | vertex_buffer_fetch_mode__GPU_COMP_I10__GPU_FETCH_INT_TO_FLOAT_UNIT | ) |
| blender::gpu::tests::GPU_TEST | ( | vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT_UNIT | ) |
| blender::gpu::tests::GPU_TEST | ( | vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT_UNIT | ) |
| blender::gpu::tests::GPU_TEST | ( | vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT_UNIT | ) |
| blender::gpu::tests::GPU_TEST | ( | vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT_UNIT | ) |
|
static |
Definition at line 249 of file shader_test.cc.
References print_test_data(), TEST_TYPE_BOOL, TEST_TYPE_FLOAT, TEST_TYPE_INT, TEST_TYPE_IVEC2, TEST_TYPE_IVEC3, TEST_TYPE_IVEC4, TEST_TYPE_MAT2X2, TEST_TYPE_MAT2X3, TEST_TYPE_MAT2X4, TEST_TYPE_MAT3X2, TEST_TYPE_MAT3X3, TEST_TYPE_MAT3X4, TEST_TYPE_MAT4X2, TEST_TYPE_MAT4X3, TEST_TYPE_MAT4X4, TEST_TYPE_UINT, TEST_TYPE_UVEC2, TEST_TYPE_UVEC3, TEST_TYPE_UVEC4, TEST_TYPE_VEC2, TEST_TYPE_VEC3, and TEST_TYPE_VEC4.
Referenced by gpu_shader_lib_test(), and print_test_data().
|
static |
Definition at line 324 of file shader_test.cc.
References blender::StringRefBase::find(), pos, and blender::StringRefBase::substr().
Referenced by gpu_shader_lib_test().
|
static |
Definition at line 53 of file shader_preprocess_test.cc.
References blender::gpu::shader::Preprocessor::BLENDER_GLSL, blender::gpu::shader::Preprocessor::process(), result, and str.
| blender::gpu::tests::TEST | ( | VulkanDataConversion | , |
| clamp_negative_to_zero | ) |
Definition at line 14 of file vk_data_conversion_test.cc.
References blender::gpu::convert_float_formats(), and EXPECT_EQ().
| blender::gpu::tests::TEST | ( | VulkanDataConversion | , |
| infinity_upper | ) |
Definition at line 50 of file vk_data_conversion_test.cc.
References blender::gpu::convert_float_formats(), and EXPECT_EQ().
| blender::gpu::tests::TEST | ( | VulkanDataConversion | , |
| texture_rgb16f_as_floats_to_rgba16f | ) |
Definition at line 63 of file vk_data_conversion_test.cc.
References blender::gpu::convert_device_to_host(), blender::gpu::convert_host_to_device(), GPU_DATA_FLOAT, i, and input.
| blender::gpu::tests::TEST | ( | VulkanDataConversion | , |
| texture_rgb32f_as_floats_to_rgba32f | ) |
Definition at line 105 of file vk_data_conversion_test.cc.
References blender::gpu::convert_device_to_host(), blender::gpu::convert_host_to_device(), GPU_DATA_FLOAT, i, and input.
|
static |
Definition at line 82 of file state_blend_test.cc.
References blend_test(), and test_blend_additive().
Referenced by test_blend_additive().
|
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().
|
static |
Definition at line 66 of file state_blend_test.cc.
References blend_test(), and test_blend_alpha().
Referenced by test_blend_alpha().
|
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().
|
static |
Definition at line 130 of file state_blend_test.cc.
References blend_test(), and test_blend_background().
Referenced by test_blend_background().
|
static |
Definition at line 114 of file state_blend_test.cc.
References blend_test(), and test_blend_invert().
Referenced by test_blend_invert().
|
static |
Definition at line 98 of file state_blend_test.cc.
References blend_test(), and test_blend_multiply().
Referenced by test_blend_multiply().
|
static |
Definition at line 58 of file state_blend_test.cc.
References blend_test().
|
static |
Definition at line 122 of file state_blend_test.cc.
References blend_test(), and test_blend_oit().
Referenced by test_blend_oit().
|
static |
Definition at line 106 of file state_blend_test.cc.
References blend_test(), and test_blend_subtract().
Referenced by test_blend_subtract().
|
static |
Definition at line 19 of file buffer_texture_test.cc.
References EXPECT_EQ(), GPU_BARRIER_BUFFER_UPDATE, GPU_compute_dispatch(), GPU_memory_barrier(), GPU_shader_bind(), GPU_shader_create_from_info_name(), GPU_shader_free(), GPU_shader_get_sampler_binding(), GPU_shader_get_ssbo_binding(), GPU_shader_unbind(), GPU_storagebuf_bind(), GPU_storagebuf_create_ex(), GPU_storagebuf_free(), GPU_storagebuf_read(), GPU_USAGE_FLAG_BUFFER_TEXTURE_ONLY, GPU_USAGE_STATIC, GPU_vertbuf_attr_fill(), GPU_vertbuf_bind_as_texture(), GPU_vertbuf_create_with_format_ex(), GPU_vertbuf_data_alloc(), GPU_vertbuf_discard(), and GPU_vertformat_attr_add().
|
static |
Definition at line 18 of file compute_test.cc.
References data, EXPECT_EQ(), GPU_BARRIER_TEXTURE_UPDATE, GPU_compute_dispatch(), GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_shader_bind(), GPU_shader_create_from_info_name(), GPU_shader_free(), GPU_shader_get_sampler_binding(), GPU_shader_unbind(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_image_bind(), GPU_texture_read(), GPU_texture_unbind(), GPU_TEXTURE_USAGE_GENERAL, MEM_freeN(), SIZE, and texture().
|
static |
Definition at line 60 of file compute_test.cc.
References data, EXPECT_EQ(), GPU_BARRIER_TEXTURE_UPDATE, GPU_compute_dispatch_indirect(), GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_shader_bind(), GPU_shader_create_from_info_name(), GPU_shader_free(), GPU_shader_get_sampler_binding(), GPU_shader_unbind(), GPU_storagebuf_create_ex(), GPU_storagebuf_free(), GPU_texture_clear(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_image_bind(), GPU_texture_read(), GPU_texture_unbind(), GPU_TEXTURE_USAGE_GENERAL, GPU_USAGE_STATIC, MEM_freeN(), SIZE, test_compute_indirect(), and texture().
Referenced by test_compute_indirect().
Definition at line 19 of file storage_buffer_test.cc.
Referenced by gpu_shader_lib_test(), test_storage_buffer_clear_zero(), and test_storage_buffer_create_update_read().
|
static |
Definition at line 422 of file shader_test.cc.
References gpu_shader_lib_test(), and test_eevee_lib().
Referenced by test_eevee_lib().
|
static |
Definition at line 50 of file framebuffer_test.cc.
References EXPECT_EQ(), GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, GPU_DATA_FLOAT, GPU_DATA_UINT, GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_clear_color(), GPU_framebuffer_create(), GPU_framebuffer_ensure_config, GPU_framebuffer_free(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), size(), and UNPACK2.
|
static |
Definition at line 23 of file framebuffer_test.cc.
References EXPECT_EQ(), GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, GPU_DATA_FLOAT, GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_clear_color(), GPU_framebuffer_create(), GPU_framebuffer_ensure_config, GPU_framebuffer_free(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), size(), texture(), and UNPACK2.
|
static |
Definition at line 129 of file framebuffer_test.cc.
References EXPECT_EQ(), GPU_ATTACHMENT_TEXTURE, GPU_DATA_FLOAT, GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_clear_depth(), GPU_framebuffer_create(), GPU_framebuffer_ensure_config, GPU_framebuffer_free(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), size(), texture(), and UNPACK2.
|
static |
Definition at line 91 of file framebuffer_test.cc.
References EXPECT_EQ(), GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, GPU_DATA_FLOAT, GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_create(), GPU_framebuffer_ensure_config, GPU_framebuffer_free(), GPU_framebuffer_multi_clear(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), size(), and UNPACK2.
|
static |
Definition at line 198 of file framebuffer_test.cc.
References data, EXPECT_EQ(), framebuffers, GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE_CUBEFACE, GPU_DATA_FLOAT, GPU_framebuffer_bind(), GPU_framebuffer_clear_color(), GPU_framebuffer_ensure_config, GPU_FRAMEBUFFER_FREE_SAFE, GPU_render_begin(), GPU_render_end(), GPU_texture_create_cube(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, i, MEM_freeN(), and SIZE.
|
static |
Definition at line 247 of file framebuffer_test.cc.
References batch, blender::gpu::shader::ShaderCreateInfo::builtins(), EXPECT_EQ(), blender::gpu::shader::ShaderCreateInfo::fragment_out(), blender::gpu::shader::ShaderCreateInfo::fragment_source(), G, G_DEBUG_GPU_FORCE_WORKAROUNDS, GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, GPU_BACKEND_OPENGL, GPU_batch_create_procedural(), GPU_batch_discard(), GPU_batch_draw(), GPU_batch_set_shader(), GPU_DATA_INT, GPU_DEVICE_NVIDIA, GPU_DRIVER_OFFICIAL, GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_clear_color(), GPU_framebuffer_create(), GPU_framebuffer_ensure_config, GPU_framebuffer_free(), GPU_framebuffer_multi_viewports_set(), GPU_OS_ANY, GPU_PRIM_TRIS, GPU_render_begin(), GPU_render_end(), GPU_shader_create_from_info(), GPU_shader_free(), GPU_shader_unbind(), GPU_texture_create_2d_array(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, GPU_type_matches_ex(), i, MEM_freeN(), size(), test_framebuffer_multi_viewport(), texture(), UNPACK2, and blender::gpu::shader::ShaderCreateInfo::vertex_source().
Referenced by test_framebuffer_multi_viewport().
|
static |
Definition at line 157 of file framebuffer_test.cc.
References EXPECT_EQ(), GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, GPU_DATA_FLOAT, GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_clear_color(), GPU_framebuffer_create(), GPU_framebuffer_ensure_config, GPU_framebuffer_free(), GPU_scissor(), GPU_scissor_test(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), size(), texture(), and UNPACK2.
|
static |
Test sub-pass inputs on Vulkan and raster order groups on Metal and its emulation on other backend.
Definition at line 328 of file framebuffer_test.cc.
References batch, blender::gpu::shader::ShaderCreateInfo::define(), EXPECT_EQ(), blender::gpu::shader::ShaderCreateInfo::fragment_out(), blender::gpu::shader::ShaderCreateInfo::fragment_source(), GPU_ATTACHMENT_IGNORE, GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_READ, GPU_ATTACHMENT_TEXTURE, GPU_ATTACHMENT_WRITE, GPU_batch_create_procedural(), GPU_batch_discard(), GPU_batch_draw(), GPU_batch_set_shader(), GPU_DATA_INT, GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_clear_color(), GPU_framebuffer_create(), GPU_framebuffer_ensure_config, GPU_framebuffer_free(), GPU_framebuffer_subpass_transition, GPU_PRIM_TRIS, GPU_render_begin(), GPU_render_end(), GPU_shader_create_from_info(), GPU_shader_free(), GPU_shader_unbind(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), size(), blender::gpu::shader::ShaderCreateInfo::subpass_in(), test_framebuffer_subpass_input(), UNPACK2, and blender::gpu::shader::ShaderCreateInfo::vertex_source().
Referenced by test_framebuffer_subpass_input().
|
static |
Definition at line 19 of file immediate_test.cc.
References BLI_assert, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), EXPECT_EQ(), GPU_DATA_FLOAT, GPU_flush(), GPU_offscreen_bind(), GPU_offscreen_create(), GPU_offscreen_free(), GPU_offscreen_read_color(), GPU_offscreen_unbind(), GPU_PRIM_TRI_STRIP, GPU_SHADER_3D_UNIFORM_COLOR, GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4fv(), immVertex3f(), immVertexFormat(), pos, and Size.
|
static |
Draws two planes with two different colors.
Definition at line 68 of file immediate_test.cc.
References BLI_assert, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), GPU_DATA_FLOAT, GPU_flush(), GPU_offscreen_bind(), GPU_offscreen_create(), GPU_offscreen_free(), GPU_offscreen_read_color(), GPU_offscreen_unbind(), GPU_PRIM_TRI_STRIP, GPU_SHADER_3D_UNIFORM_COLOR, GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4fv(), immVertex3f(), immVertexFormat(), pos, Size, and test_immediate_two_planes().
Referenced by test_immediate_two_planes().
|
static |
Definition at line 13 of file index_buffer_test.cc.
References EXPECT_EQ(), GPU_indexbuf_build(), GPU_INDEXBUF_DISCARD_SAFE, GPU_indexbuf_init(), GPU_indexbuf_join(), GPU_indexbuf_set_point_vert(), GPU_PRIM_POINTS, and GPUIndexBufBuilder::index_len.
|
static |
Definition at line 416 of file shader_test.cc.
References gpu_shader_lib_test().
|
static |
Definition at line 332 of file shader_preprocess_test.cc.
|
static |
Definition at line 600 of file shader_preprocess_test.cc.
|
static |
Definition at line 495 of file shader_preprocess_test.cc.
|
static |
Definition at line 84 of file shader_preprocess_test.cc.
References input.
|
static |
Definition at line 372 of file shader_preprocess_test.cc.
|
static |
Definition at line 632 of file shader_preprocess_test.cc.
|
static |
Definition at line 259 of file shader_preprocess_test.cc.
|
static |
Definition at line 551 of file shader_preprocess_test.cc.
|
static |
Definition at line 535 of file shader_preprocess_test.cc.
|
static |
Definition at line 616 of file shader_preprocess_test.cc.
|
static |
Definition at line 479 of file shader_preprocess_test.cc.
References error().
|
static |
Definition at line 175 of file shader_preprocess_test.cc.
|
static |
Definition at line 227 of file shader_preprocess_test.cc.
|
static |
Definition at line 101 of file shader_preprocess_test.cc.
|
static |
Definition at line 11 of file shader_preprocess_test.cc.
References EXPECT_EQ(), blender::gpu::shader::Preprocessor::get_content_between_balanced_pair(), input, blender::gpu::shader::Preprocessor::reference_search(), blender::gpu::shader::Preprocessor::replace_char_between_balanced_pair(), blender::gpu::shader::Preprocessor::split_string(), and blender::gpu::shader::Preprocessor::split_string_not_between_balanced_pair().
|
static |
Definition at line 160 of file push_constants_test.cc.
References do_push_constants_test().
|
static |
Definition at line 166 of file push_constants_test.cc.
References do_push_constants_test(), and test_push_constants_128bytes().
Referenced by test_push_constants_128bytes().
|
static |
Definition at line 172 of file push_constants_test.cc.
References do_push_constants_test(), and test_push_constants_256bytes().
Referenced by test_push_constants_256bytes().
|
static |
Definition at line 178 of file push_constants_test.cc.
References do_push_constants_test(), and test_push_constants_512bytes().
Referenced by test_push_constants_512bytes().
|
static |
Definition at line 184 of file push_constants_test.cc.
References do_push_constants_test(), and test_push_constants_8192bytes().
Referenced by test_push_constants_8192bytes().
|
static |
Definition at line 191 of file push_constants_test.cc.
References do_push_constants_test(), and test_push_constants_multiple().
Referenced by test_push_constants_multiple().
|
static |
Definition at line 197 of file push_constants_test.cc.
References do_push_constants_test(), and test_push_constants_multiple_128bytes().
Referenced by test_push_constants_multiple_128bytes().
|
static |
Definition at line 203 of file push_constants_test.cc.
References do_push_constants_test(), and test_push_constants_multiple_256bytes().
Referenced by test_push_constants_multiple_256bytes().
|
static |
Definition at line 209 of file push_constants_test.cc.
References do_push_constants_test(), and test_push_constants_multiple_512bytes().
Referenced by test_push_constants_multiple_512bytes().
|
static |
Definition at line 215 of file push_constants_test.cc.
References do_push_constants_test(), and test_push_constants_multiple_8192bytes().
Referenced by test_push_constants_multiple_8192bytes().
|
static |
Definition at line 79 of file shader_test.cc.
References data, GPU_BARRIER_TEXTURE_UPDATE, GPU_compute_dispatch(), GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_shader_bind(), GPU_shader_create_from_info_name(), GPU_shader_free(), GPU_shader_get_sampler_binding(), GPU_shader_unbind(), GPU_texture_create_1d(), GPU_texture_free(), GPU_texture_image_bind(), GPU_texture_read(), GPU_texture_unbind(), GPU_TEXTURE_USAGE_GENERAL, MEM_freeN(), SIZE, test_shader_compute_1d(), and texture().
Referenced by test_shader_compute_1d().
|
static |
Definition at line 34 of file shader_test.cc.
References data, GPU_BARRIER_TEXTURE_UPDATE, GPU_compute_dispatch(), GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_shader_bind(), GPU_shader_create_from_info_name(), GPU_shader_free(), GPU_shader_get_sampler_binding(), GPU_shader_unbind(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_image_bind(), GPU_texture_read(), GPU_texture_unbind(), GPU_TEXTURE_USAGE_GENERAL, MEM_freeN(), SIZE, and texture().
|
static |
Definition at line 165 of file shader_test.cc.
References data, EXPECT_EQ(), GPU_BARRIER_BUFFER_UPDATE, GPU_compute_dispatch(), GPU_indexbuf_bind_as_ssbo(), GPU_indexbuf_build_on_device(), GPU_indexbuf_discard(), GPU_indexbuf_read(), GPU_memory_barrier(), GPU_shader_bind(), GPU_shader_create_from_info_name(), GPU_shader_free(), GPU_shader_get_ssbo_binding(), GPU_shader_unbind(), SIZE, and test_shader_compute_ibo().
Referenced by test_shader_compute_ibo().
|
static |
Definition at line 199 of file shader_test.cc.
References data, EXPECT_EQ(), GPU_BARRIER_BUFFER_UPDATE, GPU_compute_dispatch(), GPU_memory_barrier(), GPU_shader_bind(), GPU_shader_create_from_info_name(), GPU_shader_free(), GPU_shader_get_ssbo_binding(), GPU_shader_unbind(), GPU_storagebuf_bind(), GPU_storagebuf_create_ex(), GPU_storagebuf_free(), GPU_storagebuf_read(), GPU_USAGE_DEVICE_ONLY, SIZE, and test_shader_compute_ssbo().
Referenced by test_shader_compute_ssbo().
|
static |
Definition at line 125 of file shader_test.cc.
References data, GPU_BARRIER_BUFFER_UPDATE, GPU_compute_dispatch(), GPU_memory_barrier(), GPU_shader_bind(), GPU_shader_create_from_info_name(), GPU_shader_free(), GPU_shader_get_ssbo_binding(), GPU_shader_unbind(), GPU_USAGE_DEVICE_ONLY, GPU_vertbuf_bind_as_ssbo(), GPU_vertbuf_create_with_format_ex(), GPU_vertbuf_data_alloc(), GPU_vertbuf_discard(), GPU_vertbuf_read(), GPU_vertformat_attr_add(), SIZE, and test_shader_compute_vbo().
Referenced by test_shader_compute_vbo().
|
static |
Definition at line 234 of file shader_test.cc.
References EXPECT_EQ(), GPU_shader_create_from_info_name(), GPU_shader_free(), GPU_shader_get_ssbo_binding(), and test_shader_ssbo_binding().
Referenced by test_shader_ssbo_binding().
|
static |
Definition at line 123 of file specialization_constants_test.cc.
|
static |
Definition at line 129 of file specialization_constants_test.cc.
References test_specialization_constants_graphic().
Referenced by test_specialization_constants_graphic().
|
static |
Test if all static shaders can be compiled.
Definition at line 15 of file shader_create_info_test.cc.
References G, G_DEBUG_GPU_FORCE_WORKAROUNDS, GPU_BACKEND_OPENGL, GPU_DEVICE_NVIDIA, GPU_DRIVER_OFFICIAL, GPU_OS_ANY, gpu_shader_create_info_compile(), and GPU_type_matches_ex().
|
static |
Definition at line 76 of file storage_buffer_test.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::data(), EXPECT_EQ(), GPU_storagebuf_clear(), GPU_storagebuf_create_ex(), GPU_storagebuf_free(), GPU_storagebuf_read(), GPU_USAGE_STATIC, i, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), SIZE, and SIZE_IN_BYTES.
|
static |
Definition at line 98 of file storage_buffer_test.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::data(), EXPECT_EQ(), GPU_storagebuf_clear(), GPU_storagebuf_create_ex(), GPU_storagebuf_free(), GPU_storagebuf_read(), GPU_USAGE_STATIC, i, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), SIZE, and SIZE_IN_BYTES.
|
static |
Definition at line 52 of file storage_buffer_test.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data, EXPECT_EQ(), GPU_storagebuf_clear_to_zero(), GPU_storagebuf_create_ex(), GPU_storagebuf_free(), GPU_storagebuf_read(), GPU_storagebuf_update(), GPU_USAGE_STATIC, i, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), SIZE, SIZE_IN_BYTES, and test_data().
|
static |
Definition at line 121 of file storage_buffer_test.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data, EXPECT_EQ(), GPU_storagebuf_clear_to_zero(), GPU_storagebuf_copy_sub_from_vertbuf(), GPU_storagebuf_create_ex(), GPU_storagebuf_free(), GPU_storagebuf_read(), GPU_USAGE_STATIC, GPU_vertbuf_create_with_format(), GPU_vertbuf_data_alloc(), GPU_vertbuf_discard(), GPU_vertbuf_vert_set(), GPU_vertformat_attr_add(), i, pos, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), SIZE, SIZE_IN_BYTES, and blender::Span< T >::slice().
|
static |
Definition at line 28 of file storage_buffer_test.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data, EXPECT_EQ(), GPU_storagebuf_create_ex(), GPU_storagebuf_free(), GPU_storagebuf_read(), GPU_storagebuf_update(), GPU_USAGE_STATIC, i, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), SIZE, SIZE_IN_BYTES, and test_data().
|
static |
Definition at line 70 of file texture_test.cc.
References data, EXPECT_EQ(), GPU_backend_get_type(), GPU_BACKEND_OPENGL, GPU_BARRIER_TEXTURE_UPDATE, GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_render_begin(), GPU_render_end(), GPU_texture_clear(), GPU_texture_create_1d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, GPU_TEXTURE_USAGE_SHADER_WRITE, MEM_freeN(), SIZE, and test_texture_1d().
Referenced by test_texture_1d().
|
static |
Definition at line 99 of file texture_test.cc.
References data, EXPECT_EQ(), GPU_backend_get_type(), GPU_BACKEND_OPENGL, GPU_BARRIER_TEXTURE_UPDATE, GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_render_begin(), GPU_render_end(), GPU_texture_clear(), GPU_texture_create_1d_array(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, GPU_TEXTURE_USAGE_SHADER_WRITE, MEM_freeN(), SIZE, and test_texture_1d_array().
Referenced by test_texture_1d_array().
|
static |
Definition at line 129 of file texture_test.cc.
References EXPECT_EQ(), GPU_backend_get_type(), GPU_BACKEND_OPENGL, GPU_BARRIER_TEXTURE_UPDATE, GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_render_begin(), GPU_render_end(), GPU_texture_create_1d_array(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_calloc_arrayN(), MEM_freeN(), SIZE, and test_texture_1d_array_upload().
Referenced by test_texture_1d_array_upload().
|
static |
Definition at line 158 of file texture_test.cc.
References data, EXPECT_EQ(), GPU_BARRIER_TEXTURE_UPDATE, GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_render_begin(), GPU_render_end(), GPU_texture_clear(), GPU_texture_create_2d_array(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), SIZE, and test_texture_2d_array().
Referenced by test_texture_2d_array().
|
static |
Definition at line 184 of file texture_test.cc.
References EXPECT_EQ(), GPU_BARRIER_TEXTURE_UPDATE, GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_render_begin(), GPU_render_end(), GPU_texture_create_2d_array(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_calloc_arrayN(), MEM_freeN(), SIZE, and test_texture_2d_array_upload().
Referenced by test_texture_2d_array_upload().
|
static |
Definition at line 259 of file texture_test.cc.
References data, EXPECT_EQ(), GPU_BARRIER_TEXTURE_UPDATE, GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_render_begin(), GPU_render_end(), GPU_texture_clear(), GPU_texture_create_3d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), SIZE, and test_texture_3d().
Referenced by test_texture_3d().
|
static |
Definition at line 284 of file texture_test.cc.
References data, EXPECT_EQ(), GPU_BARRIER_TEXTURE_UPDATE, GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_render_begin(), GPU_render_end(), GPU_texture_clear(), GPU_texture_copy(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), SIZE, and test_texture_copy().
Referenced by test_texture_copy().
|
static |
Definition at line 210 of file texture_test.cc.
References data, EXPECT_EQ(), GPU_BARRIER_TEXTURE_UPDATE, GPU_DATA_FLOAT, GPU_memory_barrier(), GPU_render_begin(), GPU_render_end(), GPU_texture_clear(), GPU_texture_create_cube(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), SIZE, and test_texture_cube().
Referenced by test_texture_cube().
|
static |
Definition at line 235 of file texture_test.cc.
References data, EXPECT_EQ(), GPU_DATA_FLOAT, GPU_render_begin(), GPU_render_end(), GPU_texture_clear(), GPU_texture_create_cube_array(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, MEM_freeN(), SIZE, and test_texture_cube_array().
Referenced by test_texture_cube_array().
|
static |
Definition at line 1139 of file texture_test.cc.
References blender::gpu::TexturePool::acquire_texture(), EXPECT_EQ(), blender::gpu::TexturePool::get(), GPU_texture_format(), GPU_texture_height(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_SHADER_READ, GPU_texture_width(), blender::gpu::TexturePool::release_texture(), blender::gpu::TexturePool::reset(), and size().
|
static |
Definition at line 30 of file texture_test.cc.
References EXPECT_EQ(), GPU_BARRIER_TEXTURE_UPDATE, GPU_DATA_FLOAT, GPU_DATA_UINT, GPU_memory_barrier(), GPU_render_begin(), GPU_render_end(), GPU_texture_clear(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, and MEM_freeN().
|
static |
Definition at line 980 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 992 of file texture_test.cc.
References texture_create_upload_read_pixel().
|
static |
Definition at line 998 of file texture_test.cc.
References GPU_backend_get_type(), GPU_BACKEND_OPENGL, and texture_create_upload_read_pixel().
|
static |
Definition at line 658 of file texture_test.cc.
References GPU_backend_get_type(), GPU_BACKEND_OPENGL, and texture_create_upload_read_with_bias().
|
static |
Definition at line 652 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 513 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 487 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 592 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 481 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 493 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 475 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 586 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 463 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 580 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 457 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 469 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 451 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 574 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 439 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 531 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 433 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 445 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 427 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 525 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 519 of file texture_test.cc.
References texture_create_upload_read_with_bias().
|
static |
Definition at line 694 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 688 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 682 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 758 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 764 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 752 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 746 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 732 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 720 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 726 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 714 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 926 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 920 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 914 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 908 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 902 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 896 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 932 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 838 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 844 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 832 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 820 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 826 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 814 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 802 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 808 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 796 of file texture_test.cc.
References texture_create_upload_read().
|
static |
Definition at line 1013 of file texture_test.cc.
References GPU_DATA_FLOAT, GPU_texture_clear(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_texture_update_sub(), GPU_TEXTURE_USAGE_GENERAL, i, MEM_freeN(), MEM_malloc_arrayN(), size(), texture(), UNPACK2, x, and y.
|
static |
Definition at line 1071 of file texture_test.cc.
References GPU_DATA_FLOAT, GPU_texture_clear(), GPU_texture_create_2d(), GPU_texture_free(), GPU_texture_read(), GPU_texture_update_sub(), GPU_TEXTURE_USAGE_GENERAL, GPU_unpack_row_length_set(), MEM_freeN(), MEM_malloc_arrayN(), size(), texture(), UNPACK2, x, and y.
|
static |
Definition at line 135 of file vertex_buffer_test.cc.
References vertex_buffer_fetch_mode().
|
static |
Definition at line 128 of file vertex_buffer_test.cc.
References vertex_buffer_fetch_mode().
|
static |
Definition at line 114 of file vertex_buffer_test.cc.
References vertex_buffer_fetch_mode().
|
static |
Definition at line 102 of file vertex_buffer_test.cc.
References vertex_buffer_fetch_mode().
|
static |
Definition at line 121 of file vertex_buffer_test.cc.
References vertex_buffer_fetch_mode().
|
static |
Definition at line 108 of file vertex_buffer_test.cc.
References vertex_buffer_fetch_mode().
|
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().
|
static |
Definition at line 397 of file texture_test.cc.
References 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, MEM_freeN(), Size, texture(), and blender::gpu::validate_data_format().
Referenced by test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2(), and test_texture_roundtrip__GPU_DATA_2_10_10_10_REV__GPU_RGB10_A2UI().
|
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().
|
static |
Definition at line 25 of file vertex_buffer_test.cc.
References batch, BLI_assert, BLI_assert_unreachable, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data, EXPECT_EQ(), float, GPU_batch_create_ex(), GPU_batch_discard(), GPU_batch_draw(), GPU_BATCH_OWNS_VBO, GPU_batch_program_set_builtin(), GPU_DATA_FLOAT, GPU_flush(), GPU_offscreen_bind(), GPU_offscreen_color_texture(), GPU_offscreen_create(), GPU_offscreen_free(), GPU_offscreen_read_color(), GPU_offscreen_unbind(), GPU_PRIM_TRIS, GPU_SHADER_3D_FLAT_COLOR, GPU_texture_clear(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_HOST_READ, GPU_vertbuf_create_with_format(), GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), GPU_vertformat_attr_add(), i, pos, and Size.
Referenced by test_vertex_buffer_fetch_mode__GPU_COMP_F32__GPU_FETCH_FLOAT(), test_vertex_buffer_fetch_mode__GPU_COMP_I10__GPU_FETCH_INT_TO_FLOAT_UNIT(), test_vertex_buffer_fetch_mode__GPU_COMP_I16__GPU_FETCH_INT_TO_FLOAT_UNIT(), test_vertex_buffer_fetch_mode__GPU_COMP_I8__GPU_FETCH_INT_TO_FLOAT_UNIT(), test_vertex_buffer_fetch_mode__GPU_COMP_U16__GPU_FETCH_INT_TO_FLOAT_UNIT(), and test_vertex_buffer_fetch_mode__GPU_COMP_U8__GPU_FETCH_INT_TO_FLOAT_UNIT().
|
constexpr |
Definition at line 16 of file storage_buffer_test.cc.
Referenced by do_push_constants_test(), test_compute_direct(), test_compute_indirect(), test_data(), test_framebuffer_cube(), test_shader_compute_1d(), test_shader_compute_2d(), test_shader_compute_ibo(), test_shader_compute_ssbo(), test_shader_compute_vbo(), 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(), and test_texture_cube_array().
|
staticconstexpr |
Definition at line 17 of file immediate_test.cc.
Referenced by test_immediate_one_plane(), test_immediate_two_planes(), texture_create_upload_read(), texture_create_upload_read_pixel(), texture_create_upload_read_with_bias(), and vertex_buffer_fetch_mode().
|
staticconstexpr |
Definition at line 22 of file vertex_buffer_test.cc.
Definition at line 17 of file storage_buffer_test.cc.
Referenced by test_storage_buffer_clear(), test_storage_buffer_clear_byte_pattern(), test_storage_buffer_clear_zero(), test_storage_buffer_copy_from_vertex_buffer(), and test_storage_buffer_create_update_read().