コード例 #1
0
 void PushVariable(UInt32 resultTypeId, UInt32 resultId, spv.StorageClass storageClass)
 {
     mTypeInstructions.Add(Pack(4, spv.Op.OpVariable));
     mTypeInstructions.Add(resultTypeId);
     mTypeInstructions.Add(resultId);
     mTypeInstructions.Add((UInt32)storageClass);
 }
コード例 #2
0
 public TypeRequest(Type type, spv.StorageClass storageClass)
 {
     mType         = type;
     mStorageClass = storageClass;
 }
コード例 #3
0
 /// <summary>
 /// Fetch the id for the provided type. If the type doesn't exist add it to the type list and return the new id.
 /// </summary>
 /// <param name="type"></param>
 /// <param name="storageClass"></param>
 /// <returns></returns>
 UInt32 GetTypeId(Type type, spv.StorageClass storageClass)
 {
     return(GetTypeId(new TypeRequest(type, storageClass)));
 }