Home | History | Annotate | Download | only in vulkancts

Lines Matching refs:yield

403 		yield "enum HandleType"
404 yield "{"
405 yield "\t%s = 0," % api.handles[0].getHandleType()
407 yield "\t%s," % handle.getHandleType()
408 yield "\tHANDLE_TYPE_LAST"
409 yield "};"
410 yield ""
437 yield "enum %s" % enum.name
438 yield "{"
441 yield line
444 yield ""
445 yield "\t%s_LAST" % getEnumValuePrefix(enum)
447 yield "};"
451 yield "enum %s" % getBitEnumNameForBitfield(bitfield.name)
452 yield "{"
454 yield line
455 yield "};"
457 yield "typedef deUint32 %s;" % bitfield.name
460 yield "%s %s" % (type.getClassName(), type.name)
461 yield "{"
463 yield line
464 yield "};"
470 yield "VK_DEFINE_HANDLE\t(%s,\t%s);" % (handle.name, handle.getHandleType())
472 yield "VK_DEFINE_NON_DISPATCHABLE_HANDLE\t(%s,\t%s);" % (handle.name, handle.getHandleType())
475 yield line
480 yield line
481 yield ""
483 yield line
484 yield ""
487 yield line
488 yield ""
491 yield line
492 yield ""
494 yield line
502 yield line
503 yield ""
515 yield "virtual %s\t%s\t(%s) const%s;" % (function.returnType, getInterfaceName(function), argListToStr(function.arguments), postfix)
522 yield "typedef VKAPI_ATTR %s\t(VKAPI_CALL* %s)\t(%s);" % (function.returnType, getFunctionTypeName(function), argListToStr(function.arguments))
533 yield "m_vk.%s\t= (%s)\tGET_PROC_ADDR(\"%s\");" % (getInterfaceName(function), getFunctionTypeName(function), function.name)
541 yield ""
542 yield "%s %s::%s (%s) const" % (function.returnType, className, getInterfaceName(function), argListToStr(function.arguments))
543 yield "{"
544 yield " %sm_vk.%s(%s);" % ("return " if function.returnType != "void" else "", getInterfaceName(function), ", ".join(a.name for a in function.arguments))
545 yield "}"
552 yield line
553 yield ""
555 yield line
556 yield ""
558 yield line
559 yield ""
561 yield line
562 yield ""
564 yield line
571 yield line
573 yield ""
574 yield "namespace %s" % PLATFORM_TYPE_NAMESPACE
575 yield "{"
578 yield line
580 yield "}"
583 yield ""
584 yield "const char* get%sName (%s value)" % (enum.name[2:], enum.name)
585 yield "{"
586 yield "\tswitch (value)"
587 yield "\t{"
589 yield line
590 yield "\t}"
591 yield "}"
594 yield ""
595 yield "tcu::Format::Bitfield<32> get%sStr (%s value)" % (bitfield.name[2:], bitfield.name)
596 yield "{"
599 yield "\tstatic const tcu::Format::BitDesc s_desc[] ="
600 yield "\t{"
602 yield line
603 yield "\t};"
604 yield "\treturn tcu::Format::Bitfield<32>(value, DE_ARRAY_BEGIN(s_desc), DE_ARRAY_END(s_desc));"
606 yield "\treturn tcu::Format::Bitfield<32>(value, DE_NULL, DE_NULL);"
608 yield "}"
613 yield ""
614 yield "std::ostream& operator<< (std::ostream& s, const %s& value)" % type.name
615 yield "{"
616 yield "\ts << \"%s = {\\n\";" % type.name
642 yield ("\ts << \"\\t%s = \" << " % memberName) + newLine + valFmt + " << '\\n';"
643 yield "\ts << '}';"
644 yield "\treturn s;"
645 yield "}"
687 yield line
695 yield "namespace refdetails"
696 yield "{"
697 yield ""
704 yield "template<>"
705 yield "void Deleter<%s>::operator() (%s obj) const" % (objectType, objectType)
706 yield "{"
707 yield "\tm_deviceIface->%s(m_device, obj, m_allocator);" % (getInterfaceName(function))
708 yield "}"
709 yield ""
711 yield "} // refdetails"
712 yield ""
725 yield "Move<%s> %s (%s)" % (function.objectType, function.name, argListToStr([function.iface] + function.arguments))
726 yield "{"
727 yield "\t%s object = 0;" % function.objectType
728 yield "\tVK_CHECK(vk.%s(%s));" % (function.name, ", ".join([a.name for a in function.arguments] + ["&object"]))
729 yield "\treturn Move<%s>(check<%s>(object), Deleter<%s>(%s));" % (function.objectType, function.objectType, function.objectType, ", ".join(["vk", dtorObj, function.arguments[-1].name]))
730 yield "}"
731 yield ""
773 yield "VKAPI_ATTR %s VKAPI_CALL %s (%s)" % (function.returnType, getInterfaceName(function), argListToStr(function.arguments))
774 yield "{"
775 yield "\tDE_UNREF(%s);" % function.arguments[-2].name
778 yield "\tVK_NULL_RETURN((*%s = allocateNonDispHandle<%s, %s>(%s)));" % (function.arguments[-1].name, objectType[2:], objectType, argsStr)
780 yield "\tVK_NULL_RETURN((*%s = allocateHandle<%s, %s>(%s)));" % (function.arguments[-1].name, objectType[2:], objectType, argsStr)
782 yield "}"
783 yield ""
788 yield "VKAPI_ATTR %s VKAPI_CALL %s (%s)" % (function.returnType, getInterfaceName(function), argListToStr(function.arguments))
789 yield "{"
791 yield "\tDE_UNREF(%s);" % arg.name
794 yield "\tfreeNonDispHandle<%s, %s>(%s, %s);" % (objectArg.type[2:], objectArg.type, objectArg.name, function.arguments[-1].name)
796 yield "\tfreeHandle<%s, %s>(%s, %s);" % (objectArg.type[2:], objectArg.type, objectArg.name, function.arguments[-1].name)
798 yield "}"
799 yield ""
802 yield "VKAPI_ATTR %s VKAPI_CALL %s (%s)" % (function.returnType, getInterfaceName(function), argListToStr(function.arguments))
803 yield "{"
805 yield "\tDE_UNREF(%s);" % arg.name
807 yield "\treturn VK_SUCCESS;"
808 yield "}"
809 yield ""
814 yield "static const tcu::StaticFunctionLibrary::Entry %s[] =" % name
815 yield "{"
817 yield line
818 yield "};"
819 yield ""
823 yield line
826 yield line
829 yield line
872 yield ""
873 yield "inline %s make%s (%s)" % (type.name, type.name[2:], argListToStr(type.members))
874 yield "{"
875 yield "\t%s res;" % type.name
877 yield line
878 yield "\treturn res;"
879 yield "}"