Lines Matching defs:params
437 PassthroughTestInstance (Context& context, const Params& params) : TestInstance(context), m_params(params) {}
627 PassthroughTestInstance::Params params;
630 params.useTessLevels = true;
631 params.tessLevels.inner[0] = level;
632 params.tessLevels.inner[1] = level;
633 params.tessLevels.outer[0] = level;
634 params.tessLevels.outer[1] = level;
635 params.tessLevels.outer[2] = level;
636 params.tessLevels.outer[3] = level;
638 params.primitiveType = m_primitiveType;
639 params.inputPatchVertices = (m_primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 3 : 4);
641 params.vertices.push_back(tcu::Vec4( -0.9f, -0.9f, 0.0f, 1.0f ));
642 params.vertices.push_back(tcu::Vec4( -0.9f, 0.9f, 0.0f, 1.0f ));
643 params.vertices.push_back(tcu::Vec4( 0.9f, -0.9f, 0.0f, 1.0f ));
644 params.vertices.push_back(tcu::Vec4( 0.9f, 0.9f, 0.0f, 1.0f ));
646 params.pipelineCases[0].useTessellation = true;
647 params.pipelineCases[0].useGeometry = true;
648 params.pipelineCases[0].tessEvalShaderName = "tese_to_geom";
649 params.pipelineCases[0].geomShaderName = "geom";
650 params.pipelineCases[0].description = "passthrough geometry shader";
652 params.pipelineCases[1].useTessellation = true;
653 params.pipelineCases[1].useGeometry = false;
654 params.pipelineCases[1].tessEvalShaderName = "tese_to_frag";
655 params.pipelineCases[1].geomShaderName = "geom";
656 params.pipelineCases[1].description = "no geometry shader in the pipeline";
658 params.message = "Testing tessellating shader program output does not change when a passthrough geometry shader is attached.\n"
662 return new PassthroughTestInstance(context, params);
667 PassthroughTestInstance::Params params;
669 params.useTessLevels = false;
670 params.primitiveType = m_primitiveType;
671 params.inputPatchVertices = (m_primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 3 : 2);
673 params.vertices.push_back( tcu::Vec4( -0.4f, 0.4f, 0.0f, 1.0f ));
674 params.vertices.push_back( tcu::Vec4( 0.0f, -0.5f, 0.0f, 1.0f ));
675 if (params.inputPatchVertices == 3)
676 params.vertices.push_back(tcu::Vec4( 0.4f, 0.4f, 0.0f, 1.0f ));
678 params.pipelineCases[0].useTessellation = true;
679 params.pipelineCases[0].useGeometry = true;
680 params.pipelineCases[0].tessEvalShaderName = "tese";
681 params.pipelineCases[0].geomShaderName = "geom_from_tese";
682 params.pipelineCases[0].description = "passthrough tessellation shaders";
684 params.pipelineCases[1].useTessellation = false;
685 params.pipelineCases[1].useGeometry = true;
686 params.pipelineCases[1].tessEvalShaderName = "tese";
687 params.pipelineCases[1].geomShaderName = "geom_from_vert";
688 params.pipelineCases[1].description = "no tessellation shaders in the pipeline";
690 params.message = "Testing geometry shading shader program output does not change when a passthrough tessellation shader is attached.\n"
694 return new PassthroughTestInstance(context, params);