Lines Matching defs:test_case
2515 const testCase test_case = { channel_idx,
2526 executeTestCase(test_case);
2571 * @param test_case Test case instance
2576 void SmokeTest::captureAndVerify(const testCase& test_case, size_t output_format_index, glw::GLint output_channel_size,
2599 verifyOutputImage(test_case, output_format_index, output_channel_size, index_of_swizzled_channel, result_image);
2656 * @param test_case Test case instance
2658 void SmokeTest::executeTestCase(const testCase& test_case)
2660 const _texture_format& source_format = texture_formats[test_case.m_source_texture_format_index];
2661 const glw::GLint red = test_case.m_texture_swizzle_red;
2662 const glw::GLint green = test_case.m_texture_swizzle_green;
2663 const glw::GLint blue = test_case.m_texture_swizzle_blue;
2664 const glw::GLint alpha = test_case.m_texture_swizzle_alpha;
2666 const size_t channel = get_swizzled_channel_idx(test_case.m_channel_index, param);
2698 prepareAndTestProgram(test_case, out_format_idx, out_channel_size, channel, true);
2699 prepareAndTestProgram(test_case, out_format_idx, out_channel_size, channel, false);
2761 * @param test_case Test case instance
2767 std::string SmokeTest::getFragmentShader(const testCase& test_case, size_t output_format_index, bool is_tested_stage)
2796 const std::string& arguments = prepareArguments(test_case);
2797 const _texture_access& access = texture_access[test_case.m_texture_access_index];
2798 const glw::GLchar* channel = channels[test_case.m_channel_index];
2800 const _texture_format& source_format = texture_formats[test_case.m_source_texture_format_index];
2801 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
2831 * @param test_case Test case instance
2836 std::string SmokeTest::getVertexShader(const testCase& test_case, bool is_tested_stage)
2877 const std::string& arguments = prepareArguments(test_case);
2878 const _texture_access& access = texture_access[test_case.m_texture_access_index];
2879 const glw::GLchar* channel = channels[test_case.m_channel_index];
2880 const _texture_format& source_format = texture_formats[test_case.m_source_texture_format_index];
2881 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
3038 * @parma test_case Test case instance
3040 void SmokeTest::logTestCaseDetials(const testCase& test_case)
3042 const glw::GLenum target = texture_targets[test_case.m_source_texture_target_index].m_target;
3043 const _texture_format& source_format = texture_formats[test_case.m_source_texture_format_index];
3044 const glw::GLint red = test_case.m_texture_swizzle_red;
3045 const glw::GLint green = test_case.m_texture_swizzle_green;
3046 const glw::GLint blue = test_case.m_texture_swizzle_blue;
3047 const glw::GLint alpha = test_case.m_texture_swizzle_alpha;
3049 const size_t channel = get_swizzled_channel_idx(test_case.m_channel_index, param);
3063 << "]. Channel: " << channels[test_case.m_channel_index]
3064 << ". Access: " << texture_access[test_case.m_texture_access_index].m_name
3073 * @param test_case Test case instance
3079 void SmokeTest::prepareAndTestProgram(const testCase& test_case, size_t output_format_index,
3083 const _texture_target& source_target = texture_targets[test_case.m_source_texture_target_index];
3084 const glw::GLint red = test_case.m_texture_swizzle_red;
3085 const glw::GLint green = test_case.m_texture_swizzle_green;
3086 const glw::GLint blue = test_case.m_texture_swizzle_blue;
3087 const glw::GLint alpha = test_case.m_texture_swizzle_alpha;
3094 const std::string& fs = getFragmentShader(test_case, output_format_index, !test_vertex_stage);
3095 const std::string& vs = getVertexShader(test_case, test_vertex_stage);
3116 captureAndVerify(test_case, output_format_index, output_channel_size, index_of_swizzled_channel);
3119 captureAndVerify(test_case, output_format_index, output_channel_size, index_of_swizzled_channel);
3124 * @param test_case Test case instance
3128 std::string SmokeTest::prepareArguments(const testCase& test_case)
3130 const _texture_access& access = texture_access[test_case.m_texture_access_index];
3131 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
3134 const std::string& coordinates = prepareCoordinates(test_case);
3146 const std::string& derivatives_0 = prepareDerivatives(test_case, 0);
3147 const std::string& derivatives_1 = prepareDerivatives(test_case, 1);
3162 const std::string& offsets = prepareOffsets(test_case);
3193 * @param test_case Test case instance
3197 std::string SmokeTest::prepareCoordinates(const testCase& test_case)
3199 const _texture_access& access = texture_access[test_case.m_texture_access_index];
3200 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
3285 * @param test_case Test case instance
3289 std::string SmokeTest::prepareDerivatives(const testCase& test_case, size_t index)
3291 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
3342 * @param test_case Test case instance
3346 std::string SmokeTest::prepareOffsets(const testCase& test_case)
3348 const _texture_target& target = texture_targets[test_case.m_source_texture_target_index];
3660 * @param test_case Test case instance
3666 void SmokeTest::verifyOutputImage(const testCase& test_case, size_t /* output_format_index */,
3672 const _texture_format& source_format = texture_formats[test_case.m_source_texture_format_index];
3857 const testCase test_case = { channel_idx,
3869 executeTestCase(test_case);
4162 * @param test_case Test case instance
4168 void FunctionalTest::verifyOutputImage(const testCase& test_case, size_t output_format_index,
4178 calculate_expected_value(test_case.m_source_texture_format_index, output_format_index, index_of_swizzled_channel,
4179 test_case.m_texture_sizes[index_of_swizzled_channel], output_channel_size,
4221 throw wrongResults(test_case);