public CShaderUniformBufferVariable(ShaderUniformBufferVariable bVariable)
     : base(bVariable.Name, bVariable.Elements.Select(e => new Pair<ShaderValueType, string>(e.Type, e.Name)), bVariable.SpecialParameters)
 {
     bSlot = bVariable.GetSlot();
     var slotString = bVariable.GetRequiredSpecialParameter("slotDX9");
     ParseSlot(slotString, out registerType, out register);
     registerCount = DataHelper.Align(bVariable.Size, 4);
 }
 public CShaderUniformBufferVariable(ShaderUniformBufferVariable bVariable)
     : base(bVariable.Name, bVariable.Elements.Select(e => new Pair<ShaderValueType, string>(e.Type, e.Name)), bVariable.SpecialParameters)
 {
     bSlot = bVariable.GetSlot();
     glSlot = bVariable.GetSlotGL();
 }