/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/cereal/ |
D | testing.py | 61 def getTypeForCompare(self, vulkanType): argument 62 res = copy(vulkanType) 64 if not vulkanType.accessibleAsPointer(): 67 if vulkanType.staticArrExpr: 72 def makeCastExpr(self, vulkanType): argument 74 self.cgen.makeCTypeDecl(vulkanType, useParamName=False)) 91 def compareWithConsequence(self, compareExpr, vulkanType, errMsg=""): argument 94 self.exprAccessorValueLhs(vulkanType), errMsg)) 96 def onCheck(self, vulkanType): argument 100 accessLhs = self.exprAccessorLhs(vulkanType) [all …]
|
D | handlemap.py | 47 def needSkip(self, vulkanType): argument 50 def makeCastExpr(self, vulkanType): argument 52 self.cgen.makeCTypeDecl(vulkanType, useParamName=False)) 54 def asNonConstCast(self, access, vulkanType): argument 55 if vulkanType.staticArrExpr: 56 …casted = "%s(%s)" % (self.makeCastExpr(vulkanType.getForAddressAccess().getForNonConstAccess()), a… 57 elif vulkanType.accessibleAsPointer(): 58 casted = "%s(%s)" % (self.makeCastExpr(vulkanType.getForNonConstAccess()), access) 60 …casted = "%s(%s)" % (self.makeCastExpr(vulkanType.getForAddressAccess().getForNonConstAccess()), a… 63 def onCheck(self, vulkanType): argument [all …]
|
D | deepcopy.py | 55 def needSkip(self, vulkanType): argument 58 def makeCastExpr(self, vulkanType): argument 60 self.cgen.makeCTypeDecl(vulkanType, useParamName=False)) 62 def makeNonConstCastForCopy(self, access, vulkanType): argument 63 if vulkanType.staticArrExpr: 64 …casted = "%s(%s)" % (self.makeCastExpr(vulkanType.getForAddressAccess().getForNonConstAccess()), a… 65 elif vulkanType.accessibleAsPointer(): 66 casted = "%s(%s)" % (self.makeCastExpr(vulkanType.getForNonConstAccess()), access) 68 …casted = "%s(%s)" % (self.makeCastExpr(vulkanType.getForAddressAccess().getForNonConstAccess()), a… 71 def makeAllocBytesExpr(self, lenAccess, vulkanType): argument [all …]
|
D | marshaling.py | 77 def getTypeForStreaming(self, vulkanType): argument 78 res = copy(vulkanType) 80 if not vulkanType.accessibleAsPointer(): 83 if vulkanType.staticArrExpr: 91 def makeCastExpr(self, vulkanType): argument 93 self.cgen.makeCTypeDecl(vulkanType, useParamName=False)) 95 def genStreamCall(self, vulkanType, toStreamExpr, sizeExpr): argument 98 cast = self.makeCastExpr(self.getTypeForStreaming(vulkanType)) 103 def genPrimitiveStreamCall(self, vulkanType, access): argument 110 vulkanType, [all …]
|
D | counting.py | 50 def getTypeForStreaming(self, vulkanType): argument 51 res = copy(vulkanType) 53 if not vulkanType.accessibleAsPointer(): 56 if vulkanType.staticArrExpr: 61 def makeCastExpr(self, vulkanType): argument 63 self.cgen.makeCTypeDecl(vulkanType, useParamName=False)) 68 def genPrimitiveStreamCall(self, vulkanType): argument 71 vulkanType))) 73 def genHandleMappingCall(self, vulkanType, access, lenAccess): argument 117 def doAllocSpace(self, vulkanType): argument [all …]
|
D | reservedmarshaling.py | 84 def getTypeForStreaming(self, vulkanType): argument 85 res = copy(vulkanType) 87 if not vulkanType.accessibleAsPointer(): 90 if vulkanType.staticArrExpr: 98 def makeCastExpr(self, vulkanType): argument 100 self.cgen.makeCTypeDecl(vulkanType, useParamName=False)) 137 def genStreamCall(self, vulkanType, toStreamExpr, sizeExpr): argument 139 cast = self.makeCastExpr(self.getTypeForStreaming(vulkanType)) 142 def genPrimitiveStreamCall(self, vulkanType, access): argument 148 vulkanType, [all …]
|
D | transform.py | 59 def doParam(i, vulkanType): argument 60 access = getExpr(vulkanType) 61 lenAccess = getLen(vulkanType) 84 def directTransform(resourceTrackerVarName, vulkanType, getExpr, getLen, cgen, variant="tohost"): argument 85 access = getExpr(vulkanType) 86 lenAccess = getLen(vulkanType) 94 … vulkanType.typeName, variant, access, finalLenAccess)) 129 def makeCastExpr(self, vulkanType): argument 131 self.cgen.makeCTypeDecl(vulkanType, useParamName=False)) 133 def asNonConstCast(self, access, vulkanType): argument [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/cereal/common/ |
D | codegen.py | 345 def makeCTypeDecl(self, vulkanType, useParamName=True): argument 346 constness = "const " if vulkanType.isConst else "" 347 typeName = vulkanType.typeName 349 if vulkanType.pointerIndirectionLevels == 0: 351 elif vulkanType.isPointerToConstPointer: 352 ptrSpec = "* const*" if vulkanType.isConst else "**" 353 if vulkanType.pointerIndirectionLevels > 2: 354 ptrSpec += "*" * (vulkanType.pointerIndirectionLevels - 2) 356 ptrSpec = "*" * vulkanType.pointerIndirectionLevels 358 if useParamName and (vulkanType.paramName is not None): [all …]
|
D | vulkantypes.py | 1070 vulkanType = makeVulkanTypeFromXMLTag(self, typeName, member) 1071 initialEnv[vulkanType.paramName] = { 1072 "type": vulkanType.typeName, 1073 "binding": vulkanType.paramName, 1077 members.append(vulkanType) 1078 if vulkanType.typeName == "VkStructureType" and \ 1144 def iterateVulkanType(typeInfo: VulkanTypeInfo, vulkanType: VulkanType, forEachType): 1145 if not vulkanType.isArrayOfStrings(): 1146 if vulkanType.isPointerToConstPointer: 1149 if vulkanType.shouldSkip(): [all …]
|