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); }
public TypeRequest(Type type, spv.StorageClass storageClass) { mType = type; mStorageClass = storageClass; }
/// <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))); }