A that indicates the size info of a given GPU thread group running a compute shader. That is, it enables a shader to access info on the size of the thread groups being used.
コード例 #1
0
 public CactusGroup(Texture2D spriteSheet, bool isLarge, GroupSize size, Trex trex, Vector2 position) : base(trex, position)
 {
     IsLarge = isLarge;
     Size    = size;
     // The order matters size needs to be set first
     Sprite = GenerateSprite(spriteSheet);
 }
コード例 #2
0
 public LearningPlanItem(string group, Discipline discipline, MeetingType meetingType, GroupSize groupSize, double meetingsPerWeek)
 {
     Group           = group;
     Discipline      = discipline;
     MeetingType     = meetingType;
     GroupSize       = groupSize;
     MeetingsPerWeek = meetingsPerWeek;
 }
コード例 #3
0
 public CactusGroup(Texture2D spriteSheet, bool isLarge, GroupSize size, Trex trex, Vector2 position, GraphicsDevice graphicsDevice) : base(trex, position)
 {
     IsLarge = isLarge;
     Size    = size;
     Sprite  = GenerateSprite(spriteSheet);
     HitBox.Inflate(-3, -3);
     _gD   = graphicsDevice;
     Speed = 1;
 }
コード例 #4
0
        public void UnionGroupsImageParams(Group group, List <PngUtil.MergeImageParams> ps)
        {
            if (!GroupLayerCache.ContainsKey(group.Sceneid))
            {
                GroupLayerCache[group.Sceneid] = new SortedDictionary <int, GroupCache>();
            }

            if (ps == null)
            {
                GroupLayerCache[group.Sceneid].Remove(group.LayerIndex);
            }
            else
            {
                GroupLayerCache[group.Sceneid][group.LayerIndex] = new GroupCache
                {
                    GroupLayerId          = group.LayerIndex,
                    GroupSize             = group.Size,
                    GroupPropertiesImages = ps,
                };
            }

            if (GroupLayerCache[group.Sceneid].Count == 0)
            {
                UpdateCenterBoard(group.Sceneid, null);
            }
            else
            {
                List <PngUtil.MergeImageParams> resultList = null;
                GroupSize maxGroupSize = null;
                foreach (GroupCache groupCache in GroupLayerCache[group.Sceneid].Values)
                {
                    if (maxGroupSize == null || groupCache.GroupSize.Width > maxGroupSize.Width)
                    {
                        maxGroupSize = groupCache.GroupSize;
                    }
                    if (resultList == null)
                    {
                        resultList = groupCache.GroupPropertiesImages;
                    }
                    else
                    {
                        resultList = resultList.Union(groupCache.GroupPropertiesImages).ToList();
                    }
                }
                UpdateCenterBoard(group.Sceneid, PngUtil.MergeImageList(resultList, maxGroupSize.Width, maxGroupSize.Height));
            }
        }
コード例 #5
0
 public CactusGroup(Texture2D spriteSheet, bool isLarge, GroupSize size, TRex trex, Vector2 position) : base(trex, position)
 {
     IsLarge = isLarge;
     Size    = size;
     Sprite  = GenerateSprite(spriteSheet);
 }
コード例 #6
0
ファイル: Race.cs プロジェクト: stjordanis/amaranth
 public void SetGroupSize(GroupSize size)
 {
     mGroupSize = size;
 }
コード例 #7
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            //variables;
            string WineTastingDate;
            string Time;
            string CustomerName;
            string PhoneNumber;
            string EmailAddress;
            int    GroupSize;

            SqlConnection sqlcon = new SqlConnection(Globals_Class.ConnectionString);

            sqlcon.Open();
            string        cmd    = "Select CustomerFullName, CustomerPhoneNumber, CustomerEmailAddress, PartySize, WineTastingDate, WineTastingTime FROM WineTasting";
            SqlCommand    sqlcom = new SqlCommand(cmd, sqlcon);
            SqlDataReader reader;

            reader = sqlcom.ExecuteReader();
            if (reader.HasRows)
            {
                while (reader.Read())
                {
                    CustomerName    = (reader["CustomerFullName"].ToString());
                    PhoneNumber     = (reader["CustomerPhoneNumber"].ToString());
                    EmailAddress    = (reader["CustomerEmailAddress"].ToString());
                    WineTastingDate = (reader["WineTastingDate"].ToString());
                    Time            = (reader["WineTastingTime"].ToString());
                    GroupSize       = Convert.ToInt32((reader["PartySize"]));


                    Details += "\n" + "Customer Name:" + " " + CustomerName + "\n" + "Phone Number:" + " " + PhoneNumber + "\n" + "Email Address:" + " " + EmailAddress + "\n" + "Wine Tasting Date:" + " " + WineTastingDate + "\n" + "Wine Tasting Time:" + " " + Time + "\n" + "Group Size:" + " " + GroupSize.ToString() + "\n";
                }
            }

            reader.Close();
            sqlcon.Close();

            SqlConnection sqlcon2 = new SqlConnection(Globals_Class.ConnectionString);

            sqlcon2.Open();
            string        cmd2    = "SELECT COUNT(WineTastingID) as BookingsMade FROM WineTasting";
            SqlCommand    sqlcom2 = new SqlCommand(cmd2, sqlcon2);
            SqlDataReader dr;

            dr = sqlcom2.ExecuteReader();
            if (dr.HasRows)
            {
                while (dr.Read())
                {
                    BookingsMade = Convert.ToInt32((dr["BookingsMade"]));
                }
            }
            dr.Close();
            sqlcon2.Close();
            documentWriter();
        }