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