Example #1
0
 public void RegisterShader(int ptr)
 {
     if (shaders.ContainsKey(ptr))
     {
         throw GraphicsDeviceException.ShaderAddedTwice();
     }
     shaders.Add(ptr, new HashSet <int>());
 }
Example #2
0
 public void RegisterResourseSlot(int ptr, int slot)
 {
     if (shaders[ptr].Contains(slot))
     {
         throw GraphicsDeviceException.ResourseSlotAlreadyUsed(slot);
     }
     shaders[ptr].Add(slot);
 }